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 🙏

© 2024 – Pkg Stats / Ryan Hefner

qm-cli

v1.1.3

Published

PC-4.0项目脚手架 > still under heavy development...

Downloads

17

Readme

qm-cli

PC-4.0项目脚手架

still under heavy development...

usage

qm-cli <command> [options]

command:

  • up [options] <repos...> 开启pc-*项目的本地开发环境
  • down关闭本地开发环境
  • boot一键拉取、构建PC-3.0项目
  • act [options]创建活动相关项目
  • widget [options] <widget-name>创建组件

up

开启本地仓库的构建工作,同时启动本地开发环境。

注意:使用该命令需要开启docker daemon

例:

qm-cli up pc-index pc-room

可选项:

  • -o --omit: 只build当前仓库,不创建本地开发服务器
  • -p --port: 指定本地开发服务器所占用的端口号
  • -s --source: 指定开发仓库、以及构建后的PC-3.0项目所在路径,默认为$(pwd)
  • -d --detach: 运行为detach模式,运行交回terminal

down

在某些操作系统,若ctrl-c后无法关闭本地开发环境,可使用该命令进行关闭。

注意:使用该命令需要开启docker daemon

例:

qm-cli down

boot

一键拉取、构建PC-3.0相关仓库。

注意:使用该命令需安装git客户端并上传SSH公钥

注意:使用该命令需要开启docker daemon

例:

qm-cli boot

可选项:

  • -o --output: 指定构建项目的目录地址

act

创建活动相关仓库。

例:

qm-cli act --actname yahaha

可选项:

  • -i --interactive: 进入交互模式传递可选项。进入交互模式后,以下可选项皆被忽略
  • -a --actname: 指定活动名称。必选
  • -o --output: 指定输出目录。默认$(pwd)
  • -m --mobile: 创建移动站相关配置。默认忽略
  • -g --git: 提供git仓库地址进行clone。注意:使用此选项需安装git客户端并上传SSH公钥

widget

创建PC-*仓库的相关组件

例:

qm-cli wiget -o ./pc-index giftlist

可选项:

  • -t --type: 指定创建组件的类型,现支持Mitt组件或者Vue组件。默认为Mitt组件
  • -o --output: 指定输出的目录地址
  • -n --namespace: 指定创建组件所属于的命名空间,例如list, common或者room等; 如不指定,但是输出目录的basename包括*-xxx等类型,那么默认xxx作为命名空间
  • -m --model: 创建组件的同时创建相关的model