合肥雷能,web管理后台,https://radar-power.cn/
|
il y a 2 jours | |
---|---|---|
.vscode | il y a 2 mois | |
public | il y a 4 semaines | |
scripts | il y a 2 mois | |
src | il y a 2 jours | |
.editorconfig | il y a 2 mois | |
.env.development | il y a 1 mois | |
.env.production | il y a 1 mois | |
.env.test | il y a 1 mois | |
.eslintrc.cjs | il y a 2 mois | |
.gitattributes | il y a 2 mois | |
.gitignore | il y a 2 mois | |
.gitmessage.txt | il y a 2 mois | |
.prettierignore | il y a 2 mois | |
.prettierrc.json | il y a 2 mois | |
CHANGELOG.md | il y a 1 semaine | |
Dockerfile | il y a 2 mois | |
Jenkinsfile | il y a 2 mois | |
README.md | il y a 2 mois | |
components.d.ts | il y a 2 jours | |
env.d.ts | il y a 2 mois | |
eslint.config.ts | il y a 2 mois | |
index.html | il y a 2 mois | |
nginx.conf | il y a 2 mois | |
package.json | il y a 1 semaine | |
pnpm-lock.yaml | il y a 1 mois | |
tsconfig.app.json | il y a 2 mois | |
tsconfig.json | il y a 2 mois | |
tsconfig.node.json | il y a 2 mois | |
vite.config.ts | il y a 1 mois |
本项目在 package.json
中定义了一系列常用脚本,用于本地开发、构建、发布和部署。
以下是脚本的功能使用说明:
🟢 开发
npm install # 安装依赖
npm run dev # 启动开发环境
npm run dev:test # 启动测试环境
npm run dev:pro # 启动生产环境
📦 构建
npm run build:dev # 构建开发环境
npm run build:test # 构建测试环境
npm run build:prod # 构建生产环境
npm run build # 构建生产环境
📤 部署
npm run deploy # 执行部署脚本
npm run deploy:dev # 部署开发环境
npm run deploy:test # 部署测试环境
npm run deploy:prod # 部署生产环境
🚀 发布版本
npm run release # 发布版本并生成日志
🔄 同步分支代码
# 同步 dev 分支到 prod 分支
bash scripts/merge_dev_to_pro.sh
🚀 发布版本并部署
npm run release:dev # 发布开发版本并部署
npm run release:test # 发布测试版本并部署
npm run release:prod # 发布生产版本并部署