npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

cz-custom-enhanced

v0.0.2

Published

自定义custom enhanced

Downloads

4

Readme

cz-custom-enhanced

cz-custom-enhanced是在customizable Commitizenplugin的基础上进行的二次开发,进一步提高了自定义的粒度 插件的宗旨是将团队的commit信息格式按照AngularJS team的风格进行规范化,且提供可视化操作界面。 与此同时,插件的最大亮点是可以自由定义各种不同类型的commit的提交规范,能给予团队在AngularJS team风格的基础上充分制定内部commit规范的空间。

下图是操作界面:

screenshot

Steps

  • 首选需要安装commitizen插件: npm install -g commitizen.

  • 然后再安装: npm install cz-custom-enhanced --save-dev

  • 最后通过配置让 commitizen 使用 cz-custom-enhanced 作为插件。 你需要在package.json中加入如下几行代码:

    "config": {
      "commitizen": {
        "path": "node_modules/cz-custom-enhanced"
      }
    }

Configure

  • cz-custom-enhanced 默认将会取寻找配置文件 .cz-config.js
  • 你也可以在 package.json 中配置你的配置文件和commitizen的路径:
    "config": {
      "commitizen": {
        "path": "node_modules/cz-custome-enhanced"
      },
      "cz-customizable": {
        "config": "config/path/to/my/config.js"
      }
    }

Note:

  • 配置 commitizen 的路径可以让你无需全局安装 commitizen.
  • 如果不想自己写配置, 可以直接使用 cz-config-EXAMPLE.js 作为你的的配置文件

Options

.cz-config.js:

  • entry: 入口参数,规定commit的类型并且可通过设置各种属性对不同类型commit的提交格式进行定制化
entry: {
  Fix: { // commit类型
    value: 'Fix',
    name: 'Fix:    修复Bug', // 标题
    scope: { // 副标题
      custom: true, // 是否
      message: '描述解决了什么问题,如果有Bug号的时候,带上Bug号'
    },
    subject: { // 内容头
      prefix: '原因: ',
      message: '描述引入这个问题的原因'
    },
    body: { // 主内容
      prefix: '方案: ',
      message: '简述解决方案'
    },
    footer: { // 内容位
      prefix: '影响范围: ',
      message: '描述代码影响范围(可选)'
    }
  }
  • messages: 定义更项信息
messages: {
  type: '请选择本次commit的类型:',
  confirmCommit: '您确认要提交以上的commit吗?'
}
  • allowCustomScopes: 允许使用自定义范围