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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@seresweb/build-sh

v2.0.0

Published

构建并推送项目脚本

Readme

@seresweb/build-sh

代码仓库:https://gitlab.seres.cn/lib/build-sh

这个脚本整合了我们在从开发到推送测试或生产产物的整个过程。提高本地发布模式的速度。为我们省去了大量的 git 操作。

此脚本仅是用于下面描述中的本地构建发布模式

将构建的产物(通常是 dist)放到特定分支下推送到远程仓库,再通过其他预设的指令同步该分支上的产物到服务器。

下面列举了已知的可用项目

| 项目名称 | 项目 Git 地址 | | -------------- | ------------------------------------------ | | 赛力斯问卷系统 | https://gitlab.seres.cn/web/seres-question | | 蓝电官网 | |

安装

npm i @seresweb/build-sh -g

或者拉取源码后,在项目中执行 npm link

使用

  1. 在项目根目录打开终端
  2. 输入流程构建命令bs后,跟随提示操作

流程示意:

flowchart TD
    A@{ shape: circle, label: "开始" } --> B[选择开发分支]
    B --> C[选择发布分支]
    C --> D{是否有未提交的更改?}
    D --> |是| F[拉取远程开发分支]
    D --> |否| E[输入提交信息,提交]
    E --> F
    F --> G[拉取远程发布分支]
    G --> H[合并本地开发分支到发布分支]
    H --> I{执行构建}
    I --> |test分支| J[执行 npm run build:test]
    I --> |master或main分支| K[执行 npm run build]
    I --> |其他分支| L[选择package.json中的命令执行]
    J --> M{是否有未提交的更改?}
    K --> M
    L --> M
    M --> |是| N[创建commit]
    M --> |否| O{是否添加tag?}
    N --> O
    O --> |是| P[根据package.json中的版本号生成预发、测试等版本号供选择]
    O --> |否| Q{是否合并代码回开发分支?}
    P --> QQ{是否是patch\minor\major版本}
    Q --> |是| R[合并代码到开发分支]
    Q --> |否| U
    QQ --> |是| RR[合并代码到开发分支]
    QQ --> |否| S{是否推送tag到origin}
    RR --> S
    R --> U
    S --> |是| T[推送开发、发布分支和tag到origin]
    S --> |否| U[推送开发、发布分支到origin]
    T --> V@{ shape: dbl-circ, label: "结束" }
    U --> V

或者

参与贡献

  1. 拉起代码
  2. 修改逻辑并创建本地提交
  3. 推送到私有 npm 仓库
npm publish