Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/glauberf/teste-padrao-commit


https://github.com/glauberf/teste-padrao-commit

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# teste-padrao-commit

Passos Instalação
- npm i commitizen https://github.com/GlauberF/cz-conventional-changelog-for-jira-a --save-dev
- npm i simple-git-hooks --save-dev
- npm i prettier --save-dev
- npm i lint-staged --save-dev
- Criar um arquivo `czrc` e incluir o path e configs necessárias.
```bash
{
"path": "./node_modules/@glauberfunez/cz-conventional-changelog-for-jira"
}
```
- Configurando simple-git-hooks
```json
//package-json
"simple-git-hooks": {
"pre-commit": "lint-staged && git add .",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
"commit-msg": "",
"pre-push": ""
},
```
- Na raiz do projeto
```bash
# [Optional] These 2 steps can be skipped for non-husky users
git config core.hooksPath .git/hooks/
rm -rf .git/hooks

# Update ./git/hooks
npx simple-git-hooks
```
Sempre que atualizar o simple-git-hooks no package, executar o comando `npx simple-git-hooks`.