nice-commit

0.0.8 • Public • Published

nice-commit

自动创建 Git Commit Hook 进行规范检测,主要检测以下内容:

  • .js / .vue 文件符合 ESLint YYUED 规范
  • commit message 符合 Angular 规范

使用

1. 在项目中执行安装

$ npm i nice-commit --save-dev
 
# or 
 
$ yarn add nice-commit --dev

2. 创建配置文件

$ npx nice-commit
 
# or 
 
$ yarn exec nice-commit

项目中创建配置文件如下

  • .editorconfig
  • .eslintrc.js
  • .eslintignore
  • .huskyrc
  • .commitlintrc.js

注意:安装模块需要项目存在 package.json

Readme

Keywords

none

Package Sidebar

Install

npm i nice-commit

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

10 kB

Total Files

7

Last publish

Collaborators

  • yyued