overleaf/server-ce/bin/compile-services

25 lines
367 B
Text
Raw Normal View History

#! env bash
2019-08-06 12:00:43 +00:00
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
2019-08-08 16:11:43 +00:00
make minify
;;
chat)
echo "$service doesn't require a compilation"
;;
*)
npm run compile:all
;;
esac
popd
done