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

qpub

v2.0.0

Published

A tool for fully automatic publishing of npm packages

Downloads

5

Readme

npm npm

qpub

quick-publish一款全自动npm发包工具,一行命令帮助你git replase、创建git tag、发布npm包。

qpub自动生成新版本号,自动生成commit message,创建tag,push到github,最后发布到npm中,整个过程只需要一行命令,解放你的双手!

改自fengxincimi

使用示例

Screenshot

qpub有什么优势?

当我们在开发组件库或者其他开源工具包时,我们发一个新的 NPM 包可能需要这些工作:

  • 手动修改package.json中的version.
  • git add .git commit -m "xxxx"生成一个提交.
  • git push origin master 推送到远端.
  • 在github中打一个新tag.
  • npm publish将代码提交到NPM.

听起来是不是很麻烦?而有了qpub,你只需要一行简单的代码:

qpub patch master

就可以完成上面所有事情。

qpub修改版本规则

qpub共有三种规则,来进行发包,其实也就是确定版本号。

  • qpub -patch 更新一个小版本,如1.1.1 -> 1.1.2,如bug修复;
  • qpub -minor 更新一个中版本,如1.1.1 -> 1.2.0,如新增功能;
  • qpub -major 更新一个大版本,如1.1.1 -> 2.0.0,如重构架构;

参数 -B --beta

  • qpub -patch -B 更新一个小的测试版本,如1.1.1 -> 1.1.2-beta,如bug修复;
  • qpub -minor --beta 更新一个中的测试版本,如1.1.1 -> 1.2.0-beta,如新增功能;

参数 -branch

而分支默认为master,如果主分支为其他分支,应这样使用: qpub -patch -branch main qpub -patch -branch beta

使用

# 全局安装qpub
npm i qpub -g
# 本地安装qpub
npm i qpub -D

推荐使用pnpm安装。

# 全局安装qpub
pnpm i qpub -g
# 本地安装qpub
pnpm i qpub -D

以下是qpub -h的输出:

Usage: qpub [options]

Options:
  -v, --version     output the version number
  -B --beta         publish your new npm package with beta (default: false)
  -patch            patch your new npm package with beta (default: true)
  -minor            minor your new npm package with beta (default: false)
  -major            major your new npm package with beta (default: false)
  -branch [master]  pull this branch (default: "master")
  -h, --help        display help for command

LICENSE

MIT © fengxin MIT © 西索酱