* Initial work to add Chrome Push Notification support * Remove push.js from home-assistant since it is now in Polymer * Chrome->HTML5, general cleanup/fixes * Make html5 generic, move manifest.json into frontend so that we can dynamically add the gcm_sender_id * Pylint, flake8, pydocstyle frontend init * HTML5 push fixes * Update polymer * Remove crypto req * Add notify default platform. * Fix HTML5 push * Registration fixes * Linting fix * pep257 fix * Add tests * pep257 fix * Update frontend
22 lines
538 B
Text
Executable file
22 lines
538 B
Text
Executable file
# Builds the frontend for production
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
cd homeassistant/components/frontend/www_static
|
|
rm -rf core.js* frontend.html* webcomponents-lite.min.js* panels
|
|
cd home-assistant-polymer
|
|
npm run clean
|
|
npm run frontend_prod
|
|
|
|
cp bower_components/webcomponentsjs/webcomponents-lite.min.js ..
|
|
cp -r build/* ..
|
|
BUILD_DEV=0 node script/gen-service-worker.js
|
|
cp build/service_worker.js ..
|
|
|
|
cd ..
|
|
|
|
gzip -f -k -9 *.html *.js ./panels/*.html
|
|
|
|
# Generate the MD5 hash of the new frontend
|
|
cd ../../../..
|
|
script/fingerprint_frontend.py
|