core/build_frontend

11 lines
456 B
Plaintext
Raw Normal View History

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