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 🙏

© 2025 – Pkg Stats / Ryan Hefner

generator-comb

v1.1.10

Published

Scaffold of Comb

Downloads

7

Readme

generator-comb NPM version Build Status

Yeoman构建蜂巢(Comb)脚手架,方便基于蜂巢(Comb)的新项目的创建

##yeoman构建过程:

  1. 安装 Yeoman
npm install -g yo
  1. 安装yeoman的generator:
npm install -g generator-generator
  1. 通过step2的generator创建一个自己的generator:
yo generator
  1. 修改项目中的generaotr/app/index.js,进行定制; 定制过程参考: 官网教程参考示例

  2. 定制好的项目上传至公司内部gitlib: http://172.28.20.6/Front/generator-comb

  3. 注册npmjs.com账户,并在generator-comb根目录登陆:

npm login
  1. 发布:
npm publish --access=public
  • 如果发布错误:
no_perms Private mode enable, only admin can publish this module
  • 原因是淘宝源没有开通registory,所以要切回默认源:
nrm ls
nrm use npm 
(或者:npm config set registry http://registry.npmjs.org)
  • 发布成功后,当前窗口能看到发布的版本号,注意以后每次发版,版本号都需要进行更改。
  • 如果符合规范,发布的组件会出现在Yeoman 首页的 Generators 清单中,由于本项目使用的是内网的gitlib,所以官网清单中只有项目介绍,并无链接。

##客户端使用: 初次使用

# 安装yeoman:
npm install -g yo
# 安装蜂巢脚手架:
npm install -g generator-comb

再次使用,请先确认一下generator-comb是否存在更新,然后在进行项目创建(初期需要调整的东西多,可能会频繁部署... ...):

# 查看generator-comb是否更新:
npm -g outdated
# 如果有更新
npm update -g generator-comb
(或直接安装通过outdated查到的最后的版本号: npm install -g [email protected])

安装(更新)后,在任意目录创建新项目(脚手架会按照您输入的项目名生成一个项目目录):

yo comb

License

蜂巢(Comb) © Dio Zhu