Skip to content

Commit

Permalink
feat(custom): 新增commitizen
Browse files Browse the repository at this point in the history
  • Loading branch information
shinetingli committed Feb 16, 2023
1 parent 4a5f2e7 commit 0feb19b
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .cz-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
types: [
{
value: `feat`,
name : 'feat: 新功能'
},
{
value: `fix`,
name : 'fix: 修复bug'
},
{
value: `docs`,
name : 'docs: 文档注释更改'
},
{
value: `refactor`,
name : 'refactor: 重构(不修复bug和新增功能)'
},
{
value: `style`,
name : 'style: 修改样式问题,不影响功能'
},
{
value: `perf`,
name : 'perf: 性能优化'
},
{
value: `test`,
name : 'test: 增加测试用例或修正测试用例'
},
{
value: `revert`,
name : 'revert: 回退版本'
}
],
skipQuestions: ['body', 'scopes', 'breaking', 'footer']
};
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-draggable-tree-next",
"version": "1.0.6",
"version": "1.0.7",
"description": "The json tree built based on vue3 supports node dragging, adding, editing and deleting, etc.",
"author": {
"name": "TingShine",
Expand Down Expand Up @@ -40,7 +40,8 @@
"test:unit": "vitest --environment jsdom --root src/",
"build-only": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"commit": "git-cz"
},
"dependencies": {
"tdesign-icons-vue-next": "^0.1.7",
Expand All @@ -49,7 +50,6 @@
"vuedraggable": "^4.1.0"
},
"devDependencies": {
"rollup-plugin-commonjs": "^10.1.0",
"@rushstack/eslint-patch": "^1.1.4",
"@types/jsdom": "^20.0.1",
"@types/node": "^18.11.12",
Expand All @@ -60,12 +60,15 @@
"@vue/test-utils": "^2.2.6",
"@vue/tsconfig": "^0.1.3",
"autoprefixer": "^10.4.13",
"commitizen": "^4.3.0",
"cz-customizable": "^7.0.0",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",
"jsdom": "^20.0.3",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.21",
"prettier": "^2.7.1",
"rollup-plugin-commonjs": "^10.1.0",
"tailwindcss": "^3.2.4",
"typescript": "~4.7.4",
"vite": "^4.0.0",
Expand All @@ -78,5 +81,9 @@
"tdesign-vue-next": "^1.0.4",
"vue": "^3.2.45",
"tdesign-icons-vue-next": "^0.1.7"
} ,"config": {
"commitizen": {
"path": "node_modules/cz-customizable"
}
}
}

0 comments on commit 0feb19b

Please sign in to comment.