Add frontend build env (#9)
This commit is contained in:
parent
7f5510391f
commit
05783ea334
4 changed files with 197 additions and 0 deletions
15
build-scripts/frontend-build-env/run-build.sh
Normal file
15
build-scripts/frontend-build-env/run-build.sh
Normal 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/
|
Loading…
Add table
Add a link
Reference in a new issue