Skip to content

Commit

Permalink
chore: add conventional commits hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
sledorze committed Apr 7, 2021
1 parent 79be4c9 commit f33fdf2
Show file tree
Hide file tree
Showing 7 changed files with 1,653 additions and 1,168 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ dev
coverage
__tests__
.ultra.cache.json
!.husky
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
> - [Experimental]
> - [Deprecation]
This changelog is no more useful
Each package has now an automated changelog from lerna's conventional commit support

## 3.0.0

- **New Feature**
Expand Down
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional', '@commitlint/config-lerna-scopes']
}
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@
"version:minor": "lerna version preminor --conventional-commits",
"version:prepatch": "lerna version prepatch --conventional-commits",
"version:patch": "lerna version patch --conventional-commits",
"version:graduate": "lerna version --conventional-commits --conventional-graduate"
"version:graduate": "lerna version --conventional-commits --conventional-graduate",
"postinstall": "husky install"
},
"devDependencies": {
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@commitlint/config-lerna-scopes": "^12.1.1",
"@types/chai": "4.2.11",
"@types/jest": "^26.0.19",
"@types/node": "^14.14.37",
"@typescript-eslint/eslint-plugin": "^4.10.0",
"@typescript-eslint/parser": "^4.10.0",
"chai": "^4.2.0",
"cz-conventional-changelog": "^3.3.0",
"docs-ts": "^0.2.1",
"dtslint": "github:gcanti/dtslint",
"eslint": "^7.23.0",
Expand All @@ -41,6 +46,7 @@
"fast-equals": "^2.0.0",
"fp-ts": "^2.4.1",
"fp-ts-contrib": "^0.1.15",
"husky": "^6.0.0",
"import-path-rewrite": "github:mikearnaldi/import-path-rewrite",
"io-ts": "^2.1.3",
"io-ts-types": "^0.5.6",
Expand All @@ -65,5 +71,10 @@
"pre-commit": "./ensure-deduplicate.sh",
"pre-push": "./pre-push.sh"
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
2,796 changes: 1,629 additions & 1,167 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit f33fdf2

Please sign in to comment.