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

bs-develop-cli

v0.0.44

Published

cli:标准组件创建

Readme

Node实现的的CLI工具

CLI工具的底层使用Yeoman,Yeoman是可用来实现脚手架工具的底层框(插件扩展机制),其本身并不是解决方案的实现。Yeoman 提供了底层API的接口,和生命周期函数,极大的提高了脚手架解决方案的开发时间。Yeoman社区中目前有 3500 个开源贡献插件可以直接使用。bs-develop-cli 使用了Yeoman底层的技术实现了CLI工具(不仅仅是脚手架)

强大的社区,和文档,可以帮助开发者快速上手,并可以编写一个Node的工具。借助Yeoman的标准、文档、社区,并且使用插件的方式开发Node工具,可以让更多的开发者加入进来共同共建PaaS的本地工具链

安装

~/ npm install bs-develop-cli -g

安装使用了 npm package.json 中的 "bin" 属性,安装完毕后会自动注入 “bscpm” 命令到 /bin 目录下。开发者直接在 shell 中就可以调用到 bscom 命令

功能

创建组件解决方案

~/ bscpm create:cpm
项目包含
  • 创建项目时可选 storybooks 功能,直接输入 npm run storybooks,即可一个用与本地调试组件的服务
  • npm run build:lib,转码ES5
  • 带有一个 .publish 文件,用于描述组件在开发态用于配置的元数据描述

发布组件到PaaS平台

~/ bscpm publish

内部发布流程

  • 自动登陆npm账号
  • 发布组件到 npm
  • 发布组件元数据描述到 “组件管理平台”  * 需要使用 bscpm set publish-path:? 设置 “组件管理平台” 的地址

基本变量配置

~/ bscpm set ?:?

"bscom set ?:?" 是用于配置必要的变量,底层使用 Yeoman 的 sotrage机制

需要的预配置

  • 设置 “组件管理平台” 的地址

    ~/ bscpm set publish-path:?

  • 设置 npm 用户名

    ~/ bscpm set npm-user-name:?

  • 设置 npm 用户密码

    ~/ bscpm set npm-user-passwors:?

  • 设置 npm 用户邮箱

    ~/ bscpm set npm-user-email:?

更新

  • 0.0.36

增加了自动登陆 npm 账号的功能,账号信息需要预先配置

  • 0.0.38
  1. 脚手架创建的命令修改成 bscpm create cmp/project
  2. 脚手架工具添加了项目的创建
  3. 优化了项目内部结构,维护更清晰