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 devThe 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.shSee 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