mirror of
https://github.com/home-assistant/frontend.git
synced 2026-05-08 09:18:34 +01:00
Build hassio panel (#1184)
* Fix hass.io panel * Add develop scripts * Build hassio on Travis
This commit is contained in:
@@ -16,7 +16,7 @@ cp -r public/__init__.py $OUTPUT_DIR_ES5/
|
||||
|
||||
# Build frontend
|
||||
BUILD_DEV=0 ./node_modules/.bin/gulp build-translations authorize authorize-es5
|
||||
NODE_ENV=production webpack -p
|
||||
NODE_ENV=production ./node_modules/.bin/webpack -p
|
||||
|
||||
# Icons
|
||||
script/update_mdi.py
|
||||
@@ -24,8 +24,8 @@ script/update_mdi.py
|
||||
./node_modules/.bin/gulp compress
|
||||
|
||||
# Stub the service worker
|
||||
touch hass_frontend/service_worker.js
|
||||
touch hass_frontend_es5/service_worker.js
|
||||
touch $OUTPUT_DIR/service_worker.js
|
||||
touch $OUTPUT_DIR_ES5/service_worker.js
|
||||
|
||||
# Generate the __init__ file
|
||||
echo "VERSION = '`git rev-parse HEAD`'" >> $OUTPUT_DIR/__init__.py
|
||||
|
||||
Reference in New Issue
Block a user