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

miniprogram-deploy

v0.1.2

Published

miniprogram deploy cli based on miniprogram-ci

Readme

微信小程序自动部署工具

本工具以配置文件+命令的方式, 基于miniprogram-ci完成微信小程序的自动化上传.

使用前需要使用小程序管理员身份访问"微信公众平台-开发-开发设置"后下载代码上传密钥,并配置 IP 白名单,才能进行上传、预览操作。

一、如何使用

安装

npm install -g miniprogram-deploy

配置文件

  • 自动创建:在小程序项目根目录运行命令 miniprogram-deploy init
  • 手动创建:在小程序项目根目录新建配置文件 mp-deploy.config.json, 格式参考下方 init命令的描述.

上传

在小程序项目根目录运行命令 miniprogram-deploy upload

二、命令

init

miniprogram-deploy init

第一次运行upload之前, 需要初始化mp-deploy.config.json配置文件.

只需要初始化一次, 后续只需要单独运行 miniprogram-deploy upload即可完成微信小程序的上传.

{
    "type": "miniProgram",
    "privateKeyPath": "./private.key",
    "version": "2.1.1",
    "desc": "版本备注",
    "projectPath": "./dist"
}
  • type

(必填) - 项目的类型,有效值 miniProgram/miniProgramPlugin/miniGame/miniGamePlugin

  • privateKeyPath

(必填) - 私钥路径,在获取项目属性和上传时用于鉴权使用,需要使用小程序管理员身份访问"微信公众平台-开发-开发设置"后下载密钥

  • projectPath

(必填) - 打包后项目的路径,即 打包后project.config.json 所在的目录

  • version

(选填) - 自定义发布版本号, 默认取package.json中的version字段

  • desc

(选填) - 自定义发布备注, 默认取最近一次git commit message

doctor

miniprogram-deploy doctor

校验mp-deploy.config.json配置文件是否符合要求.

upload

miniprogram-deploy upload

上传打包后的小程序包, 实时输出上传进度, 最终打印上传包的结果.

三、选项

-V

miniprogram-deploy -V

查看当前cli版本

-h

miniprogram-deploy -h

查看当前cli所有的命令和选项