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