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

@dyb-dev/project-cli

v0.0.10

Published

项目中常用操作的自动化脚手架工具

Readme

@dyb-dev/project-cli

@dyb-dev/project-cli 是一个用于项目中常用操作的自动化脚手架工具,帮助你快速进行项目中的各类常见操作。

环境要求

  • Node.js: >=18.0.0
  • pnpm: >=8.15.5

安装

该工具支持使用 npmpnpmyarnbun 来安装。以下示例使用 pnpm

pnpm i @dyb-dev/project-cli -D

版本

可以通过以下命令查看 CLI 工具的版本:

project-cli -V

帮助

可以通过以下命令查看 CLI 工具的使用说明:

project-cli -h

校验 Git 提交信息

你可以使用 commit-lint 命令来校验 Git 提交信息是否符合项目的提交规范。可以配合例如 husky 等工具来使用,这里以 husky 来示例:

首先,第一步安装 husky:

pnpm i husky -D

然后在 package.json 中添加以下脚本:

"scripts": {
    "prepare": "husky"
}

接下来,创建 .husky 目录,并创建 commit-msg 文件,添加以下内容:

# Git提交时自动效验提交信息
project-cli commit-lint $1

最后,删除 node_modules 并重新安装依赖:

rm -rf node_modules
pnpm install

Git 提交信息示例:

# 格式要求

# -   `init`: 项目初始化
# -   `feat`: 添加新特性
# -   `fix`: 修复bug
# -   `docs`: 仅仅修改文档
# -   `style`: 仅仅修改了空格、格式缩进、逗号等等,不改变代码逻辑
# -   `refactor`: 代码重构,没有加新功能或者修复bug
# -   `perf`: 优化相关,比如提升性能、体验
# -   `test`: 增加测试用例
# -   `build`: 依赖相关的内容
# -   `ci`: ci配置相关,例如对k8s,docker的配置文件的修改
# -   `chore`: 改变构建流程、或者增加依赖库、工具等
# -   `revert`: 回滚到上一个版本
# -   `type`: 仅仅新增、删除、修改了ts类型

fix(区域): 修复样式问题

一键发布功能

你可以使用 release 命令来帮助您轻松地发布新版本。

使用示例:

project-cli release

执行命令后根据操作提示进行操作即可。

贡献指南

如果您发现任何问题或希望贡献代码,请提交 issue 或 pull request 到 GitHub 仓库:

许可证

MIT License