forked from home-assistant/core
Added demo mode
This commit is contained in:
@@ -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,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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user