mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
25 lines
398 B
Bash
Executable file
25 lines
398 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
|
|
make minify
|
|
npm run webpack:production
|
|
;;
|
|
chat)
|
|
echo "$service doesn't require a compilation"
|
|
;;
|
|
*)
|
|
npm run compile:all
|
|
;;
|
|
esac
|
|
popd
|
|
done
|