fix .public clean by git

This commit is contained in:
hardy 2023-06-03 23:05:14 +08:00
parent efd909efe6
commit 552807ab77
No known key found for this signature in database
GPG Key ID: D1ED7F7A9ED520C3
2 changed files with 2 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
/logs/
.public
web
npm-debug.log
yarn-error.log

View File

@ -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