Skip to content

Commit

Permalink
chore: config husky
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcaiana committed Aug 13, 2022
1 parent f2d5115 commit 271f4ac
Show file tree
Hide file tree
Showing 4 changed files with 1,125 additions and 39 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"

yarn commitlint --edit $1
1 change: 1 addition & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview"
"preview": "nuxt preview",
"prepare": "husky install"
},
"devDependencies": {
"nuxt": "3.0.0-rc.8"
"nuxt": "3.0.0-rc.8",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"cz-conventional-changelog": "3.3.0",
"husky": "^8.0.1"
}
}
Loading

0 comments on commit 271f4ac

Please sign in to comment.