| 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 »       node_modules/.bin/http-server -p 8080 -a 127.0.0.1 | 13 »       -wget -nc --output-document=./imp/botlist/bot-list-demo.json https://sto
    rage.googleapis.com/luci-demo-data/swarming/bot-list-demo.json | 
|  | 14 | 
|  | 15 »       node_modules/.bin/http-server -p 9050 -a 127.0.0.1 | 
| 14 | 16 | 
| 15 | 17 | 
| 16 .PHONY: vulcanize | 18 .PHONY: vulcanize | 
| 17 vulcanize: | 19 vulcanize: default | 
| 18 »       ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
    strip-comments=true --out-html=./build/index-build.html index.html | 20 »       rm -rf ./build/* | 
| 19 »       ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
    strip-comments=true --out-html=./build/botlist-build.html botlist.html | 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 | 
|  | 23 »       cp ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js 
    ./build/js/webcomponents-lite.min.js | 
| 20 | 24 | 
| 21 .PHONY: clean_vulcanize | 25 .PHONY: debug_build | 
| 22 clean_vulcanize: default | 26 debug_build: default | 
| 23 »       rm -f ./build/*build.html | 27 »       rm -rf ./build/* | 
| 24 »       ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
    strip-comments=true --out-html=./build/index-build.html index.html | 28 »       mkdir ./build/js | 
| 25 »       ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --
    strip-comments=true --out-html=./build/botlist-build.html botlist.html | 29 »       cp elements.html ./build/elements.html | 
|  | 30 »       cp ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js 
    ./build/js/webcomponents-lite.min.js | 
|  | 31 »       ln --symbolic ../res/imp/ ./build/ | 
|  | 32 | 
|  | 33 .PHONY: dev_deploy | 
|  | 34 dev_deploy: vulcanize | 
|  | 35 »       ../tools/gae upl -A chromium-swarm-dev | 
|  | 36 | 
|  | 37 .PHONY: deploy | 
|  | 38 deploy: vulcanize | 
|  | 39 »       ../tools/gae upl -A chromium-swarm | 
|  | 40 | 
|  | 41 .PHONY: local_deploy | 
|  | 42 local_deploy: vulcanize | 
|  | 43 »       ../tools/start_servers.py | 
|  | 44 | 
|  | 45 .PHONY: debug_local_deploy | 
|  | 46 debug_local_deploy: debug_build | 
|  | 47 »       ../tools/start_servers.py | 
| OLD | NEW | 
|---|