1.4.6 • Published 9 days ago

@denaro-config/config-cz-git v1.4.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 days ago

@denaro-config/config-cz-git

:tada: 前端工程化中的 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

1.4.6

9 days ago

1.4.5

15 days ago

1.4.4

16 days ago

1.4.3

23 days ago

1.4.2

2 months ago

1.4.1

4 months ago

1.4.0

4 months ago

1.3.2

5 months ago

1.3.1

5 months ago

1.2.4

5 months ago

1.3.0

5 months ago

1.2.3

5 months ago

1.2.0

5 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.0

6 months ago