-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcloudbaserc.json
90 lines (90 loc) · 2.63 KB
/
cloudbaserc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"envId": "{{ env.ENV_ID }}",
"functionRoot": "./cloudfunctions",
"framework": {
"name": "thucats",
"plugins": {
"function": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./cloudfunctions",
"functions": [
{
"name": "cloud",
"installDependency": true
}
]
}
},
"mp": {
"use": "@cloudbase/framework-plugin-mp",
"inputs": {
"appid": "{{ env.WX_APPID }}",
"privateKey": "{{ env.UPLOAD_PRIVATE_KEY }}",
"localPath": "./",
"ignores": ["node_modules/**/*"],
"deployMode": "upload",
"previewOptions": {
"desc": "一键预览",
"setting": {
"es6": false
},
"qrcodeOutputPath": "./qrcode.jpg",
"pagePath": "pages/index/index",
"searchQuery": "",
"scene": 1011
},
"uploadOptions": {
"version": "1.0.0",
"desc": "Sha: {{ env.COMMIT_SHA }} Branch: {{ env.BRANCH }} ",
"setting": {
"es6": false
}
},
"commands": {
"install": "npm install",
"build": "REMAX_APP_ENVID={{ env.ENV_ID }} REMAX_APP_BASE_URL={{ env.CMS_BASE_URL }} REMAX_APP_API_TOKEN={{ env.CMS_API_TOKEN }} npm run build-mp"
}
}
}
},
"requirement": {
"environment": {
"WX_APPID": {
"description": "请填写微信小程序APPID",
"required": true,
"default": "",
"validation": {
"rule": {
"type": "RegExp",
"pattern": "^wx.*",
"flag": "g"
},
"errorMessage": "必须是小程序的APPID"
}
},
"UPLOAD_PRIVATE_KEY": {
"description": "请填写微信小程序上传密钥BASE64",
"required": true,
"default": "",
"validation": {
"rule": {
"type": "RegExp",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
"flag": "g"
},
"errorMessage": "必须是BASE64格式密钥"
}
},
"CMS_BASE_URL": {
"description": "请填写CMS的API Url,以 `https://` 开头,以 `/v1.0` 结尾",
"required": true
},
"CMS_API_TOKEN": {
"description": "请填写CMS的API Token,请注意开启该Token的读与修改权限",
"required": true
}
}
}
}
}