From 7a6b8cf8cc639d932c5b4772b1e69e48afaa053a Mon Sep 17 00:00:00 2001 From: Bruno 21 Date: Mon, 23 Jul 2018 07:01:08 +0200 Subject: [PATCH] _npm.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ajout du paramètre npm_cleanup et de la commande npm cache clean --- _npm.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_npm.sh b/_npm.sh index a3b333f..83611de 100755 --- a/_npm.sh +++ b/_npm.sh @@ -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