Added demo mode

This commit is contained in:
Paulus Schoutsen committed 2015-02-08 23:33:19 -08:00
1 parent b643ef628b
commit 50bb4daeaa
5 files changed
+13 -5

No files matched your search

+3 -1
View File
@@ -1,9 +1,11 @@
# Call 'build_frontend demo' to build a demo frontend.
# If current pwd is scripts, go 1 up.
if [ ${PWD##*/} == "scripts" ]; then
cd ..
fi
scripts/build_js
scripts/build_js $1
# To build the frontend, you need node, bower and vulcanize
# npm install -g bower vulcanize
+7 -1
View File
@@ -6,4 +6,10 @@ fi
cd homeassistant/components/frontend/www_static/polymer/home-assistant-js
npm install
npm run prod
if [ "$1" = "demo" ]; then
echo "Building a demo mode build!"
npm run demo
else
npm run prod
fi