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