Skip to content

Commit

Permalink
feat: add standard-version
Browse files Browse the repository at this point in the history
  • Loading branch information
Burt committed Jan 8, 2025
1 parent e9af1a5 commit 05b4ca3
Show file tree
Hide file tree
Showing 3 changed files with 638 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .versionrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
header: '变更日志', // 可自定义添加生成的changelog头部内容
types: [
{ type: 'feat', section: '✨ Features | 新功能' },
{ type: 'fix', section: '🐛 Bug Fixes | Bug 修复' },
{ type: 'init', section: '🎉 Init | 初始化' },
{ type: 'docs', section: '✏️ Documentation | 文档' },
{ type: 'style', section: '💄 Styles | 风格' },
{ type: 'refactor', section: '♻️ Code Refactoring | 代码重构' },
{ type: 'perf', section: '⚡ Performance Improvements | 性能优化' },
{ type: 'test', section: '✅ Tests | 测试' },
{ type: 'revert', section: '⏪ Revert | 回退' },
{ type: 'build', section: '📦 Build System | 打包构建' },
{ type: 'update', section: '🚀 update | 构建/工程依赖/工具升级' },
{ type: 'tool', section: '🚀 tool | 工具升级' },
{ type: 'ci', section: '👷 Continuous Integration | CI 配置' },
],
// 跳过相关内容
skip: {
bump: false, // 是否跳过更改版本
changelog: false, // 是否跳过生产changelog
commit: false, // 是否跳过自动commit
tag: false, // 是否跳过打tag
},
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
"prepare": "git init && husky install ",
"type-check": "vue-tsc --noEmit",
"release": "standard-version",
"cz": "czg"
},
"lint-staged": {
Expand Down Expand Up @@ -154,6 +155,7 @@
"postcss-scss": "^4.0.9",
"rollup-plugin-visualizer": "^5.12.0",
"sass": "1.77.8",
"standard-version": "^9.5.0",
"stylelint": "^16.11.0",
"stylelint-config-html": "^1.1.0",
"stylelint-config-recess-order": "^4.6.0",
Expand Down
Loading

0 comments on commit 05b4ca3

Please sign in to comment.