dolphins7.skeleton/host/bin/setup
0x1eef daff4d83f4 Move "host" files to host/
The "host" refers to what houses the cli, server, and client.
2024-04-21 22:13:01 -03:00

17 lines
362 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=". cli client 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