mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-05 06:12:44 +08:00
feat(release): 添加版本发布脚本和更新类型定义
- 新增`.versionrc`文件,定义版本发布时的类型和部分。- 在`package.json`中添加版本发布脚本,支持不同类型版本的发布工作流。 - 更新postinstall脚本,可能包含版本发布脚本的引用。
This commit is contained in:
parent
d734c0409f
commit
cf2caddefb
16
.versionrc
Normal file
16
.versionrc
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"types": [
|
||||
{"type": "chore", "section":"'🎫 Chores | 其他更新", "hidden": false},
|
||||
{"type": "revert", "section":"⏪ Reverts | 回退", "hidden": false},
|
||||
{"type": "feat", "section": "✨ Features | 新功能", "hidden": false},
|
||||
{"type": "fix", "section": "🐛 Bug Fixes | Bug 修复", "hidden": false},
|
||||
{"type": "improvement", "section": "Feature Improvements", "hidden": false},
|
||||
{"type": "docs", "section":"📝 Documentation | 文档", "hidden": false},
|
||||
{"type": "style", "section":"💄 Styles | 风格", "hidden": false},
|
||||
{"type": "refactor", "section":"💄 Refactor | 重构", "hidden": false},
|
||||
{"type": "perf", "section":"⚡ Performance Improvements | 性能优化", "hidden": false},
|
||||
{"type": "test", "section":"✅ Tests | 测试", "hidden": false},
|
||||
{"type": "build", "section":"👷 Build System | 构建", "hidden": false},
|
||||
{"type": "ci", "section":"🔧 Continuous Integration | CI 配置", "hidden":false}
|
||||
]
|
||||
}
|
10
package.json
10
package.json
@ -33,7 +33,14 @@
|
||||
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
|
||||
"lint:fix": "eslint . --fix",
|
||||
"git:hooks": "npx simple-git-hooks",
|
||||
"postinstall": "weapp-tw patch"
|
||||
"postinstall": "weapp-tw patch",
|
||||
"version:first": "commit-and-tag-version --first-release",
|
||||
"version:alpha": "commit-and-tag-version --prerelease alpha",
|
||||
"version:beta": "commit-and-tag-version --prerelease beta",
|
||||
"version:rc": "commit-and-tag-version --prerelease rc",
|
||||
"version:patch": "commit-and-tag-version --release-as patch",
|
||||
"version:minor": "commit-and-tag-version --release-as minor",
|
||||
"version:major": "commit-and-tag-version --release-as major"
|
||||
},
|
||||
"dependencies": {
|
||||
"@alova/adapter-uniapp": "^2.0.4",
|
||||
@ -73,6 +80,7 @@
|
||||
"@vitejs/plugin-vue": "^5.1.2",
|
||||
"@vue/runtime-core": "^3.4.38",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"commit-and-tag-version": "^12.4.1",
|
||||
"eslint": "^9.9.0",
|
||||
"eslint-plugin-format": "^0.1.2",
|
||||
"globals": "^15.9.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user