overleaf/server-ce/bin/compile-services
2019-12-09 18:02:52 +01:00

23 lines
360 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
;;
chat)
echo "$service doesn't require a compilation"
;;
*)
npm run compile:all
;;
esac
popd
done