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

local-run-gitlab-ci

v0.1.3

Published

在本地按 stages 顺序执行 .gitlab-ci.yml 中的 script,并提供 local-run-ci 脚手架命令

Readme

local-run-gitlab-ci

Run .gitlab-ci.yml locally. local-run-ci init scaffolds a ready-to-run local-build/ directory.


Quick Start / 快速开始

# Generate local-build in current project
npx local-run-ci init

# Overwrite existing local-build (if any)
local-run-ci init --force

# Run locally (same as: node ./local-build)
local-run-ci --list
local-run-ci --only-stages test
local-run-ci run --dry-run

模板位于仓库内 resources/local-build/init 会复制到当前工作目录。


Features / 功能

  • One-shot run via node ./local-build (entry: local-build/index.js).
  • Parse .gitlab-ci.yml and execute script in stages order.
  • Colorful stdout/stderr logging.
  • Skip controls: --skip, --skip-re, and local-build/.ci-ignore.
  • init 默认生成 local-build/.ci-ignore(可按需编辑)。
  • Plugin hooks via local-build/plugins/(详见 local-build/plugins/README.md)。
  • 依赖:shelljs@^0.8.5yaml@^2.3.4local-run-ci init 默认自动安装;如使用 --skip-install 请自行安装。

Commands / 命令

  • local-run-ci init [-f|--force] [--skip-install]
    生成/覆盖 local-build/,可选择跳过依赖安装。
  • local-run-ci run ...args
    显式运行 local-build,参数透传给 runner。
  • local-run-ci ...args
    无子命令时透传参数给 local-build 运行器,例如 --list--dry-run--only-stages--only-jobs--skip--skip-re

Plugins / 插件

local-build/plugins/ 增加插件并在 local-build/index.js 启用。可用 Hook 详见 local-build/plugins/README.md

内置示例:

  • pre-env.js:设置 CI 环境变量。
  • post-summary.js:统计运行/跳过/失败命令并总结输出。

Example / 示例

example/ 提供完整示例:

cd example
node ./local-build --list        # 查看执行/跳过的命令
node ./local-build --dry-run     # 仅打印不执行