overleaf/bin/compile-services
2020-04-07 16:17:51 +02:00

23 lines
382 B
Bash
Executable file

#! env bash
set -e
grep 'name:' config/services.js | \
sed 's/.*name: "\(.*\)",/\1/' | \
while read service
do
pushd $service
echo "Compiling Service $service"
case $service in
web)
npm run webpack:production
;;
real-time|document-updater)
npm run compile:all
;;
*)
echo "$service doesn't require a compilation"
;;
esac
popd
done