Skip to content

Commit

Permalink
chore(release): setup conventional commits, commitlint, commitizen an…
Browse files Browse the repository at this point in the history
…d release-it
  • Loading branch information
100terres committed Sep 2, 2022
1 parent d0573d9 commit c38af14
Show file tree
Hide file tree
Showing 7 changed files with 12,831 additions and 2,812 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "@commitlint/cz-commitlint"
}
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"

npm run commitlint -- --edit $1
82 changes: 82 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"git": {
"commitMessage": "chore: release ${version}",
"tagName": "v${version}"
},
"npm": {
"publish": true
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"infile": "CHANGELOG.md",
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "chore",
"section": "Others 🔧",
"hidden": false
},
{
"type": "revert",
"section": "Reverts ◀",
"hidden": false
},
{
"type": "feat",
"section": "Features 🔥",
"hidden": false
},
{
"type": "fix",
"section": "Bug Fixes 🛠",
"hidden": false
},
{
"type": "improvement",
"section": "Feature Improvements 🛠",
"hidden": false
},
{
"type": "docs",
"section": "Docs 📃",
"hidden": false
},
{
"type": "style",
"section": "Styling 🎨",
"hidden": false
},
{
"type": "refactor",
"section": "Code Refactoring 🖌",
"hidden": false
},
{
"type": "perf",
"section": "Performance Improvements 🏎",
"hidden": false
},
{
"type": "test",
"section": "Tests 🧪",
"hidden": false
},
{
"type": "build",
"section": "Build System 🏗",
"hidden": false
},
{
"type": "ci",
"section": "CI 🛠",
"hidden": false
}
]
}
}
}
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
<a href="CONTRIBUTING.md">
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs welcome!" />
</a>

<a href="http://commitizen.github.io/cz-cli/">
<img src="https://img.shields.io/badge/commitizen-friendly-blue.svg" alt="Commitizen friendly" />
</a>
</p>

## A bit of context
Expand Down
Loading

0 comments on commit c38af14

Please sign in to comment.