svelte-scripts
v0.3.7
Published
Configurations and scripts for svelte applications and svelte libraries
Downloads
6
Maintainers
Readme
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
- Zero settings
- Only dependency to start a project
- 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.