My starter for creating client-side, browser libraries. There's more work to be done, but it's usable.
-
Change
default.env
to.env
with the environment variables you'd like. -
Update the
LICENSE
you find appropriate. Right now, it's the MIT License. -
Configure or customize the provided
example
package inpackages/example
. -
Customize the
.github/workflow
actions.
I use a whole mix of tech to get all this running.
-
If you use a system that Nix supports, then there's a flake that will set the correct NodeJS and pnpm version for you.
-
Nix direnv will also automatically load environment variables and the Nix development shell.
-
pnpm workspaces and Nx are used to manage this monorepo.
-
A basic
.eslintrc.js
is provided for basic linting. -
A basic
.prettierrc
is provided for standard formatting. -
Nx is configured to always build package dependencies before the package itself.
-
The example package is preconfigured with vite and vitest to build a basic library.
-
A basic publishing Github Actions workflow is provided configured with changesets.