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