svelte-jest-sass-webpack

Svelte Jest Sass Webpack

Svelte template with Webpack, Sass, Jest, .Env, Tailwindcss.

svelte-jest-sass

Features

This template includes:

  • Webpack
  • Svelte
  • Jest
  • Dotenv (custom-env)
  • Tailwindcss
  • Router (svelte-spa-router)

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:

Install degit

yarn global add degit
yarn exec degit clouw/svelte-jest-sass-webpack svelte-app
cd svelte-app

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

Get started

Install the dependencies...

cd svelte-app
yarn install

...then start Rollup:

yarn dev

Navigate to localhost:5000.

Building and running in production mode

To create an optimised version of the app:

yarn build

Test (jest)

Run test

yarn test:unit
yarn test:unit:watch

Sources

Top categories

Loading Svelte Themes