Repo for https://livecamp.wwwid.org
- Install all dependencies
npm install
- Run development server
npm run dev
- Make sure Firebase hosting already setup
- Build app
npm run build
- Deploy
npm run deploy
This web app is using Roll up as a bundler, and it's only bundle the app to ES6 module. For development server it's use superstatic but you need to call npm run dev
to use it because it's need Rollup to serve the code.
App structure:
- Directory
src
is all you need to work with - Once it build it or call
npm run dev
it will serve all those source fromdist
directory with auto build everytime you save your changes. - All pages are in
src/routes
directory. - Template file for layout is
src/t-shell.js
, you can find router setup also there if you want to add new a page or route.