overleaf/bin/compile-services

24 lines
365 B
Text
Raw Normal View History

#! env bash
2019-08-06 08:00:43 -04: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)
npm run webpack:production
;;
real-time)
npm run compile:all
;;
*)
echo "$service doesn't require a compilation"
;;
esac
popd
done