homepage.js/install

36 lines
561 B
Plaintext
Raw Normal View History

2023-02-13 02:16:46 +01:00
#!/bin/bash
PACKAGES="sequelize-cli"
DEV_PGKS="gulp-cli gulper gulp mocha"
2023-02-13 02:16:46 +01:00
if [[ $APP_DEBUG == 'true' ]]; then
yarn install
cd scripts
yarn install
cd ..
2023-02-13 02:16:46 +01:00
else
yarn install --prod
cd scripts
yarn install --prod
cd ..
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
echo -e "Installing \033[32m$DEV_PGKS\033[0m"
2023-02-13 02:16:46 +01:00
npm i -g $PACKAGES
npm i -g $DEV_PGKS
2023-02-13 02:16:46 +01:00
else
npm i -g --prod $PACKAGES
fi
2023-03-19 04:01:51 +01:00
echo -e "Installing resume.js"
cd react
./install_resume.sh
cd ..
echo "All done."