Svelte/TypeScript/Jest/Webpack

This project was initialised from https://github.com/sveltejs/template-webpack:

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

Setup

  1. Components are written in and compiled with Svelte
  2. Components are preprocessed by svelte-preprocess
  3. Tests are written in TypeScript and run by Jest. While being run, the *.ts files are preprocessed by ts-jest.
  4. In the tests, *.svelte files are preprocessed by svelte-jester with the same configuration that svelte-preprocess uses. That's because they both use the svelte.config.js config file.

Install dependencies

npm install // or yarn install

Run dev server

npm run dev // or yarn dev

App runs on localhost:8080.

Run tests

npm test // or yarn test

Top categories

svelte logo

Want a Svelte site built?

Hire a Svelte developer
Loading Svelte Themes