This is an example repo for sharing some best practices and creating public reproductions for Angular bug reports.
- Please see the contributing docs.
- Note the settings in .editorconfig and enable EditorConfig for your Editor or IDE.
- Node.js LTS w/ NPM 5+
- Firebase CLI -
npm install -g firebase-tools
git clone <repo>
cd angular-example
npm install
npm start
will start a server locallynpm test
to run the tests
- Generate minimized production build -
npm run build-prod
firebase login
npm run deploy-prod
- Generate minimized production build -
npm run build-prod
- Start up a http-server to test the Service Worker -
npm run start-sw
- Check in Chrome DevTools
- Application Tab -> Service Workers
- You should see a Service Worker registered under 127.0.0.1