2019-07-23 12:56:49 +00:00
|
|
|
#! env bash
|
|
|
|
|
2019-08-06 12:00:43 +00:00
|
|
|
set -e
|
2019-07-23 12:56:49 +00: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 08:20:39 +00:00
|
|
|
npm run webpack:production
|
2019-07-23 12:56:49 +00:00
|
|
|
;;
|
2020-04-07 14:17:51 +00:00
|
|
|
real-time|document-updater)
|
|
|
|
npm run compile:all
|
2019-07-23 12:56:49 +00:00
|
|
|
;;
|
|
|
|
*)
|
2020-04-07 14:17:51 +00:00
|
|
|
echo "$service doesn't require a compilation"
|
2019-07-23 12:56:49 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
popd
|
|
|
|
done
|