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

generator-qmact

v1.0.11

Published

quanmin activity generator

Readme

专题页脚手架

这是一个基于yeoman开发的活动专题页脚手架!!

安装

# yo
npm install yo -g

# generator-qmact
npm install generator-qmact -g

使用

支持以下几种操作

  • 创建项目
  • 创建model
  • 创建组件
  • 创建service
  • 创建页面

创建项目

yo qmact

紧接着命令会提示 输入项目名字 最后生成的文件夹名字格式: activity-{name} 生成的路由格式: act/{name}

实际上该命令省略了操作类型,默认是 project

yo qmact project app

直接指定项目名字(app),省去命令提示操作

model

yo qmact model

按照命令的提示 输入文件名字

你也可以直接

yo qmact model mName

会在当前目录的下的 /view/model 目中创建一个文件 mName.js

组件

yo qmact widget(有命令提示的)
yo qmact widget myWidget

会在当前目录下的/view/widget 目录中创建一个组件,包含三个文件(myWidget.css,myWidget.html,myWidget.js)

页面

yo qmact page(有命令提示的)
yo qmact page myPageName

会在当前目录下的/view/page 目录中创建一个组件,包含三个文件(index.css,index.tpl,index.js)

另外,可以通过后面加参数 --mobile(alias:-m) 来指定创建的页面是用于mobile的,默认是用于web的

yo qmact page -m
yo qmact page myPageName -m

service

yo qmact service(有命令的)
yo qmact service mySerice

会在当前目录下的/service 目录中创建一个service