@denaro-config/config-cz-git

1.4.6 • Public • Published

@denaro-config/config-cz-git

🎉 前端工程化中的 cz-git 通用配置, 与 Commitlint 配合, 获取 Commitlint 相关配置, 给予命令行提示信息。

npm (scoped) NPM

GitHub repo size GitHub Repo stars GitHub issues GitHub top language

npm jsDelivr hits (npm scoped)

参考官网地址

安装至您的项目

npm install -D @denaro-config/config-cz-git
# or
pnpm install -D @denaro-config/config-cz-git
# or
yarn add -D @denaro-config/config-cz-git

使用

在项目根目录下创建 cz.config.js 文件, 参考配置内容如下:

module.exports = {
  ...require('@denaro-config/config-cz-git')
}

配置 cz-git

package.json 中配置, 后续进行提交代码时需要执行 npm run commit 命令

{
  "scripts": {
    "commit": "git add .&& cz"
  },
  "config": {
    "commitizen": {
      "path": "cz-git"
    }
  }
}

结合 commitlint 使用

参考 commitlint

Package Sidebar

Install

npm i @denaro-config/config-cz-git

Weekly Downloads

71

Version

1.4.6

License

MIT

Unpacked Size

7.05 kB

Total Files

5

Last publish

Collaborators

  • vxhly