dolphins7.skeleton/bin/setup
2024-03-30 21:20:11 -03:00

17 lines
383 B
Bash
Executable file

#!/bin/sh
# About:
# 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
git submodule update --init --recursive
echo OK