compile-services 398 B

12345678910111213141516171819202122232425
  1. #! env bash
  2. set -e
  3. grep 'name:' config/services.js | \
  4. sed 's/.*name: "\(.*\)",/\1/' | \
  5. while read service
  6. do
  7. pushd $service
  8. echo "Compiling Service $service"
  9. case $service in
  10. web)
  11. make compile_full
  12. make minify
  13. npm run webpack:production
  14. ;;
  15. chat)
  16. echo "$service doesn't require a compilation"
  17. ;;
  18. *)
  19. npm run compile:all
  20. ;;
  21. esac
  22. popd
  23. done