2014-10-24 22:59:36 -07:00
|
|
|
# To build the frontend, you need node, bower and vulcanize
|
|
|
|
# npm install -g bower vulcanize
|
2014-10-22 00:18:00 -07:00
|
|
|
cd homeassistant/components/http/www_static/polymer
|
|
|
|
bower install
|
2014-10-26 18:10:01 -07:00
|
|
|
cd ..
|
|
|
|
cp polymer/bower_components/platform/platform.js polymer_platform.js
|
2014-10-28 00:38:25 -07:00
|
|
|
vulcanize -o frontend.html --inline polymer/splash-login.html
|
2014-10-26 18:10:01 -07:00
|
|
|
cd ..
|
2014-11-02 17:57:48 -08:00
|
|
|
echo '""" DO NOT MODIFY. Auto-generated by build_frontend script """' > frontend.py
|
2014-10-26 18:10:01 -07:00
|
|
|
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> frontend.py
|