overleaf/bin/install-services

22 lines
294 B
Text
Raw Normal View History

#! env bash
2019-08-06 08:00:55 -04:00
set -e
2017-09-05 10:26:40 -04:00
node ./config/services.js | \
while read service
do
pushd $service
echo "Installing service $service"
case $service in
web)
# install webpack and friends from dev-dependencies.
npm ci
;;
*)
npm ci --only=production
;;
esac
popd
done