Explorar el Código

feat: add standard-version

Burt hace 1 año
padre
commit
05b4ca3272
Se han modificado 3 ficheros con 638 adiciones y 0 borrados
  1. 25 0
      .versionrc.js
  2. 2 0
      package.json
  3. 611 0
      pnpm-lock.yaml

+ 25 - 0
.versionrc.js

@@ -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 - 0
package.json

@@ -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": {
@@ -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",

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 611 - 0
pnpm-lock.yaml