overleaf/bin/install-services

16 lines
269 B
Bash
Executable file

#! env bash
set -ex
grep 'name:' config/services.js | \
sed 's/.*name: "\(.*\)",/\1/' | \
while read service
do
pushd $service
echo "Installing Node from .nvmrc"
nvm install && nvm use
echo "Installing service $service"
npm install --quiet
popd
done