Add bin/setup

This commit is contained in:
0x1eef 2024-02-17 21:22:31 -03:00
parent a384fa7391
commit 07ea06931c

15
bin/setup Executable file
View file

@ -0,0 +1,15 @@
#!/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