From 552807ab77f3565b5a384b10a62a81c7cdcab4bf Mon Sep 17 00:00:00 2001 From: hardy Date: Sat, 3 Jun 2023 23:05:14 +0800 Subject: [PATCH] fix .public clean by git --- .gitignore | 1 + build-web.sh | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index f1d63e6a..67b2654d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /logs/ +.public web npm-debug.log yarn-error.log diff --git a/build-web.sh b/build-web.sh index 435d608f..728f9fd7 100644 --- a/build-web.sh +++ b/build-web.sh @@ -12,14 +12,8 @@ if [ ! -d $WORKBASE/web ]; then fi cd $WORKBASE/web -echo "build console ui to .public." git pull origin master -echo "loglevel=silent" > .npmrc - cnpm install --quiet --no-progress -cnpm run -s build - -echo "move .public to $WORKBAS" -mv $WORKBASE/web/.public $WORKBASE +cnpm run build --quiet