mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-24 12:49:19 +00:00
More cleanup (#1185)
* More cleanup * Set up correct urls authorize.html * Fix polymer lint * Remove reference to bower * Tweak uglify settings
This commit is contained in:
@@ -5,16 +5,22 @@
|
||||
set -e
|
||||
|
||||
OUTPUT_DIR=hass_frontend
|
||||
OUTPUT_DIR_ES5=hass_frontend_es5
|
||||
|
||||
rm -rf $OUTPUT_DIR
|
||||
rm -rf $OUTPUT_DIR $OUTPUT_DIR_ES5
|
||||
cp -r public $OUTPUT_DIR
|
||||
mkdir $OUTPUT_DIR_ES5
|
||||
# Needed in case frontend repo installed with pip3 install -e
|
||||
cp -r public/__init__.py $OUTPUT_DIR_ES5/
|
||||
|
||||
./node_modules/.bin/gulp build-translations authorize authorize-es5
|
||||
./node_modules/.bin/gulp build-translations
|
||||
cp src/authorize.html $OUTPUT_DIR
|
||||
|
||||
# Manually copy over this file as we don't run the ES5 build
|
||||
# The Hass.io panel depends on it.
|
||||
cp node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js $OUTPUT_DIR_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