0.0.3 โ€ข Published 5 months ago

gitmoji-autotag v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

gitmoji-autotag

Script for adding emoji before the commit message based on conventional commit types.

Installation

npm i -D gitmoji-autotag
# or
yarn add -D gitmoji-autotag

Usage

  1. Install husky
  2. Create a commit-msg in .husky
  3. Added script npx gitmoji-autotag $1
  4. Write your commit message: When you write your commit message, use the conventional commit types (e.g., feat, fix, chore, etc.) followed by a colon and the message. For example:
     feat: add new feature => ๐Ÿš€ feat: add new feature
     fix: resolve bug => ๐Ÿ› fix: resolve bug
     chore: update dependencies => ๐Ÿ”ง chore: update dependencies

Configuration

You can customize the emoji configuration by creating a configuration file in your project root. The configuration file can be named gitmoji-autotag.json, .gitmoji-autotagr.json, .gitmoji-autotagr.js, .gitmoji-autotagr.cjs, .gitmoji-autotagr.mjs, or gitmoji-autotag.config.js.

Example configuration file (gitmoji-autotag.config.js):

module.exports = {
  feat: "๐Ÿš€",
  fix: "๐Ÿ›",
  chore: "๐Ÿ”ง",
  docs: "๐Ÿ“",
  style: "๐ŸŽจ",
  refactor: "โ™ป๏ธ",
  test: "๐Ÿงช",
  perf: "โšก",
  ci: "๐Ÿค–",
  build: "๐Ÿ—",
  revert: "๐Ÿ”™",
  // You can add custom fields
  custom: "๐Ÿ™Œ"
};
0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago