[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 authored and Paulus Schoutsen committed 2017-01-24 16:20:18 -08:00
1 parent eb1e8ebc18
commit e53b2fe121
2 files changed
+8 -3

No files matched your search

+6 -1
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