- package.json: testando validador husky (c5ec777)
$ npm install -g conventional-changelog-cli
$ cd my-project
$ conventional-changelog -p angular -i CHANGELOG.md -s
Editar o package.json:
{
"scripts": {
"commitmsg": "validate-commit-msg"
}
}
na raiz do package.json colocar o conteúdo:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn add --dev husky validate-commit-msg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# é necessário que no projeto tenha um package.json definido | |
#para instalar o dialogo use o commitizen init assim: | |
#aplicando no projeto usando diálogo do jira | |
commitizen init cz-jira-smart-commit | |
#ou | |
#aplicando no projeto usando diálogo do taiga |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Interfaces } from 'js-data-dao' | |
import { ISubSystem } from '../interfaces' | |
/** | |
* Interface para sistema com as descrições de seus atributos | |
* | |
* @export | |
* @interface ISystem | |
* @extends {Interfaces.IBaseModel} | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#iniciando e desenvolvendo o hotfix | |
git checkout -b hotfix/some-fix | |
git commit -a -m 'corrigindo erro quente' | |
#finalizando o fix e mandando para o estável | |
git checkout master | |
git merge --no-ff hotfix/some-fix | |
#tageando a versão hotfix para envio | |
git tag -a -m 'correcao de emergencia' v1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#iniciando e desenvolvendo a feature | |
#nessa parte podemos começar a desenvolver e posteriormente criar a feature | |
git checkout -b feature/a | |
git commit -a -m 'adicionando feature' | |
#finalizando a feature | |
git checkout develop | |
git merge --no-ff feature/a | |
#terminando a branch temporária | |
git branch -D feature/a | |
#enviando atualização |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout -b feature_a | |
git commit -a -m 'realizando feature a' | |
git checkout master | |
git merge feature_a |