This commit is contained in:
2025-01-02 09:17:34 +08:00
parent 32317bb9eb
commit e96468a2d0
7 changed files with 5719 additions and 33 deletions

32
config/CIPluginOpt.js Normal file
View File

@@ -0,0 +1,32 @@
/**
* @typedef { import("@tarojs/plugin-mini-ci").CIOptions } CIOptions
* @type {CIOptions}
*/
const CIPluginOpt = {
weapp: {
appid: '微信小程序appid',
privateKeyPath: '密钥文件相对项目根目录的相对路径,例如 key/private.appid.key',
},
tt: {
email: '字节小程序邮箱',
password: '字节小程序密码',
},
alipay: {
appid: '支付宝小程序appid',
toolId: '工具id',
privateKeyPath: '密钥文件相对项目根目录的相对路径,例如 key/pkcs8-private-pem',
},
dd: {
appid: '钉钉小程序appid,即钉钉开放平台后台应用管理的 MiniAppId 选项',
token: '令牌,从钉钉后台获取',
},
swan: {
token: '鉴权需要的token令牌',
},
// 版本号
version: '1.0.0',
// 版本发布描述
desc: '版本描述',
}
export default CIPluginOpt;

View File

@@ -3,6 +3,7 @@ import {defineConfig} from '@tarojs/cli'
import devConfig from './dev'
import prodConfig from './prod'
import CIPluginOpt from "./CIPluginOpt";
// https://taro-docs.jd.com/docs/next/config#defineconfig-辅助函数
export default defineConfig(async (merge, {command, mode}) => {
@@ -25,7 +26,10 @@ export default defineConfig(async (merge, {command, mode}) => {
},
sourceRoot: 'src',
outputRoot: 'dist',
plugins: ['@tarojs/plugin-html'],
plugins: [
'@tarojs/plugin-html',
['@tarojs/plugin-mini-ci', CIPluginOpt]
],
defineConstants: {},
copy: {
patterns: [],