core/build_frontend

11 lines
456 B
Plaintext
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