Skip to content

Commit

Permalink
feat: 增加提交工具
Browse files Browse the repository at this point in the history
  • Loading branch information
hesetiema committed Apr 18, 2024
1 parent 1c5edc9 commit de6416b
Show file tree
Hide file tree
Showing 4 changed files with 1,320 additions and 50 deletions.
4 changes: 4 additions & 0 deletions .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {}
}
27 changes: 26 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,26 @@
"build-only": "vite build",
"type-check": "vue-tsc --build --force",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/"
"format": "prettier --write src/",
"prepare": "husky install",
"lint-staged": "lint-staged",
"commit": "lint-staged && git-cz"
},
"lint-staged": {
"*.{js,jsx,ts,tsx,vue}": [
"eslint --fix"
],
"*.{js,jsx,vue,css,scss,less,md,json}": [
"prettier --write --ignore-unknown"
],
"*.ts?(x)": [
"prettier --parser=typescript --write"
]
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
Expand All @@ -19,6 +38,9 @@
"vue-router": "^4.2.5"
},
"devDependencies": {
"@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/cz-commitlint": "^19.2.0",
"@rushstack/eslint-patch": "^1.3.3",
"@tsconfig/node20": "^20.1.2",
"@types/node": "^20.11.10",
Expand All @@ -27,8 +49,11 @@
"@vue/eslint-config-prettier": "^8.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/tsconfig": "^0.5.1",
"commitizen": "^4.3.0",
"eslint": "^8.49.0",
"eslint-plugin-vue": "^9.17.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"npm-run-all2": "^6.1.1",
"prettier": "^3.0.3",
"typescript": "~5.3.0",
Expand Down
Loading

0 comments on commit de6416b

Please sign in to comment.