hass-core/scripts/build_js

18 lines
311 B
Text
Raw Normal View History

2015-02-22 17:33:01 -08:00
# Builds the JS for production
# If current pwd is scripts, go 1 up.
if [ ${PWD##*/} == "scripts" ]; then
cd ..
fi
cd homeassistant/components/frontend/www_static/polymer/home-assistant-js
npm install
2015-02-08 23:33:19 -08:00
if [ "$1" = "demo" ]; then
echo "Building a demo mode build!"
npm run demo
else
npm run prod
fi