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

wechat-ci

v0.3.2

Published

微信小程序 上传代码/预览, 命令行 上传/预览 微信小程序

Downloads

11

Readme

wechat-ci

miniprogram-ci 使用 pnpm 存在问题, 所以使用 wechat-ci 上传必须使用 npm 打包项目(yarn 没测试过)

通过命令行 上传/预览 微信小程序基于 miniprogram-ci

Features

  • 简单配置高效使用, 拒绝繁琐配置项
  • 测试叫你给一个测试二维码时, 直接命令行操作. 避免打开微信开发者工具导致的内存崩溃
  • 统一编译配置, 避免每个人上传预览时配置项不同
  • ...

Usage

  1. 安装

    npm i wechat-ci -D
  2. 项目根目录创建并配置 wx.config.jswx.config.ts

    import { defineConfig } from "wechat-ci";
    
    export default defineConfig({
      appid: "appid", // 小程序 appid
      type: "miniProgram", // 小程序类型
      projectPath: "./dist/build/mp-weixin", // 小程序项目路径
      // 私钥key路径, 私钥前往 微信公众平台登录-开发管理-开发设置-小程序代码上传-生成 小程序代码上传密钥(记得同时配置IP白名单)
      privateKeyPath: "./key/private.wxfcc8888888888888.key",
      packageJsonPath: "./package.json", // package.json 路径
      previewOptions: {
        // 预览配置
        qrcodeFormat: "image",
        qrcodeOutputDest: "./qrcode.jpg",
        pagePath: "", // 预览页面路径
        searchQuery: "", // 预览页面路径启动参数
        scene: "1011",
      },
      settings: {
        // 编译配置
        // 默认{ es6: true, es7: true, minify: true, autoPrefixWXSS: true, disableUseStrict: true, ignoreUploadUnusedFiles: true, };
      },
    });
  3. 配置 package.json

    "scripts": {
      // uniapp 需要先打包
      "ci": "uni build -p mp-weixin && weichat-ci",
      // 微信小程序原生直接使用
      "ci": "wechat-ci"
    }
  4. 预览/发布

    npm run ci

    也可配合 release-it 这种工具使用, release-it after:bump 生命周期运行 npm run ci

More

  • [ ] 版本更新提示
  • [ ] 选择 ci 机器人 1~30
  • [ ] 根据 git commit 消息自动获取上传信息 version + commit msg + author 基于 parse-git-config
  • [ ] 接入邮件/企业微信 直接将预览二维码发送给指定群或者指定人员? 支持可视化操作?