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

limbo-conventional-changelog

v0.1.5

Published

Commitizen adapter following the conventional-changelog format.

Downloads

7

Readme

limbo-conventional-changelog

Greenkeeper badge

Status: npm version npm downloads Build Status

基于cz-conventional-changelog的基础修改的中文版,并扩展了一些日常工作中需要用到的提交类型

Part of the commitizen family. Prompts for conventional changelog standard.

Configuration

package.json

与 commitizen 一样,您可以通过 package.jsonconfig.commitizen关键字来配置limbo-conventional-changelog

{
// ...  default values
    "scripts":{
      ...
      "commit": "git-cz"
    },
    "config": {
        "commitizen": {
            "path": "limbo-conventional-changelog", // 如有问题可以设置此路径:./node_modules/limbo-conventional-changelog
            "skipQuestions": [],
            "types": {
                "feat": { "description": "新功能、新特性", "title": "Features" },
                "fix": { "description": "修改 bug", "title": "Bug Fixes" },
                "docs": { "description": "文档修改", "title": "Documentation" },
                "style": { "description": "代码格式修改, 注意不是 css 修改(例如分号修改)", "title": "Styles" },
                "refactor": { "description": "代码重构(重构,在不影响代码内部行为、功能下的代码修改)", "title": "Code Refactoring" },
                "perf": { "description": "性能优化(更改代码,以提高性能)", "title": "Performance Improvements" },
                "test": { "description": "测试用例新增、修改", "title": "Tests" },
                "build": { "description": "影响项目构建或依赖项修改(示例范围:gulp、broccoli、npm)", "title": "Builds" },
                "ci": { "description": "持续集成相关文件修改(示例范围:Travis, Circle, BrowserStack, SauceLabs)", "title": "Continuous Integrations" },
                "revert": { "description": "回退到某次历史提交", "title": "Reverts" },
                "conflict": { "description": "修改冲突", "title": "Conflict" },
                "font": { "description": "字体文件更新", "title": "Fonts" },
                "delete": { "description": "删除文件", "title": "Delete Files" },
                "stash": { "description": "暂存文件", "title": "Stash Files" },
                "chore": { "description": "其他修改,日常事务(例如将表格中的查看详情改为详情)", "title": "Chores" }
            },
            "defaultValue": {
                "type": "",
                "scope": "",
                "subject": "",
                "body": "",
                "isIssueAffected": "",
                "issues": ""
            },
            "messages": {
                "type": "选择您要提交的更改类型:",
                "scope": "影响的范围(例如组件, 文件名, route, component, utils, build等):(按回车键跳过)",
                "subjectPrefix": "写一个简短的修改描述 (最多 ",
                "subjectSuffix": " 个字符):\n",
                "subjectNone": "缺少修改描述",
                "subjectBeyond": "描述内容的长度必须小于或等于 ",
                "subjectScope": " 个字符. 当前长度为 ",
                "subjectUnit": " 个字符.",
                "body": "可以提供一个更长的修改描述:(按enter键跳过)\n",
                "isBreaking": "有什么重大的变化吗?",
                "breakingBody": "一个重大的变化提交需要一个说明。请输入需要提交的说明:\n",
                "breakingBodyNone": "主要的变化描述是必须的",
                "breaking": "请描述重大的变化内容:\n",
                "isIssueAffected": "这个变化会影响任何开放的issues吗?",
                "issuesBody": "如果issues已关闭,则提交需要一个说明。请输入需要提交的说明:\n",
                "issues": "添加一个已经存在的issues (e.g. \"fix #123\", \"re #123\".):\n"
            },
            "disableScopeLowerCase": false,
            "disableSubjectLowerCase": false,
            "maxHeaderWidth": 100,
            "maxLineWidth": 100
        }
    }
// ...
}

Commitlint

如果使用commitlint js 库, “maxHeaderWidth”配置属性将默认为“header-max-length”规则的配置,而不是硬编码的值 100。这可以通过在package.json中设置“maxHeaderWidth”配置来完成环境变量。

Types

扩展了新的提示类型,通过 package.jsonconfig.commitizen关键字来配置的类型会和原有内置的类型合并

{
  "feat": { "description": "新功能、新特性", "title": "Features" },
  "fix": { "description": "修改 bug", "title": "Bug Fixes" },
  "docs": { "description": "文档修改", "title": "Documentation" },
  "style": { "description": "代码格式修改, 注意不是 css 修改(例如分号修改)", "title": "Styles" },
  "refactor": { "description": "代码重构(重构,在不影响代码内部行为、功能下的代码修改)", "title": "Code Refactoring" },
  "perf": { "description": "性能优化(更改代码,以提高性能)", "title": "Performance Improvements" },
  "test": { "description": "测试用例新增、修改", "title": "Tests" },
  "build": { "description": "影响项目构建或依赖项修改(示例范围:gulp、broccoli、npm)", "title": "Builds" },
  "ci": { "description": "持续集成相关文件修改(示例范围:Travis, Circle, BrowserStack, SauceLabs)", "title": "Continuous Integrations" },
  "revert": { "description": "回退到某次历史提交", "title": "Reverts" },
  "conflict": { "description": "修改冲突", "title": "Conflict" },
  "font": { "description": "字体文件更新", "title": "Fonts" },
  "delete": { "description": "删除文件", "title": "Delete Files" },
  "stash": { "description": "暂存文件", "title": "Stash Files" },
  "chore": { "description": "其他修改,日常事务(例如将表格中的查看详情改为详情)", "title": "Chores" }
}