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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@fieldtech/simple-conventional-changelog

v1.1.5

Published

Simple Commitizen adapter following the conventional-changelog format.

Downloads

24

Readme

simple-conventional-changelog

license Conventional Commits npm version npm downloads Build Status

作为 X-Developer 生产力工具家族成员,Simple Conventional Changelog 简化了 commitizen 的提交步骤,并提供了中文支持。

基于 conventional changelog 但实现了更简单的注释风格,仅需一行,如下所示:

#123 feat 中文交互式支持

此适配器生成的 Git 注释完整兼容 X-DeveloperGit 仓库的数据分析。

安装

commitizen 提供了交互式命令行,来生成格式化的 Git 注释,运行以下命令进行安装。

$ npm install -g commitizen

配置

生成配置

进入您的 Git仓库 目录,非 node.js 项目,需运行以下命令创建 package.json 文件。

$ npm init --yes

随后运行以下命令即启用 simple-conventional-changelog 风格的提交规范。

$ commitizen init @fieldtech/simple-conventional-changelog --save --save-exact

检查 package.json 可看到下面的生成项。

{
    "config": {
        "commitizen": {
            "path": "./node_modules/@fieldtech/simple-conventional-changelog"
        }
    }
}

个性化配置

此为可选项,可以通过更改以下的 key 值进行个性化配置。

  • maxHeaderWidth:注释行的最大长度
  • defaultType:默认的提交类型
  • defaultSubject:默认注释
  • defaultIssues:默认任务编号
{
// ...  默认参数值
    "config": {
        "commitizen": {      
            "path": "./node_modules/@fieldtech/simple-conventional-changelog",
            "maxHeaderWidth": 100,
            "defaultType": "",     
            "defaultSubject": "",
            "defaultIssues": ""
        }
    }
// ...    
}

提交代码

使用 git cz 而非 git commit 来提交变更。随后您将看到交互式操作界面,根据提示即可完成规范的注释提交。

$ git cz

参考