Giter Club home page Giter Club logo

vite-plugin-mini-ci's Introduction

vite-plugin-mini-ci

小程序 CI 集成,打开小程序开发工具、上传并生成体验码、生成预览二维码

Install

pnpm add cross-env vite-plugin-mini-ci -D

Usage

  1. 在项目运行脚本中添加环境变量参数 VITE_PLUGIN_MINI_CI,以英文逗号分割来执行多个指令。
// package.json
{
  "scripts": {
    "dev:mp-alipay": "cross-env VITE_PLUGIN_MINI_CI=open,preview uni -p mp-alipay"
  }
}
  1. 添加 vite-plugin-mini-ci 插件
// vite.config.ts
import { defineConfig } from 'vite'
import uni from '@dcloudio/vite-plugin-uni'
import miniCI from 'vite-plugin-mini-ci'
export default defineConfig({
  plugins: [uni(), miniCI({
    alipayOpt: {
      appId: '你的appid',
      openOpt: {
        appPath: '开发者工具安装目录'
      }
    }
  })]
})

支付宝 CI

官方CI文档

支付宝真机预览 preview 以及 upload 需要 授权信息

微信 CI

官方CI文档

官方CI包

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.