2017-01-02 21:04:09 +00:00
|
|
|
#!/bin/sh
|
2017-05-12 07:01:06 +00:00
|
|
|
# Resolve all frontend dependencies that the application requires to develop.
|
2017-01-02 21:04:09 +00:00
|
|
|
|
|
|
|
# Stop on errors
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
2015-09-17 07:35:26 +00:00
|
|
|
echo "Bootstrapping frontend..."
|
2017-01-02 21:04:09 +00:00
|
|
|
|
2015-12-18 07:51:34 +00:00
|
|
|
git submodule update
|
2015-09-17 07:35:26 +00:00
|
|
|
cd homeassistant/components/frontend/www_static/home-assistant-polymer
|
2017-01-02 21:04:09 +00:00
|
|
|
|
|
|
|
# Install node modules
|
2017-01-25 00:20:18 +00:00
|
|
|
yarn install
|
2017-01-02 21:04:09 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2015-09-17 07:35:26 +00:00
|
|
|
cd ../../../../..
|