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
|
||||
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
# Run the frontend development server
|
||||
|
||||
# Stop on errors
|
||||
set -e
|
||||
|
||||
OUTPUT_DIR=hass_frontend
|
||||
|
||||
rm -rf $OUTPUT_DIR
|
||||
cp -r public $OUTPUT_DIR
|
||||
|
||||
./node_modules/.bin/gulp build-translations authorize authorize-es5
|
||||
|
||||
# Icons
|
||||
script/update_mdi.py
|
||||
|
||||
# Stub the service worker
|
||||
touch $OUTPUT_DIR/service_worker.js
|
||||
|
||||
./node_modules/.bin/webpack --watch --progress
|
||||
Reference in New Issue
Block a user