0.0.1 ā€¢ Published 6 years ago

@beisen/bsapp-cz-emoji v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

cz-emoji

Commitizen adapter formatting commit messages using emojis.

cz-emoji allows you to easily use emojis in your commits using commitizen.

? Select the type of change you are committing: (Use arrow keys)
āÆ feature   šŸŒŸ  A new feature
  fix       šŸž  A bug fix
  docs      šŸ“š  Documentation change
  refactor  šŸŽØ  A code refactoring change
  chore     šŸ”©  A chore change

Install

npm install --global cz-emoji

# set as default adapter for your projects
echo '{ "path": "cz-emoji" }' > ~/.czrc

Usage

$ git cz

Customize

By default cz-emoji comes preconfigured with the Gitmoji types.

But you can customize things on a project basis by adding a configuration section in your package.json:

{
  "config": {
    "cz-emoji": {}
  }
}

Types

An Inquirer.js choices array:

{
  "config": {
    "cz-emoji": {
      "types": [
        {
          "emoji": "šŸŒŸ",
          "code": ":star2:",
          "description": "A new feature",
          "name": "feature"
        }
      ]
    }
  }
}

The value property must be the emoji itself.

Scopes

An Inquirer.js choices array:

{
  "config": {
    "cz-emoji": {
      "scopes": [
        "home",
        "accounts",
        "ci"
      ]
    }
  }
}

Examples

License

MIT Ā© Nicolas Gryman