Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: appengine/swarming/ui/Makefile

Issue 2765313002: Add proper natural sort to swarming UI (Closed)
Patch Set: Update package.json Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/swarming/ui/.gitignore ('k') | appengine/swarming/ui/build/elements.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.
(...skipping 19 matching lines...) Expand all
30 -wget -nc --output-document=./res/imp/stats/stats-overview-demo.json htt ps://raw.githubusercontent.com/wiki/luci/luci-py/stats/stats-overview-demo.json 30 -wget -nc --output-document=./res/imp/stats/stats-overview-demo.json htt ps://raw.githubusercontent.com/wiki/luci/luci-py/stats/stats-overview-demo.json
31 31
32 node_modules/.bin/http-server -p 9050 32 node_modules/.bin/http-server -p 9050
33 33
34 .PHONY: clean 34 .PHONY: clean
35 clean: 35 clean:
36 rm -rf ./build/* 36 rm -rf ./build/*
37 mkdir -p ./build/js 37 mkdir -p ./build/js
38 38
39 .PHONY: vulcanize 39 .PHONY: vulcanize
40 vulcanize: clean default common_strings 40 vulcanize: clean default common_strings natural_sort
41 ./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 41 ./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
42 » cat ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js ./build/js/common-strings.js ./node_modules/skia-common-js/common.js ./res/js/c ommon.js ./res/js/alias.js | ./node_modules/.bin/uglifyjs -o ./build/js/js.js 42 » cat ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js ./build/js/common-strings.js ./node_modules/skia-common-js/common.js ./build/js /natural-sort.js ./res/js/common.js ./res/js/alias.js | ./node_modules/.bin/ugli fyjs -o ./build/js/js.js
43 43
44 .PHONY: debug_build 44 .PHONY: debug_build
45 debug_build: clean default common_strings 45 debug_build: clean default common_strings natural_sort
46 cp elements.html ./build/elements.html 46 cp elements.html ./build/elements.html
47 » cat ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js ./build/js/common-strings.js ./node_modules/skia-common-js/common.js ./res/js/c ommon.js ./res/js/alias.js > ./build/js/js.js 47 » cat ./res/imp/bower_components/webcomponentsjs/webcomponents-lite.min.js ./build/js/common-strings.js ./node_modules/skia-common-js/common.js ./build/js /natural-sort.js ./res/js/common.js ./res/js/alias.js > ./build/js/js.js
48 ln -s ../res/imp/ ./build/ 48 ln -s ../res/imp/ ./build/
49 49
50 .PHONY: common_strings 50 .PHONY: common_strings
51 common_strings: 51 common_strings:
52 echo "(function(){var customUtils = {};" > ./build/js/common-strings.js 52 echo "(function(){var customUtils = {};" > ./build/js/common-strings.js
53 cat node_modules/common-substrings/lib/customUtils.js node_modules/commo n-substrings/lib/bst.js node_modules/common-substrings/lib/commonSubstrings.js > > ./build/js/common-strings.js 53 cat node_modules/common-substrings/lib/customUtils.js node_modules/commo n-substrings/lib/bst.js node_modules/common-substrings/lib/commonSubstrings.js > > ./build/js/common-strings.js
54 echo "window.Substrings = SuffixTrie;})();" >> ./build/js/common-strings .js 54 echo "window.Substrings = SuffixTrie;})();" >> ./build/js/common-strings .js
55 # Remove require-js related things. 55 # Remove require-js related things.
56 sed -i -e 's/module.exports.getRandomArray/customUtils.getRandomArray/g' ./build/js/common-strings.js 56 sed -i -e 's/module.exports.getRandomArray/customUtils.getRandomArray/g' ./build/js/common-strings.js
57 sed -i -e 's/module.exports.defaultCompareKeysFunction/customUtils.defau ltCompareKeysFunction/g' ./build/js/common-strings.js 57 sed -i -e 's/module.exports.defaultCompareKeysFunction/customUtils.defau ltCompareKeysFunction/g' ./build/js/common-strings.js
58 sed -i -e 's/module.exports.defaultCheckValueEquality/customUtils.defaul tCheckValueEquality/g' ./build/js/common-strings.js 58 sed -i -e 's/module.exports.defaultCheckValueEquality/customUtils.defaul tCheckValueEquality/g' ./build/js/common-strings.js
59 sed -i -e 's/var customUtils = require.*/ /g' ./build/js/common-strings. js 59 sed -i -e 's/var customUtils = require.*/ /g' ./build/js/common-strings. js
60 sed -i -e 's/module.exports = BinarySearchTree;/ /g' ./build/js/common-s trings.js 60 sed -i -e 's/module.exports = BinarySearchTree;/ /g' ./build/js/common-s trings.js
61 sed -i -e 's/var BinarySearchTree = require.*/ /g' ./build/js/common-str ings.js 61 sed -i -e 's/var BinarySearchTree = require.*/ /g' ./build/js/common-str ings.js
62 sed -i -e 's/module.exports = SuffixTrie;/ /g' ./build/js/common-strings .js 62 sed -i -e 's/module.exports = SuffixTrie;/ /g' ./build/js/common-strings .js
63 63
64 .PHONY: natural_sort
65 natural_sort:
66 cat node_modules/javascript-natural-sort/naturalSort.js > ./build/js/nat ural-sort.js
67 sed -i -e 's/module.exports = function naturalSort/window.naturalSort = function/g' ./build/js/natural-sort.js
64 68
65 .PHONY: dev_deploy 69 .PHONY: dev_deploy
66 dev_deploy: vulcanize 70 dev_deploy: vulcanize
67 ../tools/gae upl -A chromium-swarm-dev 71 ../tools/gae upl -A chromium-swarm-dev
68 72
69 .PHONY: deploy 73 .PHONY: deploy
70 deploy: vulcanize 74 deploy: vulcanize
71 ../tools/gae upl -A chromium-swarm 75 ../tools/gae upl -A chromium-swarm
72 76
73 .PHONY: local_deploy 77 .PHONY: local_deploy
74 local_deploy: vulcanize 78 local_deploy: vulcanize
75 ../tools/start_servers.py 79 ../tools/start_servers.py
76 80
77 .PHONY: debug_local_deploy 81 .PHONY: debug_local_deploy
78 debug_local_deploy: debug_build 82 debug_local_deploy: debug_build
79 ../tools/start_servers.py 83 ../tools/start_servers.py
80 84
81 .PHONY: debug_dev_deploy 85 .PHONY: debug_dev_deploy
82 debug_dev_deploy: debug_build 86 debug_dev_deploy: debug_build
83 ../tools/gae upl -A chromium-swarm-dev 87 ../tools/gae upl -A chromium-swarm-dev
OLDNEW
« no previous file with comments | « appengine/swarming/ui/.gitignore ('k') | appengine/swarming/ui/build/elements.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698