Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xtdev/tools-weapp

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xtdev/tools-weapp

#### 安装 ` npm install -g @xtdev/tools-weapp `

  • 0.1.0
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-80.85%
Maintainers
4
Weekly downloads
 
Created
Source

tTools 工具箱

安装

npm install -g @xtdev/tools-weapp

根据你要执行的操作,执行不同的命令 ,其中 weapp 是小程序相关,file 是文件上传/压缩等


文件操作
  • 上传本地图片 tTools file upload 你本地图片文件地址 控制台会返回上传结果: 文件上传成功: https://img.tanjiu.cn/home/C423076882516844.png

小程序操作

cd 您的工程目录

  • 本地打包 NODE_ENV=test PRIVATE_KEY=xxx tTools weapp build

  • 本地预览 NODE_ENV=test PRIVATE_KEY=xxx tTools weapp preview Note: 这里的NODE_ENV是打包环境,默认是test。PRIVATE_KEY是微信后台生成的证书。

  • 上传wxml内引用的图片,并替换成CDN地址。(建议执行前先commit代码) tTools weapp imageUpload

FAQs

Package last updated on 27 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc