2023-02-13 02:16:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-03-12 03:23:17 +01:00
|
|
|
PACKAGES="sequelize-cli"
|
|
|
|
DEV_PGKS="gulp-cli gulper gulp mocha"
|
2023-02-13 02:16:46 +01:00
|
|
|
|
|
|
|
if [[ $APP_DEBUG == 'true' ]]; then
|
2023-03-12 03:23:17 +01:00
|
|
|
yarn install
|
2023-02-23 07:55:19 +01:00
|
|
|
|
|
|
|
cd scripts
|
2023-03-12 03:23:17 +01:00
|
|
|
yarn install
|
2023-02-23 07:55:19 +01:00
|
|
|
cd ..
|
2023-02-13 02:16:46 +01:00
|
|
|
else
|
2023-03-12 03:23:17 +01:00
|
|
|
yarn install --prod
|
2023-02-23 07:55:19 +01:00
|
|
|
|
|
|
|
cd scripts
|
2023-03-12 03:23:17 +01:00
|
|
|
yarn install --prod
|
2023-02-23 07:55:19 +01:00
|
|
|
cd ..
|
2023-03-12 03:23:17 +01:00
|
|
|
|
2023-02-13 02:16:46 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo -e "Installing \033[32m$PACKAGES\033[0m"
|
2023-03-12 14:54:18 +01:00
|
|
|
if [[ APP_DEBUG == 'true' ]]; then
|
2023-03-12 03:23:17 +01:00
|
|
|
echo -e "Installing \033[32m$DEV_PGKS\033[0m"
|
2023-02-13 02:16:46 +01:00
|
|
|
npm i -g $PACKAGES
|
2023-03-12 03:23:17 +01:00
|
|
|
npm i -g $DEV_PGKS
|
2023-02-13 02:16:46 +01:00
|
|
|
else
|
|
|
|
npm i -g --prod $PACKAGES
|
|
|
|
fi
|
|
|
|
echo "All done."
|