-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbaserc.json
96 lines (96 loc) · 2.45 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
91
92
93
94
95
96
{
"envId": "{{env.ENV_ID}}",
"version": "2.0",
"functionRoot": "./cloudfunctions",
"$schema": "https://framework-1258016615.tcloudbaseapp.com/schema/latest.json",
"framework": {
"name": "clock_mini",
"plugins": {
"fn": {
"use": "@cloudbase/framework-plugin-function",
"inputs": {
"functionRootPath": "./cloudfunctions",
"functions": [
{
"name": "collect",
"installDependency": true
},
{
"name": "dk",
"installDependency": true
},
{
"name": "home",
"installDependency": true
},
{
"name": "login",
"installDependency": true
}
]
}
},
"db":{
"use": "@cloudbase/framework-plugin-database",
"inputs": {
"collections": [
{
"collectionName": "clockList",
"aclTag": "READONLY"
},
{
"collectionName": "swiperList",
"aclTag": "READONLY"
},
{
"collectionName": "testTypes",
"aclTag": "READONLY"
},
{
"collectionName": "userList",
"aclTag": "READONLY"
}
]
}
},
"mp":{
"use": "@cloudbase/framework-plugin-mp",
"inputs": {
"appid": "{{env.WX_APPID}}",
"privateKey": "{{env.WX_CI_KEY}}",
"localPath": "./",
"ignores": ["node_modules/**/*"],
"deployMode": "preview",
"previewOptions": {
"desc": "一键预览",
"setting": {
"es6": false
},
"qrcodeOutputPath": "./qrcode.jpg",
"pagePath": "pages/index/index",
"searchQuery": "",
"scene": 1011
}
}
}
}
},
"requirement":{
"environment": {
"WX_APPID": {
"description": "请填写微信小程序APPID",
"required": true,
"default": "",
"validation": {
"rule": {
"type": "RegExp",
"pattern": "^wx.*",
"flag": "g"
},
"errorMessage": "必须是小程序的APPID"
}
}
}
}
}
}