2017-07-27 14:39:22 +00:00
|
|
|
#! env bash
|
|
|
|
|
2017-09-05 14:26:40 +00:00
|
|
|
[ -z "`type -t nvm`" ] && cat <<EOF
|
|
|
|
|
|
|
|
==========================================================
|
|
|
|
== NVM not installed, you should consider installing it ==
|
|
|
|
==========================================================
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
2017-07-27 14:39:22 +00:00
|
|
|
grep 'name:' config/services.js | \
|
|
|
|
sed 's/.*name: "\(.*\)",/\1/' | \
|
|
|
|
while read service
|
|
|
|
do
|
2017-09-04 14:40:27 +00:00
|
|
|
pushd $service
|
|
|
|
echo "Installing Service $service"
|
|
|
|
echo ' installing Node'
|
2017-09-04 14:57:13 +00:00
|
|
|
type -t nvm && nvm install
|
|
|
|
type -t nvm && nvm use
|
2017-09-04 14:40:27 +00:00
|
|
|
echo ' installing Dependencies'
|
2017-07-27 14:39:22 +00:00
|
|
|
npm install
|
2017-09-06 12:37:34 +00:00
|
|
|
grunt install
|
2017-07-27 14:39:22 +00:00
|
|
|
popd
|
|
|
|
done
|