overleaf/bin/compile-services
2019-09-03 11:36:10 +02:00

24 lines
390 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)
make compile_full
WEBPACK_ENV=production make minify
;;
chat)
echo "$service doesn't require a compilation"
;;
*)
npm run compile:all
;;
esac
popd
done