svelte-scripts Svelte Themes

Svelte Scripts

Configurations and scripts for svelte applications and svelte libraries

Svelte Scripts

Configurations and scripts for svelte applications and svelte libraries

  • Create svelte applications and libraries with zero settings.
  • Configurations and scripts for svelte applications.
  • Works on the most used operating systems.

Basic Use

For Application

Create your svelte application

npx degit andrelmlins/svelte-scripts/template svelte-app
cd svelte-app
yarn start

Then open http://localhost:5000/ to see your app.

For Library

Create your svelte library

npx degit andrelmlins/svelte-scripts/template-library svelte-library
cd svelte-library
yarn start

Then open http://localhost:5000/ to see your library.

Scripts

Start the development application

Using rollup with reference to folder src. Used in applications and libraries.

npm start
// OR
yarn start

Build the application

Using rollup with reference to folder src. Used in applications and libraries.

npm build
// OR
yarn build

Test the project

Using jest with reference to folder src. Is possible edit the test config in package.json. Used in applications and libraries.

npm test
// OR
yarn test

Philosophy

  1. Zero settings
  2. Only dependency to start a project
  3. Quickly launch a svelte application

Environment Variables

Some environment variables are available.

Variable Type Default Value
PORT number 5000
HOST string localhost
PORT_LIVE_RELOAD number 35729

Contribution guidelines

If you want to contribute to Svelte Scripts, be sure to review the contribution guidelines. This project adheres to code of conduct. By participating, you are expected to uphold this code.

License

Svelte Scripts is open source software licensed as MIT.

Top categories

Loading Svelte Themes