This project was initialised from https://github.com/sveltejs/template-webpack:
npx degit sveltejs/template-webpack svelte-app
cd svelte-app
- Components are written in and compiled with Svelte
- Components are preprocessed by svelte-preprocess
- Tests are written in TypeScript and run by Jest. While being run, the
*.ts
files are preprocessed by ts-jest. - In the tests,
*.svelte
files are preprocessed by svelte-jester with the same configuration that svelte-preprocess uses. That's because they both use thesvelte.config.js
config file.
npm install // or yarn install
npm run dev // or yarn dev
App runs on localhost:8080.
npm test // or yarn test