A Svelte and Firebase starter project for building an SPA. Updated to Svelte 3!
firebase
Firebase is best used as a global package.
npm install -g firebase-tools
firebase login
degit
It's recommended to use degit
.
npm install -g degit
degit RoryDuncan/svelte-firebase-spa-starter my-project
, then cd my-project
npm install
/src/init/firebase.js
npm run build && npm run local
npm
scripts:
build
- Build your svelte app watch
- Watch your svelte applocal
- Runs firebase serve --only hosting
deploy
- runs firebase deploy
Project structure scaffolding
rollup.config.js
preconfiguredimport
relative to /src
buble
when you're ready for a production build.gitignore
for build filesLoading.html
page.js
for routing