hass-core/script/bootstrap_frontend
Adam Mills 8d83912649 Run initial generation for development mode (#9826)
* Run initial generation for development mode

* Use yarn dev
2017-10-12 21:56:38 -07:00

23 lines
557 B
Bash
Executable file

#!/bin/sh
# Resolve all frontend dependencies that the application requires to develop.
# Stop on errors
set -e
cd "$(dirname "$0")/.."
echo "Bootstrapping frontend..."
git submodule update --init
cd homeassistant/components/frontend/www_static/home-assistant-polymer
# Install node modules
yarn install
# Install bower web components. Allow to download the components as root since the user in docker is root.
./node_modules/.bin/bower install --allow-root
# Build files that need to be generated to run development mode
yarn dev
cd ../../../../..