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

wechatprogram-ci

v1.1.0

Published

``` npm install --save wechatprogram-ci ```

Readme

安装方式

npm install --save wechatprogram-ci

使用方法

使用wechat-ci有两种方式,一种通过命令的方式,类似于webpack, 一种通过代码实例化的方式

通过命令使用

cross-env appId=xxxx wechat-ci manifest/upload/preview

wechat-ci提供的三个方法,分别为wechat-ci manifestwechat-ci previewwechat-ci upload,可以通过命令的方式传递参数(如传递appid等)

通过引用包的方式


const wechatCI = new WechatCI({
  sourceManifest: './manifest-config.json',
  destManifest: './manifest.json',
  appid: 'xxx',
});

# 生成uni-app的manifest.json
wecahtCI.manifest();

npm 如何引用本地包

要引用组件我们通常通过npm install命令引入,但是如果本地组件未发布到仓库中,那么我们npm install将报包找不到的错误,

如果我们需要引入本地包,可以使用类似npm install --save ..这个命令来引入本地包

配置参数

wechat-ci拥有如下配置参数:

{
  // appid
  appid: process.env.appId || '',

  // project path
  projectPath: process.env.projectPath || '',

  // privateKeyPath
  privateKeyPath: process.env.privateKeyPath || '',

  // basePath
  basePath: process.cwd() || process.env.pwd || '',

  // 小程序类型, 有【miniProgram, miniProgramPlugin, miniGame, miniGamePlugin】四种类型
  type: process.env.type || 'miniProgram', 

  // 二维码地址
  qrcodePath: process.env.qrcodePath || '',

  // 二维码类型,支持image或者base64格式
  qrcodeFormat: process.env.qrcodeFormat || 'image',

  // 描述
  desc: process.env.dest || '',

  // 名称
  name: process.env.name || '',

  // 源manifest
  sourceManifest: process.env.sourceManifest || '',

  // 目标manifest
  destManifest: process.env.destManifest || '',
  
  // 是否压缩
  minify: true,

  // 是否输出
  debugger: true,

  // 线程数
  threads: 2,

  // 版本
  version: '',

  // ignores
  ignores: ['node_modules/**/*'],
}