core/script/build_frontend

23 lines
519 B
Plaintext
Raw Normal View History

2015-02-23 01:33:01 +00:00
# Builds the frontend for production
2015-02-09 07:33:19 +00:00
cd "$(dirname "$0")/.."
2015-01-17 22:32:33 +00:00
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
2015-02-06 06:36:23 +00:00
cp bower_components/webcomponentsjs/webcomponents-lite.min.js ..
cp -r build/* ..
2016-05-28 04:45:38 +00:00
node script/sw-precache.js
cp build/service_worker.js ..
cd ..
gzip -f -k -9 *.html *.js ./panels/*.html
2016-05-28 04:45:38 +00:00
2014-11-12 08:36:20 +00:00
# Generate the MD5 hash of the new frontend
cd ../../../..
script/fingerprint_frontend.py