mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 21:30:59 +00:00
20 lines
319 B
Bash
Executable file
20 lines
319 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
|
|
;;
|
|
*)
|
|
echo "$service doesn't require a compilation"
|
|
;;
|
|
esac
|
|
popd
|
|
done
|