Just one of the things I'm learning. https://github.com/hchiam/learning
Sapper is a web app dev framework powered by Svelte.
From https://sapper.svelte.dev/docs#Getting_started:
npx degit "sveltejs/sapper-template#rollup" my-app
# or: npx degit "sveltejs/sapper-template#webpack" my-app
cd my-app
npm install # or: yarn
npm run dev # or: yarn dev
The template comes with Cypress tests set up for use with npm test
To prep files for static site hosting:
npx sapper export
# you'll see stuff inside: __sapper__/export
surge __sapper__/export https://hchiam-sapper-demo.surge.sh
See https://hchiam-sapper-demo.surge.sh
ndb is suggested for debugging server code:
npm install -g ndb
# and then run Sapper
ndb npm run dev # or ndb npx sapper dev