hass-core/build_polymer

11 lines
462 B
Text
Raw Normal View History

# 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
vulcanize -o frontend.html --inline polymer/home-assistant-main.html
cd ..
echo '""" DO NOT MODIFY. Auto-generated by build_polymer script """' > frontend.py
echo 'VERSION = "'`md5 -q www_static/frontend.html`'"' >> frontend.py