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

@aubo/wcaps-builder

v0.3.3

Published

Aubo Webscope Caps Plugin Builder - 脚手架与构建工具

Readme

@aubo/wcaps-builder

Webscope 插件的脚手架与构建工具。

安装

npm install @aubo/wcaps-builder --save-dev

使用

创建插件项目

交互式创建一个标准化的 Webscope 插件模板:

wcaps-builder create

# 指定名称和强制覆盖
wcaps-builder create -n my-plugin -f

构建插件

在插件项目根目录执行:

# 完整构建(前端 + 后端)
wcaps-builder build

# 仅构建前端
wcaps-builder build:frontend

# 仅构建后端
wcaps-builder build:backend

# 测试模式(保留 source-map 和 console)
wcaps-builder build --mode test

在 package.json 中配置脚本

{
  "scripts": {
    "build:frontend": "wcaps-builder build:frontend",
    "build:backend": "wcaps-builder build:backend",
    "build": "wcaps-builder build"
  }
}

编程式 API

import { WcapsBuilder } from '@aubo/wcaps-builder';

const builder = new WcapsBuilder({
  cwd: process.cwd(),
  mode: 'production',   // 'production' | 'test'
});

await builder.build();         // 完整构建
await builder.buildFrontend(); // 仅前端
await builder.buildBackend();  // 仅后端

前置依赖

本包将 @vue/cli-service 作为 peerDependency,请在插件的 devDependencies 中安装:

npm install @vue/cli-service --save-dev

构建产物

dist/
├── plugin.json              # 插件汇总元信息
├── frontend/
│   ├── plugin.umd.min.js    # 前端 UMD 库
│   ├── assets/
│   └── frontend.json        # 前端元信息
└── backend/
    ├── main.js              # 后端入口
    └── ...

CLI 命令参考

用法: wcaps-builder <command> [options]

命令:
  create                    创建新的插件项目(交互式)
  create -n <name>          创建并指定名称
  build                     构建前后端(完整构建)
  build:frontend            仅构建前端
  build:backend             仅构建后端

Create 选项:
  -n, --name <name>         插件名称 (kebab-case)
  -f, --force               强制覆盖已存在的目录
  --no-git                  不初始化 Git 仓库
  --no-install              不自动安装依赖

Build 选项:
  -m, --mode <mode>         构建模式 (production|test, 默认 production)
  --skip-warn               跳过 vue.config.js 校验警告

其他:
  -h, --help                显示帮助信息
  -v, --version             显示版本号

License

MIT