| 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=./imp/botlist/bot-list-demo.json https://sto
rage.googleapis.com/luci-demo-data/swarming/bot-list-demo.json | 13 » -wget -nc --output-document=./res/imp/botlist/bot-list-demo.json https:/
/storage.googleapis.com/luci-demo-data/swarming/bot-list-demo.json |
| 14 | 14 |
| 15 » node_modules/.bin/http-server -p 9050 -a 127.0.0.1 | 15 » node_modules/.bin/http-server -p 9050 |
| 16 | 16 |
| 17 | 17 |
| 18 .PHONY: vulcanize | 18 .PHONY: vulcanize |
| 19 vulcanize: default | 19 vulcanize: default |
| 20 rm -rf ./build/* | 20 rm -rf ./build/* |
| 21 mkdir ./build/js | 21 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 | 22 ./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 | 23 cp ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js
./build/js/webcomponents-lite.min.js |
| 24 | 24 |
| 25 .PHONY: debug_build | 25 .PHONY: debug_build |
| (...skipping 12 matching lines...) Expand all Loading... |
| 38 deploy: vulcanize | 38 deploy: vulcanize |
| 39 ../tools/gae upl -A chromium-swarm | 39 ../tools/gae upl -A chromium-swarm |
| 40 | 40 |
| 41 .PHONY: local_deploy | 41 .PHONY: local_deploy |
| 42 local_deploy: vulcanize | 42 local_deploy: vulcanize |
| 43 ../tools/start_servers.py | 43 ../tools/start_servers.py |
| 44 | 44 |
| 45 .PHONY: debug_local_deploy | 45 .PHONY: debug_local_deploy |
| 46 debug_local_deploy: debug_build | 46 debug_local_deploy: debug_build |
| 47 ../tools/start_servers.py | 47 ../tools/start_servers.py |
| OLD | NEW |