oneuptime/Ci/scripts/clean_install.sh
2022-04-11 14:11:16 +01:00

29 lines
549 B
Bash

#!/usr/bin/env bash
echo "
This script npm install's the every project
"
function clean_install {
echo "Installing $1"
cd $1
rm package-lock.json
rm -rf node_modules
npm install
npm audit fix
cd ..
echo "Complete $1"
echo ""
}
clean_install dashboard
clean_install accounts
clean_install backend
clean_install home
clean_install StatusPage
clean_install ApiDocs
clean_install probe
clean_install AdminDashboard
clean_install InitScript
clean_install licensing
clean_install HelmChart
clean_install JavaScriptSDK
clean_install .