hass-core/script/bootstrap
Johann Kellerman e53b2fe121 [script] Only bootstrap frontend if npm installed (#5507)
* [scripts] Only bootstrap frontend if npm installed

* Message if not frontend dev possible

* yarn
2017-01-24 16:20:18 -08:00

14 lines
295 B
Bash
Executable file

#!/bin/sh
# Resolve all dependencies that the application requires to run.
# Stop on errors
set -e
cd "$(dirname "$0")/.."
script/bootstrap_server
if [ -x "$(command -v yarn >/dev/null)" ]; then
script/bootstrap_frontend
else
echo "Frontend development not possible without Node/yarn"
fi