Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The LUCI Authors. All rights reserved. | 1 # Copyright 2016 The LUCI Authors. All rights reserved. |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | 2 # Use of this source code is governed by the Apache v2.0 license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # Set up the local directory to run the demo pages. | 5 # Set up the local directory to run the demo pages. |
| 6 | 6 |
| 7 default: | 7 default: |
| 8 bower install | 8 bower install |
| 9 | 9 |
| 10 # Run a local HTTP server for the demo pages. | 10 # Run a local HTTP server for the demo pages. |
| 11 .PHONY: run | 11 .PHONY: run |
| 12 run: | 12 run: default |
| 13 npm install http-server | 13 npm install http-server |
| 14 # We use sinon to mock up the demo page's json requests. | 14 # We use sinon to mock up the demo page's json requests. |
| 15 npm install sinon@1.17.2 | 15 npm install sinon@1.17.2 |
| 16 » node_modules/.bin/http-server -p 8080 -a 127.0.0.1 | 16 » node_modules/.bin/http-server -p 8080 -a 127.0.0.1 |
| 17 | |
| 18 | |
| 19 .PHONY: vulcanize | |
| 20 vulcanize: default | |
| 21 » rm -f ./build/*build.html | |
| 22 » npm install vulcanize | |
|
stephana
2016/07/24 21:17:06
Instead of hitting npm install every time it would
kjlubick
2016/07/25 12:45:43
Done.
| |
| 23 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true -- strip-comments=true index.html > ./build/index-build.html | |
| 24 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true -- strip-comments=true botlist.html > ./build/botlist-build.html | |
| 25 | |
| 26 .PHONY: quick_vulcanize | |
| 27 quick_vulcanize: | |
| 28 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true -- strip-comments=true index.html > ./build/index-build.html | |
| 29 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true -- strip-comments=true botlist.html > ./build/botlist-build.html | |
| OLD | NEW |