mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
[script] Only bootstrap frontend if npm installed (#5507)
* [scripts] Only bootstrap frontend if npm installed * Message if not frontend dev possible * yarn
This commit is contained in:
parent
eb1e8ebc18
commit
e53b2fe121
@ -6,4 +6,9 @@ set -e
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
script/bootstrap_server
|
script/bootstrap_server
|
||||||
script/bootstrap_frontend
|
|
||||||
|
if [ -x "$(command -v yarn >/dev/null)" ]; then
|
||||||
|
script/bootstrap_frontend
|
||||||
|
else
|
||||||
|
echo "Frontend development not possible without Node/yarn"
|
||||||
|
fi
|
||||||
|
@ -12,10 +12,10 @@ git submodule update
|
|||||||
cd homeassistant/components/frontend/www_static/home-assistant-polymer
|
cd homeassistant/components/frontend/www_static/home-assistant-polymer
|
||||||
|
|
||||||
# Install node modules
|
# Install node modules
|
||||||
npm install
|
yarn install
|
||||||
|
|
||||||
# Install bower web components. Allow to download the components as root since the user in docker is root.
|
# 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
|
./node_modules/.bin/bower install --allow-root
|
||||||
|
|
||||||
npm run setup_js_dev
|
yarn run setup_js_dev
|
||||||
cd ../../../../..
|
cd ../../../../..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user