From 07ea06931cc1ef5149f3750d389ceddf68f2ce58 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 17 Feb 2024 21:22:31 -0300 Subject: [PATCH] Add bin/setup --- bin/setup | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/setup diff --git a/bin/setup b/bin/setup new file mode 100755 index 0000000..4eda890 --- /dev/null +++ b/bin/setup @@ -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