1.0.6 • Published 4 years ago

cz-conventional-commit v1.0.6

Weekly downloads
17
License
MIT
Repository
github
Last release
4 years ago

cz-conventional-commit

Status: npm version npm downloads Build Status

Part of the commitizen family. Prompts for conventional changelog standard.

How to use

Adaptater for commitizen

To use this package, you need to add this following to your package.json root file :

"config": {
    "commitizen": {
      "path": "cz-conventional-commit"
    },
}

What's change ?

Four types of commit are now available (with emojis ):

  • fix
  • feat
  • style
  • refactor

Commitizen Interface

There are now just three steps : type, scope and short description. Example of a commit ruled by this package :

Commitizen Steps

Configuration

package.json

Like commitizen, you specify the configuration of cz-conventional-changelog through the package.json's config.commitizen key.

{
// ...  default values
    "config": {
        "commitizen": {      
            "path": "cz-conventional-commit",
            "maxHeaderWidth": 100,
            "maxLineWidth": 100,
            "defaultType": "",
            "defaultScope": "",        
            "defaultSubject": ""
        }
    }
// ...    
}

Environment variables

The following environment varibles can be used to override any default configuration or package.json based configuration.

  • CZ_TYPE = defaultType
  • CZ_SCOPE = defaultScope
  • CZ_SUBJECT = defaultSubject
  • CZ_MAX_HEADER_WIDTH = maxHeaderWidth
  • CZ_MAX_LINE_WIDTH = maxLineWidth