To get started:
npm install
npm start
npm run build
cd dist && http-server -o
- open browser
If you want to test the update flow as well, continue here:
- make a change to the code
npm run build
cd dist && http-server -o
- open browser
This project makes use of a semver-based service worker update pattern. Every update should be done via a pull request to the master
branch, and all pull requests should contain an updated CHANGELOG.md
and a version bump in the package.json
.
start
runs your app for development, reloading on file changesstart:build
runs your app after it has been built using the build commandbuild
builds your app and outputs it in yourdist
directorytest
runs your test suite with Karmalint
runs the linter for your project
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.