From 39050124a84b72574d2256a5fbd433d5068d9146 Mon Sep 17 00:00:00 2001 From: b1ek Date: Sun, 12 Mar 2023 12:23:17 +1000 Subject: [PATCH] install with yarn and only the necessary --- install | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/install b/install index acc2801..5c30164 100755 --- a/install +++ b/install @@ -1,24 +1,28 @@ #!/bin/bash -PACKAGES="gulp-cli gulper gulp mocha sequelize-cli" +PACKAGES="sequelize-cli" +DEV_PGKS="gulp-cli gulper gulp mocha" if [[ $APP_DEBUG == 'true' ]]; then - npm i + yarn install cd scripts - npm i + yarn install cd .. else - npm i --prod + yarn install --prod cd scripts - npm i --prod + yarn install --prod cd .. + fi echo -e "Installing \033[32m$PACKAGES\033[0m" -if [[ APP_DEBUG == 'true' ]]; then +if [[ APP_DEBUG == 'true' ]]; thenS + echo -e "Installing \033[32m$DEV_PGKS\033[0m" npm i -g $PACKAGES + npm i -g $DEV_PGKS else npm i -g --prod $PACKAGES fi