by @antony
npx degit git@github.com:beyonk-adventures/svelte-component-livereload-template.git
Edit src/Component.svelte
npm run dev
npm run build
Tests are in test/*
. Edit files here, and run:
npm run test
You can set a component name in package.json
and publish as usual with npm publish
.
However, see the following section to make your life a lot easier.
You can set up CI/CD with CircleCI in two easy steps:
Whenever you commit to master, tests and linting will be run.
Whenever you tag and push to git, a npm release will automatically be made:
npm version <patch|minor|major>
git push && git push --tags