refactor(deploy): 统一发布脚本为单一入口 scripts/deploy.sh
- 新增 scripts/deploy.sh,支持 build/deploy/rollback/status 子命令 - 删除 deploy.sh、deploy-dist.sh、scripts/deploy-static.sh、scripts/deployment/deploy-production.sh - Jenkinsfile 部署/回滚改为调用统一脚本,移除内联部署逻辑与 STATIC_DIR - 同步 README、DEPLOYMENT、docs、CLAUDE.md、setup-cicd 与 package.json 脚本
This commit is contained in:
@@ -14,6 +14,13 @@ npm run build # Build production files to dist/
|
||||
npm run build:clean # Clean then build
|
||||
npm run preview # Serve dist/ on port 3000 (npx serve)
|
||||
|
||||
# Deploy (统一发布脚本)
|
||||
./scripts/deploy.sh build # 构建静态产物
|
||||
./scripts/deploy.sh deploy # 构建并发布到生产服务器
|
||||
./scripts/deploy.sh deploy --skip-build # 使用现有 dist/ 直接发布
|
||||
./scripts/deploy.sh rollback # 回滚到最近一次远程备份
|
||||
./scripts/deploy.sh status # 查看生产环境发布状态
|
||||
|
||||
# Linting & Type Checking
|
||||
npm run lint # ESLint (configured in config/lint/.eslintrc.json)
|
||||
npm run type-check # tsc --noEmit
|
||||
|
||||
Reference in New Issue
Block a user