Skip to content

Commit

Permalink
chore(setup): add husky and commit hooks for conventional commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-Skinner committed Oct 19, 2022
1 parent 921bf9d commit d51409e
Show file tree
Hide file tree
Showing 4 changed files with 981 additions and 593 deletions.
5 changes: 5 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
]
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "${1}"
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
],
"scripts": {
"bootstrap": "lerna bootstrap",
"prepare": "husky install",
"setup": "yarn install && yarn bootstrap"
},
"devDependencies": {
"@nrwl/nx-cloud": "^14.7.0",
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"husky": "^8.0.1",
"lerna": "^5.6.2",
"nx": "^15.0.0",
"semver": "^7.3.8"
Expand Down
Loading

0 comments on commit d51409e

Please sign in to comment.