What is Sapper?
npx degit "sveltejs/sapper-template#rollup" my-app# or: npx degit "sveltejs/sapper-template#webpack" my-app
...then install dependencies and start the dev server...
cd my-appnpm installnpm run dev
...and navigate to localhost:3000. To build and run in production mode:
npm run buildnpm start
Pull requests are encouraged and always welcome. Pick an issue and help us out!
To install and work on Sapper locally:
git clone https://github.com/sveltejs/sapper.gitcd sappernpm installnpm run dev
Linking to a Live Project
You can make changes locally to Sapper and test it against a local Sapper project. For a quick project that takes almost no setup, use the default sapper-template project. Instruction on setup are found in that project repository.
To link Sapper to your project, from the root of your local Sapper git checkout:
cd sappernpm link
Then, to link from
sapper-template (or any other given project):
cd sapper-templatenpm link sapper
You should be good to test changes locally.
npm run test