An opinionated starter template based on the Rollup Sapper template. 🚀
The purpose of this repo was to save me time by doing all of the things I do on every Sapper project, but hey you might find it useful too right?!
To clone it and get started:
# for Rollup
npx degit matt3224/sapper-start my-app
cd my-app
npm install
npm run dev
Open up localhost:3000 and start clicking around.
Consult sapper.svelte.dev for help getting started with Sapper itself.
If you use this a lot you can alias it by putting this in your zshrc or bashrc:
alias sapper-start='npx degit https://github.com/matt3224/sapper-start .'
Then simply cd into your empty project directory and run sapper-start
Good question, I found myself doing these changes on every project and thought I'd save myself and you some time by making a little repo you could import just like the official sapper-template.
Here are the differences:
numworker: 1
in rollup.config to prevent crash on servers with a single processor core~
& auto resolves .js, .mjs, .html, .svelte, .scssimport { util } from '~/utils';
instead of import { util } from '../../utils.js';
If you run into an issue which you don't see in the normal sapper-template, open an issue.