Skip to content

minetower/svelte-vite-template

 
 

Repository files navigation

Svelte Vite Template

A vite template for svelte.

Configured with jest, eslint, prettier, husky, postcss, tailwind, and rollup for production builds. Also with CI build on Github (you can safely remove it).

Usage

To use this template:

npx degit minetower/svelte-vite-template path/to/dir
cd path/to/dir
yarn install

or use as template from Github.

Available Scripts

yarn dev

Runs the app in the development mode. Open http://localhost:8080 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

yarn test

Runs jest on all *.test.js files. Not works properly now.

yarn format:check

Runs eslint and prettier on all files.

yarn format

Formats all files according to rules defined in .eslintrc.yaml and .prettierrc.yaml.

yarn build

Builds a static copy of your site to the build/ folder. Your app is ready to be deployed!

About

A vite template for svelte with support for jest, eslint, postcss, tailwind, and rollup.

Resources

Stars

Watchers

Forks

Contributors

Languages

  • JavaScript 56.1%
  • Svelte 29.8%
  • HTML 10.8%
  • Shell 1.7%
  • SCSS 1.6%