dolphins7.skeleton/bin/setup

16 lines
340 B
Text
Raw Normal View History

2024-02-18 01:22:31 +01:00
#!/bin/sh
# DESCRIPTION
# bin/setup installs rubygem & npm dependencies in each
# sub-directory / sub-package (cli, client, server).
set -e
wrkdir=$(pwd)
subdir=". twenty-cli twenty-client twenty-server"
for dir in ${subdir}; do
cd ${dir}
bundle install
if [ -e "package.json" ]; then
npm i
fi
cd ${wrkdir}
done