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

create-lego-app

v0.1.6

Published

lego-cli for shumei web front developer

Downloads

23

Readme

什么是lego-cli

lego-cli是为公司前端项目提供基础前端脚手架的生成,为前端项目开发提供统一的技术框架和开发规范,并且同时支持页面生成、组件生成及物料库导入等操作,从而形成物料标准化、规范化,积淀项目经验,提升前端开发效率。

安装

全局安装,执行npm install create-lego-app -g

脚手架初始化

执行lego create <projectName>,执行后需填写相关项目信息

  • short name: 项目简称
  • full name: 项目全称
  • project version: 脚手架版本

填写完成后,会自动下载代码并替换项目信息,安装依赖

命令行功能

增加页面、组件或物料

通过lego add <option> <name> [path]来自动化创建页面、组件或物料,具体命令如下

需进入到已创建好的项目文件下,`cd ./<projectName>`
  • lego add -c <componentName>: 自动化创建组件,默认创建至脚手架/src/component,且带有文件夹
  • lego add -p <pageName>: 自动化创建页面,默认创建至脚手架/src/views,且带有文件夹
  • lego add -t <tablePageName>: 自动化创建表格页面,默认创建至脚手架/src/views,且带有文件夹
  • lego add -m <materialName>: 自动化导入物料,默认创建至脚手架/src/views,且带有文件夹

其他选项

  • -s: 当初生成文件,去除文件夹包裹,导入物料情况下无效

其他介绍待补充