| 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: default | 12 run: default |
| 13 » -wget -nc --output-document=./res/imp/botlist/bot-list-demo.json https:/
/storage.googleapis.com/luci-demo-data/swarming/bot-list-demo.json | 13 » -wget -nc --output-document=./res/imp/botlist/bot-list-demo.json https:/
/raw.githubusercontent.com/wiki/luci/luci-py/bot-list-demo.json |
| 14 » -wget -nc --output-document=./res/imp/botlist/bot-list-fleet-data-demo.j
son https://raw.githubusercontent.com/wiki/luci/luci-py/bot-list-fleet-data-demo
.json |
| 14 | 15 |
| 15 node_modules/.bin/http-server -p 9050 | 16 node_modules/.bin/http-server -p 9050 |
| 16 | 17 |
| 17 | 18 |
| 18 .PHONY: vulcanize | 19 .PHONY: vulcanize |
| 19 vulcanize: default | 20 vulcanize: default |
| 20 rm -rf ./build/* | 21 rm -rf ./build/* |
| 21 mkdir ./build/js | 22 mkdir ./build/js |
| 22 ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --abspath=./ --out-html=./build/elements.html elements.html | 23 ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --abspath=./ --out-html=./build/elements.html elements.html |
| 23 cp ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js
./build/js/webcomponents-lite.min.js | 24 cp ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js
./build/js/webcomponents-lite.min.js |
| (...skipping 16 matching lines...) Expand all Loading... |
| 40 deploy: vulcanize | 41 deploy: vulcanize |
| 41 ../tools/gae upl -A chromium-swarm | 42 ../tools/gae upl -A chromium-swarm |
| 42 | 43 |
| 43 .PHONY: local_deploy | 44 .PHONY: local_deploy |
| 44 local_deploy: vulcanize | 45 local_deploy: vulcanize |
| 45 ../tools/start_servers.py | 46 ../tools/start_servers.py |
| 46 | 47 |
| 47 .PHONY: debug_local_deploy | 48 .PHONY: debug_local_deploy |
| 48 debug_local_deploy: debug_build | 49 debug_local_deploy: debug_build |
| 49 ../tools/start_servers.py | 50 ../tools/start_servers.py |
| OLD | NEW |