Psst — looking for an app template? Go here --> sveltejs/template
An opinionated base for building shareable Svelte components. It includes by default:
Use the big green button up & right that says
Use this template to generate your own repo.
Or clone it with degit:
npx degit sveltejs/component-template my-new-component
Your component's source code lives in
You can create a package that exports multiple components by adding them to the
src directory and editing
src/index.ts to reexport them as named exports.
name, version, author, license, homepage, repository.url, bugs.url, keywords from within the
Comes with tests out of the box using svelte-testing-library + Jest.
To Run tests:
To serve development build:
To build static storybook site (default output folder is /docs for easily sharing on github pages):
Added upon the great opinionated template from nirmaoz to use Typescript + Storybook addons