Update scripts
This commit is contained in:
parent
05783ea334
commit
6e96cb0b9c
4 changed files with 5 additions and 3 deletions
|
@ -4,6 +4,7 @@ FROM ubuntu:16.04
|
|||
RUN apt-get update && apt-get install -y \
|
||||
locales \
|
||||
curl \
|
||||
git \
|
||||
apt-transport-https \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& ln -s /usr/bin/nodejs /usr/bin/node
|
||||
|
@ -12,7 +13,7 @@ ENV LANG en_US.UTF-8
|
|||
|
||||
# install yaml
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
|
||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
|
||||
&& apt-get update && apt-get install -y \
|
||||
nodejs \
|
||||
npm \
|
||||
|
|
0
build-scripts/frontend-build-env/create_frontend.sh
Normal file → Executable file
0
build-scripts/frontend-build-env/create_frontend.sh
Normal file → Executable file
0
build-scripts/frontend-build-env/create_frontend_env.sh
Normal file → Executable file
0
build-scripts/frontend-build-env/create_frontend_env.sh
Normal file → Executable file
5
build-scripts/frontend-build-env/run-build.sh
Normal file → Executable file
5
build-scripts/frontend-build-env/run-build.sh
Normal file → Executable file
|
@ -2,6 +2,7 @@
|
|||
set -e
|
||||
|
||||
# build frontend
|
||||
cd home-assistant-polymer
|
||||
yarn
|
||||
./node_modules/.bin/bower install --allow-root
|
||||
yarn run frontend_prod
|
||||
|
@ -11,5 +12,5 @@ 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/
|
||||
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