lighthouse/lighthouse-viewer/README.md

26 строки
716 B
Markdown
Исходник Обычный вид История

# 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/
## Development
2016-12-07 04:16:50 +03:00
* `npm i`
* 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.
## 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:
```sh
npm run deploy-viewer
```
2016-12-07 04:16:50 +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.