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

Unified Diff: appengine/swarming/elements/Makefile

Issue 2174903002: Add stub pages and oauth-blessed request to /newui (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: more docs Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/Makefile
diff --git a/appengine/swarming/elements/Makefile b/appengine/swarming/elements/Makefile
index ef7faeef5f1b41ee27cdaff1d94cd9d06014bfcd..13a2bf5cd386a76f0fd8e829a17ee8ff82771148 100644
--- a/appengine/swarming/elements/Makefile
+++ b/appengine/swarming/elements/Makefile
@@ -9,8 +9,21 @@ default:
# Run a local HTTP server for the demo pages.
.PHONY: run
-run:
+run: default
npm install http-server
# We use sinon to mock up the demo page's json requests.
npm install sinon@1.17.2
- node_modules/.bin/http-server -p 8080 -a 127.0.0.1
+ node_modules/.bin/http-server -p 8080 -a 127.0.0.1
+
+
+.PHONY: vulcanize
+vulcanize: default
+ rm -f ./build/*build.html
+ npm install vulcanize
stephana 2016/07/24 21:17:06 Instead of hitting npm install every time it would
kjlubick 2016/07/25 12:45:43 Done.
+ ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --strip-comments=true index.html > ./build/index-build.html
+ ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --strip-comments=true botlist.html > ./build/botlist-build.html
+
+.PHONY: quick_vulcanize
+quick_vulcanize:
+ ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --strip-comments=true index.html > ./build/index-build.html
+ ./node_modules/.bin/vulcanize --inline-css=true --inline-scripts=true --strip-comments=true botlist.html > ./build/botlist-build.html

Powered by Google App Engine
This is Rietveld 408576698