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

litchi-mp-devtools-ci

v1.8.8

Published

对微信客户端开发者工具提供的命令服务二次封装

Downloads

2

Readme

litchi-mp-devtools-ci

小程序开发者工具的命令行调用封装。原文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/cli.html

安装

npm i litchi-mp-devtools-ci -D

引入

require("litchi-mp-devtools-ci");
async function run() {
  const projectPath = "C:\\project\\com\\JK724.XCX.WechatShopping";
  const instance = new CLI("C:\\Program Files (x86)\\Tencent\\微信web开发者工具", "v1");
  await instance.init();
  let res;
  // 调用本地开发者工具打开项目
  res = await instance.open(projectPath);
  console.log(res.stderr);
  console.log(res.stdout);

  // 构建npm
  res = await instance.buildNPM(projectPath);
  console.log(res.stderr);
  console.log(res.stdout);

  // 上传
  res = await instance.upload(projectPath, "2020.03.17", "上传测试");
  console.log(res.stderr);
  console.log(res.stdout);

  // 关闭
  res = await instance.quit();
  // console.log(res.stderr);
  // console.log(res.stdout);
}

run();

注意

由于开发者工具不断的在更新,具体以使用时实际情况为准,本包在最新的(截止到 2020 年 3 月 17 日)稳定版 以及 预发布版 测试通过。

  • 本包作为主库配套包使用,并未支持所有 cli 命令,如有需要,可提 issues
  • 官方的命令行有 v1 和 v2 两个版本,v2 版本仅在 预发布版本1.02.2003121稳定版1.02.202003092(未发布) 及其以上支持,从我的测试结果看,v2 版本的命令编译效率、稳定性很差,强烈建议使用 v1 版本的命令以及已发布的最新的稳定版开发者工具