Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Learning Sapper

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:

Quick and suggested setup

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

Export to static site hosting

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

Debugging server code

ndb is suggested for debugging server code:

npm install -g ndb
# and then run Sapper
ndb npm run dev # or ndb npx sapper dev

About

Learning Sapper

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages