/svelte-template

Template for building applications with Svelte

Primary LanguageJavaScript

svelte app

This is a project template for Svelte apps. It is based on https://github.com/sveltejs/template.

Differences between sveltejs/template

  • TypeScript as default language
  • Jest is ready
  • SCSS(Sass) is ready
  • Storybook is ready
  • JSON is can be imported in the script
  • Static files in the public directory will be minified and copied (with Gulp)
  • Babel is ready to support IE 11
  • Prettier is ready for Svelte

Get started

To create a new project based on this template using degit:

npx degit jeongtae/svelte-template svelte-app
cd svelte-app

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

Install the dependencies...

cd svelte-app
npm install

...then start Rollup and Gulp:

npm run dev

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

Precaution

Be aware the stylesheets in the public directory and the styles imported by import "*.css" statement are not will be transpiled with PostCSS and Sass.