https://github.com/spencermountain/spencer-svelte
boilerplate template for a svelte component
https://github.com/spencermountain/spencer-svelte
Last synced: 18 days ago
JSON representation
boilerplate template for a svelte component
- Host: GitHub
- URL: https://github.com/spencermountain/spencer-svelte
- Owner: spencermountain
- License: mit
- Created: 2020-04-28T17:54:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T16:45:38.000Z (almost 3 years ago)
- Last Synced: 2025-03-11T23:36:50.527Z (about 1 month ago)
- Language: JavaScript
- Size: 237 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
opinionated svelte boilerplate commands
### CLI
create a quick svelte app
* `npx spencer-svelte -n myApp`build it
* `npx spencer-svelte -b myApp`dev-mode hot-reloading
* `npx spencer-svelte -w myApp`dev-mode hot-reloading with pug compiling
* `npx spencer-svelte -p myApp`it uses live-reload, rollup, and chokidar in a sloppy way - putting things together with low-amounts of thinking.
### Pug-svelte setup
create a `./Part.pug` file:```html
import Part from './build/Part.html'
```### See also
* [amble](https://github.com/spencermountain/amble) - for server-side reloadingMIT