Skip to content

polarove/cz-translated-changelog-en-us

Repository files navigation

cz-translated-changelog-en-us

Tip

cz-conventional-changelog with two more features

npm versionnpm downloadsLicense

standards

  • referred to: conventional commits

  • uses ! to mark BREAKING CHANGES

  • types and options are forked from cz-conventional-changelog

Demostrate

演示

New features

🚀 a prompt window that allows you to check your message in summary

新功能

✨ adds ! to your messages automatically and mark it as BREAKING CHANGES

新功能

Get started

Note

Before you start, please confirm that you have installed commitizen

install it as a devDependency for you projects

npm i @cz-translated-changelog/en-us -D

Copy the json below into your package.json

{
  "config": {
    "commitizen": {
      "showConfirmPrompt": true,
      "path": "node_modules/@cz-translated-changelog/en-us"
    }
  }
}

or use it as a global package

commitizen init @cz-translated-changelog/en-us --save-dev --save-exact

Copy the json below into your package.json

{
  "config": {
    "commitizen": {
      "showConfirmPrompt": true,
      "path": "@cz-translated-changelog/en-us"
    }
  }
}

set "config.commitizen.showConfirmPrompt": false in your package.json to disable this feature.

ENV_VARIABLES

these environment variables are used to override configs,including config insde your package.json.

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

Commitlint

If using the commitlint js library, the "maxHeaderWidth" configuration property will default to the configuration of the "header-max-length" rule instead of the hard coded value of 100. This can be ovewritten by setting the 'maxHeaderWidth' configuration in package.json or the CZ_MAX_HEADER_WIDTH environment variable.

License

MIT License