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

@pch1024/commit-cz

v0.0.5

Published

基于 @commitlint/config-conventional 扩展的汉化版

Downloads

9

Readme

@pch1024/commit-cz

// 基于 @commitlint/config-conventional 扩展的汉化版
// 原版:https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/index.js
// 约定式提交:https://www.conventionalcommits.org/zh-hans/v1.0.0/

module.exports = {
    extends: ["@commitlint/config-conventional"],
    prompt: {
        questions: {
            type: {
                description: "选择提交类型",
                enum: {
                    feat: {
                        description:
                            "新增了一个功能(这和语义化版本中的 MINOR 相对应);",
                        title: "✨ 新增功能",
                        emoji: "✨",
                    },
                    fix: {
                        description:
                            "修复了一个 BUG(这和语义化版本中的 PATCH 相对应);",
                        title: "🐛 修复缺陷",
                        emoji: "🐛",
                    },
                    docs: {
                        description:
                            "用于修改文档,例如修改 README 文件、API 文档等;",
                        title: "📚 文档更新",
                        emoji: "📚",
                    },
                    style: {
                        description:
                            "用于修改代码的样式,例如调整缩进、空格、空行等;",
                        title: "💎 代码格式",
                        emoji: "💎",
                    },
                    refactor: {
                        description:
                            "用于重构代码,例如修改代码结构、变量名、函数名等但不修改功能逻辑;",
                        title: "📦 代码重构",
                        emoji: "📦",
                    },
                    perf: {
                        description:
                            "用于优化性能,例如提升代码的性能、减少内存占用等;",
                        title: "🚀 性能提升",
                        emoji: "🚀",
                    },
                    test: {
                        description:
                            "用于修改测试用例,例如添加、删除、修改代码的测试用例等;",
                        title: "🚨 测试相关",
                        emoji: "🚨",
                    },
                    build: {
                        description:
                            "用于修改项目构建系统,例如修改依赖库、外部接口或者升级 Node 版本等;",
                        title: "🛠 构建相关",
                        emoji: "🛠",
                    },
                    ci: {
                        description:
                            "用于修改持续集成流程,例如修改 Travis、Jenkins 等工作流配置;",
                        title: "⚙️ 持续集成",
                        emoji: "⚙️",
                    },
                    chore: {
                        description:
                            "用于对非业务性代码进行修改,例如修改构建流程或者工具配置等;",
                        title: "♻️ 其他修改",
                        emoji: "♻️",
                    },
                    revert: {
                        description: "恢复以前的提交;",
                        title: "🗑 回退代码",
                        emoji: "🗑",
                    },
                },
            },
            scope: {
                description: "填写提交范围",
            },
            subject: {
                description: "填写提交主题 (必填)",
            },
            body: {
                description: "填写提交明细",
            },
            isBreaking: {
                description: "破坏性变更?",
            },
            breakingBody: {
                description: "请详细描述破坏性变更",
            },
            breaking: {
                description: "破坏性变更描述",
            },
            isIssueAffected: {
                description: "影响待解决的 ISSUES",
            },
            issuesBody: {
                description: "请详细描述如何解决的 ISSUES",
            },
            issues: {
                description: '添加 ISSUES 引用(例如"fix #123", "re #123")',
            },
        },
    },
};