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

wx-mini-uploader

v1.0.1

Published

微信小程序打包上传工具,并添加了发布成功钉钉通知

Downloads

94

Readme

wx-mini-uploader

基于miniprogram-ci实现的微信小程序上传工具,用于自动打包上传小程序

使用方式

  • 本地安装wx-miniprogram-uploader
  yarn add wx-miniprogram-uploader -D
  • package.json新增upload命令
  "scripts": {
    ...
    "build": "...",
    "upload": "mini-upload --private=src/config/private.key --robotPath=src/config/robot-config.js"
  }
  • private参数(必填):private.key为微信小程序上传秘钥,在微信公众平台->开发管理->开发设置->小程序代码上传中生成
  • robotPath参数(非必填):robot-config.js为钉钉相关配置文件,可以用来设置钉钉群通知相关
// 钉钉机器人
const robotConfig = {
  // 是否开启钉钉通知
  isRobotSwitch: true,
  // 钉钉群token
  token: 'token...',
  // 需要@人员手机号
  atMobiles: [],
  // 被@人的用户ID
  atUserIds: [],
  // 是否需要@所有人
  isAtAll: false,
  // 指定打包机器人
  robot: 1,
  // 打包编译开启进程数
  threads: 8,
  // 钉钉群通知关键字
  keyword: ['发布'],
};

module.exports = {
  robotConfig,
};
  • 打包上传
  yarn run upload

changelog

1.0.0

  • 新增钉钉机器人userId方式通知相关人员
  • 新增打包机器人编号参数robot及多进程打包编译参数threads