As we have multiple packages in this repo, we are using pnpm instead of npm
.
- clone the repo
- run
pnpm i
to install all dependencies - transpile typescript to javascript with
pnpm build:prod
- execute whatever program you want.
If you want to do multiple changes to the projects, consider replacing pnpm build:prod
with pnpm build:dev
to start the typescript transpiler in watch mode.
Make sure each of the programs below executes successfully. After that, please check if you need to create a changeset
pnpm eslint:check
(runpnpm eslint:fix
to potentially fix, manual intervention usually necessary)pnpm prettier:check
(runpnpm prettier:fix
to fix)pnpm test
We use changesets to control our release process. If you have implemented meaningful changes please add a changeset.
pnpm changeset
- stop development server
- duplicate existing adder, and make some minor modification (like package name)
- delete its
node_modules
andbuild
folder - delete the
CHANGELOG.md
file - add the new adders as a peer dependency to
svelte-add
- set an appropriate package name & version version in
package.json
- run
pnpm install
(ignore the warnings) - start development server
pnpm build:dev
- once you have finished developing your adder, don't forget to generate the readme
pnpm utils:readmes
& thepackage.json
withpnpm utils:packages
The easiest way to test a adder is to run it's cli directly.
npx ./adders/bulma
Alternatively you can also run the testsuite of a adder with this command:
pnpm test bulma mdsvex
And if you have made changes to the core packages, you should probably run the full test suite for all adders. But keep in mind, this takes time!