hass-core/build_frontend
2014-11-02 17:57:48 -08:00

10 lines
456 B
Text
Executable file

# To build the frontend, you need node, bower and vulcanize
# npm install -g bower vulcanize
cd homeassistant/components/http/www_static/polymer
bower install
cd ..
cp polymer/bower_components/platform/platform.js polymer_platform.js
vulcanize -o frontend.html --inline polymer/splash-login.html
cd ..
echo '""" DO NOT MODIFY. Auto-generated by build_frontend script """' > frontend.py
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> frontend.py