diff --git a/compile.sh b/compile.sh index cdce1da..cd8edb2 100755 --- a/compile.sh +++ b/compile.sh @@ -41,7 +41,6 @@ if [ "$current_branch" = "$BRANCH_NAME" ]; then # 安装依赖并构建 yarn install yarn build - cp package.json dist/ cp package-lock.json dist/ @@ -61,5 +60,5 @@ echo "upload to nexus at $(date)" | tee -a $LOGFILE curl -u 'admin':'YZ9Gq6=8\*G|?:,' --upload-file $PROJECT_NAME-$PROFILE_ENV.tar.gz https://repo.qikongjian.com/repository/frontend-tar-files/ # 清理构建文件 -#rm -rf dist +rm -rf dist rm $PROJECT_NAME-$PROFILE_ENV.tar.gz diff --git a/package.json b/package.json index 9545f05..de18d79 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "红蓝攻防对抗系统前端", "type": "module", "scripts": { + "start": "vite", "dev": "vite", "build": "vue-tsc && vite build", "preview": "vite preview",