frontend/script/develop
Paulus Schoutsen 90328cfc33
Add an onboarding flow (#1452)
* Add an onboarding flow

* Address comments
2018-07-17 10:05:27 +02:00

21 lines
505 B
Bash
Executable File

#!/bin/sh
# Run the frontend development server
# Stop on errors
set -e
BUILD_DIR=build
OUTPUT_DIR=hass_frontend
OUTPUT_DIR_ES5=hass_frontend_es5
rm -rf $OUTPUT_DIR $OUTPUT_DIR_ES5 $BUILD_DIR
mkdir $OUTPUT_DIR $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 gen-icons
cp src/authorize.html $OUTPUT_DIR
cp src/onboarding.html $OUTPUT_DIR
./node_modules/.bin/webpack --watch --progress