Add frontend build env (#9)

This commit is contained in:
Pascal Vizeli 2017-05-14 00:06:53 +02:00 committed by GitHub
parent 7f5510391f
commit 05783ea334
4 changed files with 197 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/bin/bash
set -e
# build frontend
yarn
./node_modules/.bin/bower install --allow-root
yarn run frontend_prod
# prepare data
cd build-temp/
gzip -f -k -9 ./*.html
# move to frontend
cp -f hassio-main.html ../hassio/panel/
cp -f hassio-main.html.gz ../hassio/panel/