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