Added demo mode

This commit is contained in:
Paulus Schoutsen 2015-02-08 23:33:19 -08:00
parent b643ef628b
commit 50bb4daeaa
5 changed files with 13 additions and 5 deletions

View file

@ -1,2 +1,2 @@
""" DO NOT MODIFY. Auto-generated by build_frontend script """ """ DO NOT MODIFY. Auto-generated by build_frontend script """
VERSION = "b45d1c9687dea7c746e8366c65d39d0e" VERSION = "873a4efef163787ea768e761f47354a2"

File diff suppressed because one or more lines are too long

@ -1 +1 @@
Subproject commit 4bba39bf1503bd98669cb3deba0d2e17bc03336d Subproject commit b32562325cf981691a18c88776a10b688cc7c6e6

View file

@ -1,9 +1,11 @@
# Call 'build_frontend demo' to build a demo frontend.
# If current pwd is scripts, go 1 up. # If current pwd is scripts, go 1 up.
if [ ${PWD##*/} == "scripts" ]; then if [ ${PWD##*/} == "scripts" ]; then
cd .. cd ..
fi fi
scripts/build_js scripts/build_js $1
# To build the frontend, you need node, bower and vulcanize # To build the frontend, you need node, bower and vulcanize
# npm install -g bower vulcanize # npm install -g bower vulcanize

View file

@ -6,4 +6,10 @@ fi
cd homeassistant/components/frontend/www_static/polymer/home-assistant-js cd homeassistant/components/frontend/www_static/polymer/home-assistant-js
npm install npm install
npm run prod
if [ "$1" = "demo" ]; then
echo "Building a demo mode build!"
npm run demo
else
npm run prod
fi