2019-07-23 08:56:49 -04:00
|
|
|
#! env bash
|
|
|
|
|
2019-08-06 08:00:43 -04:00
|
|
|
set -e
|
2019-07-23 08:56:49 -04:00
|
|
|
|
|
|
|
grep 'name:' config/services.js | \
|
|
|
|
sed 's/.*name: "\(.*\)",/\1/' | \
|
|
|
|
while read service
|
|
|
|
do
|
|
|
|
pushd $service
|
|
|
|
echo "Compiling Service $service"
|
|
|
|
case $service in
|
|
|
|
web)
|
2019-10-23 04:20:39 -04:00
|
|
|
npm run webpack:production
|
2019-07-23 08:56:49 -04:00
|
|
|
;;
|
2020-05-06 08:32:53 -04:00
|
|
|
real-time)
|
2020-04-07 10:17:51 -04:00
|
|
|
npm run compile:all
|
2019-07-23 08:56:49 -04:00
|
|
|
;;
|
|
|
|
*)
|
2020-04-07 10:17:51 -04:00
|
|
|
echo "$service doesn't require a compilation"
|
2019-07-23 08:56:49 -04:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
popd
|
|
|
|
done
|