Skip to content

Commit

Permalink
fix(package.json): adding commitizen to write commits
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Tetsuo committed Jun 12, 2020
1 parent ef7987a commit aa06488
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 49 deletions.
1 change: 1 addition & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"hooks": {
"pre-commit": "lint-staged && yarn run build",
"commit-msg": "validate-commit-msg"
}
}
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
"master"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"scripts": {
"lint": "eslint .",
"prebuild": "rimraf dist",
Expand All @@ -34,7 +39,8 @@
"format": "yarn run prettier --write",
"check-format": "yarn run prettier --list-different",
"validate": "npm-run-all --parallel check-format test build",
"semantic-release": "semantic-release"
"semantic-release": "semantic-release",
"commit": "npx git-cz"
},
"dependencies": {
"jest": "^26.0.1",
Expand All @@ -44,6 +50,8 @@
"@babel/core": "^7.10.2",
"@babel/preset-env": "^7.10.2",
"babel-loader": "^8.1.0",
"commitizen": "^4.1.2",
"cz-conventional-changelog": "^3.2.0",
"eslint": "^7.2.0",
"eslint-config-prettier": "^6.11.0",
"husky": "^4.2.5",
Expand All @@ -52,6 +60,7 @@
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"semantic-release": "^17.0.8",
"validate-commit-msg": "^2.14.0",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
}
Expand Down

0 comments on commit aa06488

Please sign in to comment.