Skip to content

Commit

Permalink
chore: configurando husky
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRogs committed Nov 18, 2024
1 parent 4d180cb commit 2e627f3
Show file tree
Hide file tree
Showing 5 changed files with 904 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
echo '\nChecando se a sua mensagem de commit segue o protocolo Conventional Commits... \n'

npx --no -- commitlint --edit ${1} ||
(echo "\n\nOpps! \n Você não está seguindo o protocolo Conventional Commits. Utilize um destes prefixos \n build: \n chore: \n ci: \n docs: \n feat: \n fix: \n perf: \n refactor: \n revert: \n style: \n test:" && exit 1)
2 changes: 2 additions & 0 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
echo '\n Tudo Completo! ✅ \n'
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
Loading

0 comments on commit 2e627f3

Please sign in to comment.