install-services 305 B

123456789101112131415
  1. #! env bash
  2. grep 'name:' config/services.js | \
  3. sed 's/.*name: "\(.*\)",/\1/' | \
  4. while read service
  5. do
  6. pushd $service
  7. echo "Installing Service $service"
  8. echo ' installing Node'
  9. type -t nvm && nvm install
  10. type -t nvm && nvm use
  11. echo ' installing Dependencies'
  12. npm install
  13. popd
  14. done