| 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 » node_modules/.bin/http-server -p 8080 -a 127.0.0.1 |
| 14 » # We use sinon to mock up the demo page's json requests. | 14 |
| 15 » npm install sinon@1.17.2 | 15 |
| 16 » node_modules/.bin/http-server -p 8080 -a 127.0.0.1 | 16 .PHONY: vulcanize |
| 17 vulcanize: |
| 18 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --out-html=./build/index-build.html index.html |
| 19 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --out-html=./build/botlist-build.html botlist.html |
| 20 |
| 21 .PHONY: clean_vulcanize |
| 22 clean_vulcanize: default |
| 23 » rm -f ./build/*build.html |
| 24 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --out-html=./build/index-build.html index.html |
| 25 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --out-html=./build/botlist-build.html botlist.html |
| OLD | NEW |