| 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:/
/raw.githubusercontent.com/wiki/luci/luci-py/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 -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 |
| 15 -wget -nc --output-document=./res/imp/tasklist/task-list-demo.json https
://raw.githubusercontent.com/wiki/luci/luci-py/task-list-demo.json | 15 -wget -nc --output-document=./res/imp/tasklist/task-list-demo.json https
://raw.githubusercontent.com/wiki/luci/luci-py/task-list-demo.json |
| 16 -wget -nc --output-document=./res/imp/tasklist/task-list-fleet-data-demo
.json https://raw.githubusercontent.com/wiki/luci/luci-py/task-list-fleet-data-d
emo.json |
| 17 -wget -nc --output-document=./res/imp/tasklist/task-tags-demo.json https
://raw.githubusercontent.com/wiki/luci/luci-py/task-tags-demo.json |
| 16 | 18 |
| 17 node_modules/.bin/http-server -p 9050 | 19 node_modules/.bin/http-server -p 9050 |
| 18 | 20 |
| 19 | 21 |
| 20 .PHONY: vulcanize | 22 .PHONY: vulcanize |
| 21 vulcanize: default | 23 vulcanize: default |
| 22 rm -rf ./build/* | 24 rm -rf ./build/* |
| 23 mkdir ./build/js | 25 mkdir ./build/js |
| 24 ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --abspath=./ --out-html=./build/elements.html elements.html | 26 ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --abspath=./ --out-html=./build/elements.html elements.html |
| 25 cat ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js
./node_modules/skia-common-js/common.js ./res/js/common.js ./res/js/alias.js |
./node_modules/.bin/uglifyjs -o ./build/js/js.js | 27 cat ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js
./node_modules/skia-common-js/common.js ./res/js/common.js ./res/js/alias.js |
./node_modules/.bin/uglifyjs -o ./build/js/js.js |
| (...skipping 14 matching lines...) Expand all Loading... |
| 40 deploy: vulcanize | 42 deploy: vulcanize |
| 41 ../tools/gae upl -A chromium-swarm | 43 ../tools/gae upl -A chromium-swarm |
| 42 | 44 |
| 43 .PHONY: local_deploy | 45 .PHONY: local_deploy |
| 44 local_deploy: vulcanize | 46 local_deploy: vulcanize |
| 45 ../tools/start_servers.py | 47 ../tools/start_servers.py |
| 46 | 48 |
| 47 .PHONY: debug_local_deploy | 49 .PHONY: debug_local_deploy |
| 48 debug_local_deploy: debug_build | 50 debug_local_deploy: debug_build |
| 49 ../tools/start_servers.py | 51 ../tools/start_servers.py |
| OLD | NEW |