Ajout du paramètre npm_cleanup et de la commande npm cache clean
This commit is contained in:
2018-07-23 07:01:08 +02:00
parent 0b719dc88f
commit 7a6b8cf8cc

View File

@@ -22,3 +22,9 @@ npm ls
npm outdated
npm outdated | awk '{print $1}' | xargs npm update
echo ""
if [[ $1 == "npm_cleanup" ]]; then
echo "🌬 Cleaning npm cache"
npm cache clean
echo ""
fi