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

mg-module-scaffold-test

v1.0.3

Published

Mg module app scaffold test

Readme

Mg Scaffold

Mg模块应用脚手架,用于快速创建和更新Mg模块应用项目。

功能特性

  • 快速初始化Mg模块应用项目
  • 包含完整的项目结构和配置
  • 支持项目更新,保持与最新脚手架版本同步

安装

npm install -g mg-module-scaffold-test

使用方法

创建新项目

mg-create <项目名称>

例如:

mg-create my-project

更新现有项目

在现有项目根目录执行:

mg-update

项目结构

脚手架生成的项目结构如下:

<项目名称>/
├── src/
│   ├── .hui/         # 框架配置
│   ├── assets/       # 静态资源
│   ├── components/   # 通用组件
│   ├── layouts/      # 布局组件
│   ├── modules/      # 业务模块(用户自定义,demo见foo)
│   ├── store/        # 状态管理
│   ├── views/        # 页面视图
│   └── index.js      # 入口文件
├── package.json      # 项目依赖
└── README.md         # 项目说明

开发流程

  1. 进入项目目录
  2. 运行 npm run dev 启动开发服务器
  3. src/modules 目录下创建业务组件
  4. 构建项目 npm run build

注意事项

  • 脚手架更新会覆盖非 modules 目录的文件,请确保在 modules 目录下进行业务开发
  • 更新最新脚手架前建议备份项目文件,以防意外
  • 如有自定义配置,请在更新后手动合并

版本历史

  • v1.0.0: 初始版本
  • v1.0.1: 增加注释说明验证update命令
  • v1.0.2: create未输入名称时,改为引导式创建项目;update引导式更新项目报错修复
  • v1.0.3: update增加备份选项;针对脚手架所有文件,是否生成 .bak 备份文件?