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

@sft/mp-ci

v1.0.1

Published

小程序自动上传工具

Downloads

2

Readme

mp-ci

小程序自动上传工具

  1. 获取config发布的配置文件 mp-ci.config.js

IProject | 键 | 类型 | 说明 | | ---- | ---- | ---- | | appid | 属性 | 小程序/小游戏项目的 appid | | type | 属性 | 项目的类型,有效值miniProgram/miniProgramPlugin/miniGame/miniGamePlugin | | projectPath | 属性 | 项目的路径,即project.config.json 所在的目录 | | privateKey | 属性 | 私钥,在获取项目属性和上传时用于鉴权使用,在微信公众平台 上登录后下载 | | attr | 异步方法 | 项目的属性,如指定了 privateKey 则会使用真实的项目属性 | | stat | 同步方法 | 特定目录下前缀下(prefix)文件路径 (filePath) 的 stat, 如果不存在则返回 undefined | | getFile | 异步方法 | 特定目录下前缀下(prefix)文件路径 (filePath) 的 Buffer | | getFileList | 同步方法 | 特定目录下前缀下(prefix)文件路径 (filePath) 下的文件列表 | | updateFile | 同步方法 | 更新项目文件 |

IUpload | 键 | 类型 | 必填 | 说明 | | ---- | ---- | ---- | ---- | | project | IProject | 是 | #项目对象 | | version | string | 是 | 内部默认会自动生成 | | desc | string | 否 | 内部默认会根据changelog自动生成 | | setting | object | 否 | #编译设置 | | onProgressUpdate | function | 否 | 进度更新监听函数 | | robot | number | 否 | 指定使用哪一个 ci 机器人,可选值:1 ~ 30 | | threads | number | 否 | 指定本地编译过程中开启的线程数 |

IPreview | 键 | 类型 | 必填 | 说明 | | ---- | ---- | ---- | ---- | | project | IProject | 是 | #项目对象 | | desc | string | 否 | 自定义备注,将显示在“小程序助手”开发版列表中 | | setting | object | 否 | #编译设置 | | onProgressUpdate | function | 否 | 进度更新监听函数 | | robot | number | 否 | 指定使用哪一个 ci 机器人,可选值:1 ~ 30 | | qrcodeFormat | string | 否 | 返回二维码文件的格式 "image" 或 "base64", 默认值 "terminal" 供调试用 | | qrcodeOutputDest | string | 是 | 二维码文件保存路径 | | pagePath | string | 否 | 预览页面路径 | | searchQuery | string | 否 | 预览页面路径启动参数 | | scene | number | 否 | 默认值 1011,具体含义见场景值列表 |

指令参数

| 指令 | 说明 | | ---- | ---- | | -c, --config | 指定配置文件,没有指定的话,默认回去找根目录下名为mp-ci.config.js的文件,如果文件不存在则用库中默认的配置 | | --preid | 指定预发布的类型alpha or beta | | --dry | 不执行命令,只打印日志 | | --progress | 展示上传和预览的进度, 默认false | | -r | 上传和预览时,指定使用哪一个 ci 机器人,可选值:1 ~ 30 | | --onlyUpload | 只执行上传微信的命令 | | --skipBuild | 跳过打包 | | --preview | 开启预览,除了获取版本号和预览外,其他操作均不执行(更新版本,推送git,打包等等) | | --pagePath | 预览页面路径 | | --searchQuery | 预览页面路径启动参数 | | --scene | 预览页面进入的场景,默认值 1011,具体含义见场景值列表 |