koyoshiro / Mantis

Msg formatting tool for git-commit based on Commitizen. And you could check your committing files when pre-commit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

Msg formatting tool for git-commit based on Commitizen.

And you could check your committing files when pre-commit.

Installation

  1. edit package.json.

Add content to the relevant location of the file,not replace package.json

"mantisConfig": { // if you want to use eslint/tslint
    "staticLintCMD": "<tslint ./eslint .>" // lint command,if you want to use
  }
  1. install or update
npm install
  1. if you want to use lint-staged create file.lintstagedrc.jsonin ./ and add it.
{
    "src/*.js": [
        "prettier --write", // if use prettier
        "commitmsg",
        "git add"
        // able to add some commands,like jest
        ]
}

Usage

use mantis replace git commit

img

Todo List

pre-commit check

  • husky
  • commit-lint
  • lint-stage
  • prettier
  • TSLint/ESLint
  • valid input

multi-language

  • Chinese Language Config
  • English Language Config

执行install时,会安装commit-msg勾子,用于强制检测commit message,并推荐mantis,其他的勾子会在执行mantis执行

About

Msg formatting tool for git-commit based on Commitizen. And you could check your committing files when pre-commit.


Languages

Language:JavaScript 100.0%