1.1.0 ā¢ Published 2 years ago
@arnat/cz v1.1.0
Arnat CZ Adapter for Commitizen
:sparkles: A adapter with strong standards Tech industries.
? Selecciona el tipo de cambio que estas enviando: (Use arrow keys)
āÆ āØ Feat: A new feature
š Fix: A bugfix
š Docs: Documentation updates
šØ Style: No side effects on code
šØ Refactor: Code change
š Perf: Improve performance
šØ Test: Add or update unit tests
š· Chore: Build changes on tools
Instalation
yarn global add @arnat/cz
# or
npm install --global @arnat/cz
establecer como adaptador predeterminado globalmente
echo '{ "path": "arnat-cz" }' > ~/.czrc
Development
run npm run reload
and invoke it with git cz
Uninstall it after testing: npm uninstall -g @arnat/cz
Use
Run git cz
instead git commit
View Commitizen for more information.
Configuration
Configs are applied in the following order:
package.json
.cz.json
.czrc
// in package.json
"config": {
"commitizen": {
// ...
"arnat-cz": {
// Overwrite types prompted to the command line.
"types": {
"Fix": {
"emoji": "š", // overwrite "Fix" emoji to a bee
"name": "Bug", // overwrite "Fix" name to "Bug"
"description": "Dirty bug" // overwrite description of "Fix"
},
// add a new type "Chore"
"Chore": {
"emoji": "ā",
"description": "Other changes that don't modify src or test files"
}
},
// Overwrite the output commit subject in the specified format.
// Below is the default format,
// [emoji] will be replace with the chose type's emoji,
// [name] will be replace with the chose type's name,
// [subject] will be replace with the subject you entered.
// One example output of the format can be: `āØ Feat: initial commit`
"format": "[emoji] [name]: [subject]"
}
}
}
// in .cz.json or .czrc
{
"arnat-cz": {
//...
}
}
Author
Arnat Technologies info@arnat.digital