[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:
Johann Kellerman
2017-01-25 02:20:18 +02:00
committed by Paulus Schoutsen
parent eb1e8ebc18
commit e53b2fe121
2 changed files with 8 additions and 3 deletions

View File

@ -6,4 +6,9 @@ set -e
cd "$(dirname "$0")/.."
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