| 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 | 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 | 17 -wget -nc --output-document=./res/imp/tasklist/task-tags-demo.json https
://raw.githubusercontent.com/wiki/luci/luci-py/task-tags-demo.json |
| 18 | 18 |
| 19 -wget -nc --output-document=./res/imp/botpage/bot-demo.json https://raw.
githubusercontent.com/wiki/luci/luci-py/bot-demo.json | 19 -wget -nc --output-document=./res/imp/botpage/bot-demo.json https://raw.
githubusercontent.com/wiki/luci/luci-py/bot-demo.json |
| 20 -wget -nc --output-document=./res/imp/botpage/bot-events-demo.json https
://raw.githubusercontent.com/wiki/luci/luci-py/bot-events-demo.json | 20 -wget -nc --output-document=./res/imp/botpage/bot-events-demo.json https
://raw.githubusercontent.com/wiki/luci/luci-py/bot-events-demo.json |
| 21 -wget -nc --output-document=./res/imp/botpage/bot-tasks-demo.json https:
//raw.githubusercontent.com/wiki/luci/luci-py/bot-tasks-demo.json | 21 -wget -nc --output-document=./res/imp/botpage/bot-tasks-demo.json https:
//raw.githubusercontent.com/wiki/luci/luci-py/bot-tasks-demo.json |
| 22 | 22 |
| 23 node_modules/.bin/http-server -p 9050 | 23 node_modules/.bin/http-server -p 9050 |
| 24 | 24 |
| 25 | 25 |
| 26 .PHONY: vulcanize | 26 .PHONY: vulcanize |
| 27 vulcanize: default | 27 vulcanize: default |
| 28 rm -rf ./build/* | 28 rm -rf ./build/* |
| 29 mkdir ./build/js | 29 mkdir ./build/js |
| 30 » ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
strip-comments=true --abspath=./ --out-html=./build/elements.html elements.html | 30 » ./node_modules/.bin/vulcanize --inline-css --inline-scripts --strip-comm
ents --abspath=./ elements.html | ./node_modules/.bin/html-minifier -o ./build/e
lements.html --minify-css --minify-js --remove-comments --collapse-whitespace --
conservative-collapse |
| 31 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 | 31 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 |
| 32 | 32 |
| 33 .PHONY: debug_build | 33 .PHONY: debug_build |
| 34 debug_build: default | 34 debug_build: default |
| 35 rm -rf ./build/* | 35 rm -rf ./build/* |
| 36 mkdir ./build/js | 36 mkdir ./build/js |
| 37 cp elements.html ./build/elements.html | 37 cp elements.html ./build/elements.html |
| 38 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 >
./build/js/js.js | 38 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 >
./build/js/js.js |
| 39 ln --symbolic ../res/imp/ ./build/ | 39 ln --symbolic ../res/imp/ ./build/ |
| 40 | 40 |
| 41 .PHONY: dev_deploy | 41 .PHONY: dev_deploy |
| 42 dev_deploy: vulcanize | 42 dev_deploy: vulcanize |
| 43 ../tools/gae upl -A chromium-swarm-dev | 43 ../tools/gae upl -A chromium-swarm-dev |
| 44 | 44 |
| 45 .PHONY: deploy | 45 .PHONY: deploy |
| 46 deploy: vulcanize | 46 deploy: vulcanize |
| 47 ../tools/gae upl -A chromium-swarm | 47 ../tools/gae upl -A chromium-swarm |
| 48 | 48 |
| 49 .PHONY: local_deploy | 49 .PHONY: local_deploy |
| 50 local_deploy: vulcanize | 50 local_deploy: vulcanize |
| 51 ../tools/start_servers.py | 51 ../tools/start_servers.py |
| 52 | 52 |
| 53 .PHONY: debug_local_deploy | 53 .PHONY: debug_local_deploy |
| 54 debug_local_deploy: debug_build | 54 debug_local_deploy: debug_build |
| 55 ../tools/start_servers.py | 55 ../tools/start_servers.py |
| OLD | NEW |