Svelte starter kit — router, global state management with unit and end-to-end testing included.
Requires Node.js 8.4.0+
npx degit rob-balfre/svelte-starter-kit my-project
cd my-project
npm i
npm run dev
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
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