install with yarn and only the necessary

This commit is contained in:
b1ek 2023-03-12 12:23:17 +10:00
parent d2c4b9e6d0
commit 39050124a8
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 10 additions and 6 deletions

16
install
View File

@ -1,24 +1,28 @@
#!/bin/bash #!/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 if [[ $APP_DEBUG == 'true' ]]; then
npm i yarn install
cd scripts cd scripts
npm i yarn install
cd .. cd ..
else else
npm i --prod yarn install --prod
cd scripts cd scripts
npm i --prod yarn install --prod
cd .. cd ..
fi fi
echo -e "Installing \033[32m$PACKAGES\033[0m" 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 $PACKAGES
npm i -g $DEV_PGKS
else else
npm i -g --prod $PACKAGES npm i -g --prod $PACKAGES
fi fi