git-flow-emoji

2.0.3 • Public • Published

Git-Flow-Emoji

😃 Just use emoji to commit your message and generate CHANGELOG!

💎 Usage

Install

# install it globally
npm i git-flow-emoji -g
# in your project
git-flow init

Commit

git add .
npm run commit

commit

Release

npm version <version>

🔨 Config

You can configure your commit types in .cz-config.js file.

module.exports = {
  // ...
  types: [
    {
      value: ':sparkles: feat',
      name: '✨ A new feature',
    },
  ]
};

Change the commit message when release.

# .npmrc
tag-version-prefix="v"
message=":bookmark: release: release %s"

More details you can find in this repo: https://github.com/conventional-changelog/conventional-changelog

Recommend

There are some recommended types to be used:

Feature

When you develop a new feature of project, you better to commit you messages like this:

# first commit.
# it will be write into CHANGELOG because of type ✨`:sparkles: feat`.
:sparkles: feat: add new feature
# other commits about this feature.
# they will not to be write into CHANGELOG because of type `:construction: WIP`.
:construction: WIP: optimize this feature
:construction: WIP: fix some bugs about this feature

BUGS

# it will be write into CHANGELOG because of type 🐛`:bug: fix` or 🚑`:ambulance: hotfix`.
:bug: fix: fix some bugs
:ambulance: hotfix: emergency fix

UI

# it will be write into CHANGELOG because of type 💄`:lipstick: style`.
:lipstick: style: change style

Refactor

# it will be write into CHANGELOG because of type 🔨`:hammer: refactor style`.
:hammer: refactor: rewrite the code

Others

You can see the descriptions of types to decide which type to be used.

📝 Others

If you see some garbled chart instead of emoji when you run npm run commit, you could install Windows Terminal in Microsoft store to fix it.

Just enjoy it!

/git-flow-emoji/

    Package Sidebar

    Install

    npm i git-flow-emoji

    Weekly Downloads

    1

    Version

    2.0.3

    License

    ISC

    Unpacked Size

    14.8 kB

    Total Files

    17

    Last publish

    Collaborators

    • windlike