intro-storybook-svelte

Intro Storybook Svelte

This repo is archieved in favor of updated-intro-to-storybook-with-svelte

Psst — looking for a shareable component template? Go here --> sveltejs/component-template


svelte app

This is a project template for Svelte apps. It lives at https://github.com/sveltejs/template.

To create a new project based on this template using degit:

npx degit sveltejs/template svelte-app
cd svelte-app

Note that you will need to have Node.js installed.

Get started

Install the dependencies...

cd taskbox
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

Storybook

Run Storybook

To view the storybook locally run the following command:

npm run storybook

Exporting Storybook as a static app

Just run the following command:

npm run build-storybook

Run the test suite

Run the following command:

npm run test

If you want to run the tests without cache just run the following command:

npm run jest-without-cache

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes