2017-01-25 22:46:04 +03:00
|
|
|
# Lighthouse Viewer
|
2016-12-07 04:16:50 +03:00
|
|
|
|
2017-04-25 22:58:44 +03:00
|
|
|
Online at https://googlechrome.github.io/lighthouse/viewer/
|
|
|
|
|
2017-01-25 22:46:04 +03:00
|
|
|
## Development
|
2016-12-07 04:16:50 +03:00
|
|
|
|
|
|
|
* `npm i`
|
2017-01-25 22:46:04 +03:00
|
|
|
* Build: `gulp`, Watch: `gulp watch`
|
2016-12-07 04:16:50 +03:00
|
|
|
|
|
|
|
For development, `gulp watch` will browserify `dist/src/main.js` and create a
|
|
|
|
runnable script in all modern browsers. Use this for quick iterations when developing.
|
|
|
|
|
|
|
|
For production, run `gulp`. This compiles and minifies `dist/src/main.js` using Closure.
|
|
|
|
|
2017-01-25 22:46:04 +03:00
|
|
|
## Deploy
|
2016-12-07 04:16:50 +03:00
|
|
|
|
2017-01-25 19:47:16 +03:00
|
|
|
Deploys should be done as part of the Lighthouse release process. To update GitHub pages,
|
2016-12-07 04:16:50 +03:00
|
|
|
run the following in the root folder of a Lighthouse checkout:
|
|
|
|
|
2017-01-25 22:46:04 +03:00
|
|
|
```sh
|
|
|
|
npm run deploy-viewer
|
|
|
|
```
|
2016-12-07 04:16:50 +03:00
|
|
|
|
2017-01-25 22:46:04 +03:00
|
|
|
This builds `lighthouse-viewer/dist/src/main.js` and pushes the contents of `dist` folder
|
2016-12-07 04:16:50 +03:00
|
|
|
to the `gh-pages` branch.
|