Add bin/setup
This commit is contained in:
parent
a384fa7391
commit
07ea06931c
1 changed files with 15 additions and 0 deletions
15
bin/setup
Executable file
15
bin/setup
Executable 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
|
Loading…
Reference in a new issue