svelte-starter-kit

Svelte Starter Kit

Svelte starter kit — router, state management and testing included.

Svelte starter kit

Svelte starter kit — router, global state management with unit and end-to-end testing included.

Gettting started

Requires Node.js 8.4.0+

npx degit rob-balfre/svelte-starter-kit my-project
cd my-project
npm i
npm run dev

Open http://localhost:9000

To run unit tests open a separate console

npm run unit-test

End-to-end tests are powered by cypress (remember to also run the dev server).

npm run e2e-test

State Management

Router

Unit Testing

End-to-end Testing

IDE Support

WebStorm IDE has some quirks with Svelte handlebar syntax. To fix update these settings:

  • Preferences > Inspections > Disable all XML inspections
  • Preferences > Inspections > Disable Unknown HTML tag attribute
  • Preferences > Inspections > Disable HTML file reference problems

Top categories

Loading Svelte Themes