Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2017 The LUCI Authors. All rights reserved. | |
| 2 # Use of this source code is governed by the Apache v2.0 license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # Set up the local directory to run the demo pages. | |
| 6 | |
| 7 default: | |
| 8 bower install | |
| 9 | |
| 10 node_modules: | |
| 11 npm install | |
| 12 | |
| 13 # Run a local HTTP server for the demo pages. | |
| 14 .PHONY: run | |
| 15 run: default | |
| 16 node_modules/.bin/http-server -p 9050 | |
| 17 | |
| 18 .PHONY: clean | |
| 19 clean: | |
| 20 rm -rf ./build/* | |
| 21 mkdir -p ./build/js | |
| 22 | |
| 23 .PHONY: vulcanize | |
| 24 vulcanize: clean default | |
| 25 ./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 | |
| 26 cat ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js ./node_modules/skia-common-js/common.js ./res/js/common.js | ./node_modules/.bi n/uglifyjs -o ./build/js/js.js | |
| 27 | |
| 28 .PHONY: debug_build | |
| 29 debug_build: clean default | |
| 30 cp elements.html ./build/elements.html | |
| 31 cat ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js ./node_modules/skia-common-js/common.js ./res/js/common.js > ./build/js/js.js | |
| 32 ln -s ../res/imp/ ./build/ | |
| 33 | |
| 34 .PHONY: dev_deploy | |
| 35 dev_deploy: vulcanize | |
| 36 ../tools/gae upl -A isolateserver-dev | |
|
M-A Ruel
2017/08/01 19:13:13
Not a fan of these hardcoded hostnames
kjlubick
2017/08/02 12:51:22
They make it easier for when I'm developing - I ca
| |
| 37 | |
| 38 .PHONY: deploy | |
| 39 deploy: vulcanize | |
| 40 ../tools/gae upl -A isolateserver | |
| 41 | |
| 42 .PHONY: local_deploy | |
| 43 local_deploy: vulcanize | |
| 44 ../tools/start_servers.py | |
| 45 | |
| 46 .PHONY: debug_local_deploy | |
| 47 debug_local_deploy: debug_build | |
| 48 ../tools/start_servers.py | |
| 49 | |
| 50 .PHONY: debug_dev_deploy | |
| 51 debug_dev_deploy: debug_build | |
| 52 ../tools/gae upl -A isolateserver-dev | |
| OLD | NEW |