Skip to content

Commit

Permalink
feat: 添加committizen格式化commit信息
Browse files Browse the repository at this point in the history
添加committizen格式化commit信息
  • Loading branch information
willson-wang committed Jan 16, 2020
1 parent 3988926 commit 13a0036
Show file tree
Hide file tree
Showing 2 changed files with 266 additions and 15 deletions.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"css:fix": "stylelint src/**/*.css src/**/*.less --fix",
"lint": "eslint --ext .jsx,.js,.tsx,.ts src/",
"lint:fix": "eslint --ext .jsx,.js,.tsx,.ts src/ --fix",
"prettier": "prettier --write 'src/**/*.{js,ts,jsx,tsx}'"
"prettier": "prettier --write 'src/**/*.{js,ts,jsx,tsx}'",
"commit": "git-cz"
},
"husky": {
"hooks": {
Expand All @@ -29,6 +30,11 @@
"stylelint --fix"
]
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-proposal-class-properties": "^7.7.4",
Expand All @@ -49,10 +55,12 @@
"babel-loader": "^8.0.6",
"cache-loader": "^4.1.0",
"circular-dependency-plugin": "^5.2.0",
"commitizen": "^4.0.3",
"compression-webpack-plugin": "^3.0.1",
"cross-env": "^6.0.3",
"css-loader": "^3.4.0",
"cssnano": "^4.1.10",
"cz-conventional-changelog": "^3.0.2",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.7.0",
"eslint-config-standard": "^14.1.0",
Expand Down
Loading

0 comments on commit 13a0036

Please sign in to comment.