mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Build frontend with polymer-build
This commit is contained in:
parent
cb292a0b18
commit
cad1de790e
@ -13,13 +13,14 @@ rm -rf homeassistant/components/frontend/www_static/core.js* \
|
|||||||
homeassistant/components/frontend/www_static/webcomponents-lite.min.js* \
|
homeassistant/components/frontend/www_static/webcomponents-lite.min.js* \
|
||||||
homeassistant/components/frontend/www_static/panels
|
homeassistant/components/frontend/www_static/panels
|
||||||
cd homeassistant/components/frontend/www_static/home-assistant-polymer
|
cd homeassistant/components/frontend/www_static/home-assistant-polymer
|
||||||
npm run clean
|
|
||||||
|
|
||||||
# Build frontend
|
# Build frontend
|
||||||
npm run frontend_prod
|
BUILD_DEV=0 gulp
|
||||||
cp bower_components/webcomponentsjs/webcomponents-lite.min.js ..
|
cp bower_components/webcomponentsjs/webcomponents-lite.min.js ..
|
||||||
cp -r build/* ..
|
cp build/*.js build/*.html ..
|
||||||
BUILD_DEV=0 node script/gen-service-worker.js
|
mkdir ../panels
|
||||||
|
cp build/panels/*.html ../panels
|
||||||
|
BUILD_DEV=0 gulp gen-service-worker
|
||||||
cp build/service_worker.js ..
|
cp build/service_worker.js ..
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user