From a67139a5c22ce7f6da83bdad46d060efe49688cd Mon Sep 17 00:00:00 2001 From: JustArchi Date: Wed, 5 Dec 2018 23:17:09 +0100 Subject: [PATCH] Update cc.sh --- cc.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cc.sh b/cc.sh index 38f88232c..6bb477ac7 100755 --- a/cc.sh +++ b/cc.sh @@ -56,10 +56,15 @@ fi if [[ -f "ASF-ui/package.json" ]] && hash npm 2>/dev/null; then echo "Building ASF UI..." + if [[ -d "ASF-ui/dist" ]]; then + # ASF-ui doesn't clean itself after old build + rm -rf "ASF-ui/dist" + fi + cd ASF-ui - npm i --no-progress + npm i git checkout -- package.json package-lock.json # Until we can switch to npm ci, avoid any changes to source files done by npm i - npm run-script deploy --no-progress + npm run-script deploy cd .. else echo "WARNING: ASF UI dependencies are missing, skipping build of ASF UI..."