Skip to content

Commit

Permalink
ci: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanobartoletti committed Nov 9, 2023
1 parent cc5e601 commit fe4a8c1
Show file tree
Hide file tree
Showing 4 changed files with 550 additions and 24 deletions.
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"

npm run commitlint ${1}
5 changes: 5 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
extends: [
'@commitlint/config-conventional'
]
};
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@
"release": "release-it",
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest watch"
"test:watch": "vitest watch",
"commitlint": "commitlint --edit",
"prepare": "husky install"
},
"dependencies": {
"@iconify/vue": "^4.1.1",
"@nuxt/kit": "^3.8.1",
"defu": "^6.1.3"
},
"devDependencies": {
"@commitlint/cli": "^18.2.0",
"@commitlint/config-conventional": "^18.1.0",
"@nuxt/devtools": "latest",
"@nuxt/eslint-config": "^0.2.0",
"@nuxt/module-builder": "^0.5.3",
Expand All @@ -46,6 +50,7 @@
"@types/node": "^20.8.10",
"changelogen": "^0.5.5",
"eslint": "^8.53.0",
"husky": "^8.0.3",
"nuxt": "^3.8.1",
"release-it": "^16.2.1",
"sass": "^1.69.5",
Expand Down
Loading

0 comments on commit fe4a8c1

Please sign in to comment.