mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-24 12:49:19 +00:00
Write old mdi.html exactly as hass.io expects (#1213)
* Write old mdi.html exactly as hass.io expects * Create build dir if it doesn't exist
This commit is contained in:
@@ -6,10 +6,12 @@ set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
BUILD_DIR=build
|
||||
BUILD_TRANSLATIONS_DIR=build-translations
|
||||
OUTPUT_DIR=hass_frontend
|
||||
OUTPUT_DIR_ES5=hass_frontend_es5
|
||||
|
||||
rm -rf $OUTPUT_DIR $OUTPUT_DIR_ES5 build-translations
|
||||
rm -rf $OUTPUT_DIR $OUTPUT_DIR_ES5 $BUILD_DIR $BUILD_TRANSLATIONS_DIR
|
||||
cp -r public $OUTPUT_DIR
|
||||
mkdir $OUTPUT_DIR_ES5
|
||||
cp -r public/__init__.py $OUTPUT_DIR_ES5/
|
||||
@@ -18,6 +20,9 @@ cp -r public/__init__.py $OUTPUT_DIR_ES5/
|
||||
./node_modules/.bin/gulp build-translations gen-icons
|
||||
NODE_ENV=production ./node_modules/.bin/webpack
|
||||
|
||||
# Temp for Hass.io
|
||||
script/update_mdi.py
|
||||
|
||||
./node_modules/.bin/gulp compress
|
||||
|
||||
# Generate the __init__ file
|
||||
|
||||
Reference in New Issue
Block a user