@gmcb/cli 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,184 +3,201 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.1.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.7...@gmcb/cli@0.1.8) (2025-04-09)
7
-
8
- **Note:** Version bump only for package @gmcb/cli
9
-
10
-
11
-
12
-
13
-
14
- ## [0.1.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.6...@gmcb/cli@0.1.7) (2025-04-08)
15
-
16
- **Note:** Version bump only for package @gmcb/cli
17
-
18
-
19
-
20
-
21
-
22
-
23
- ## [0.1.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.5...@gmcb/cli@0.1.6) (2025-02-25)
24
-
25
- **Note:** Version bump only for package @gmcb/cli
26
-
27
-
28
-
29
-
30
-
31
- ## [0.1.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.4...@gmcb/cli@0.1.5) (2025-02-24)
32
-
33
- **Note:** Version bump only for package @gmcb/cli
34
-
35
-
36
-
37
-
38
-
39
- ## [0.1.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.3...@gmcb/cli@0.1.4) (2025-02-23)
40
-
41
- **Note:** Version bump only for package @gmcb/cli
42
-
43
-
44
-
45
-
46
-
47
- ## [0.1.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.2...@gmcb/cli@0.1.3) (2025-02-23)
48
-
49
-
50
- ### Bug Fixes
51
-
52
- * 构建其他项目环境不正确 ([bf3329a](http://10.10.200.92:8090/gmcb/front-end/commits/bf3329afb1d61cd5cc1d6ffbec8e6a8f2ed77e60))
53
-
54
-
55
-
56
-
57
-
58
- ## [0.1.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.1...@gmcb/cli@0.1.2) (2025-02-23)
59
-
60
- **Note:** Version bump only for package @gmcb/cli
61
-
62
-
63
-
64
-
65
-
66
- ## [0.1.1](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.0...@gmcb/cli@0.1.1) (2025-02-23)
67
-
68
- **Note:** Version bump only for package @gmcb/cli
69
-
70
-
71
-
72
-
73
-
74
- # [0.1.0](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.12...@gmcb/cli@0.1.0) (2025-02-23)
75
-
76
-
77
- ### Features
78
-
79
- * 新增复制命令 ([ab5e74d](http://10.10.200.92:8090/gmcb/front-end/commits/ab5e74d6236d4b57c1642c3e1abc9da23cb63129))
80
- * 新增构建桌面应用 ([c1e13cc](http://10.10.200.92:8090/gmcb/front-end/commits/c1e13cc0aa0770be95599f1ab7ad0fa860487cec))
81
-
82
-
83
-
84
-
85
-
86
- ## [0.0.12](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.11...@gmcb/cli@0.0.12) (2025-02-18)
87
-
88
- **Note:** Version bump only for package @gmcb/cli
89
-
90
-
91
-
92
-
93
-
94
- ## [0.0.11](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.10...@gmcb/cli@0.0.11) (2025-02-18)
95
-
96
-
97
- ### Bug Fixes
98
-
99
- * 正在构建时切换分支导致发布环境错误 ([f024ddb](http://10.10.200.92:8090/gmcb/front-end/commits/f024ddba996fbc48163e4ff5d49c9490058a5361))
100
-
101
-
102
-
103
-
104
-
105
- ## [0.0.10](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.9...@gmcb/cli@0.0.10) (2025-02-08)
106
-
107
-
108
- ### Bug Fixes
109
-
110
- * hbuilderx未启动时无提示 ([5eb1ccc](http://10.10.200.92:8090/gmcb/front-end/commits/5eb1ccc2e6854dae4cf32aa5de81676e0a568f33))
111
-
112
-
113
-
114
-
115
-
116
-
117
- ## [0.0.9](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.8...@gmcb/cli@0.0.9) (2025-02-05)
118
-
119
- **Note:** Version bump only for package @gmcb/cli
120
-
121
-
122
-
123
-
124
-
125
- ## [0.0.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.7...@gmcb/cli@0.0.8) (2025-02-05)
126
-
127
- **Note:** Version bump only for package @gmcb/cli
128
-
129
-
130
-
131
-
132
-
133
- ## [0.0.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.6...@gmcb/cli@0.0.7) (2025-02-04)
134
-
135
- **Note:** Version bump only for package @gmcb/cli
136
-
137
-
138
-
139
-
140
-
141
-
142
- ## [0.0.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.5...@gmcb/cli@0.0.6) (2025-02-04)
143
-
144
- **Note:** Version bump only for package @gmcb/cli
145
-
146
-
147
-
148
-
149
-
150
- ## [0.0.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.4...@gmcb/cli@0.0.5) (2025-02-04)
151
-
152
- **Note:** Version bump only for package @gmcb/cli
153
-
154
-
155
-
156
-
157
-
158
- ## [0.0.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.3...@gmcb/cli@0.0.4) (2025-02-04)
159
-
160
- **Note:** Version bump only for package @gmcb/cli
161
-
162
-
163
-
164
-
165
-
166
-
167
- ## [0.0.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.2...@gmcb/cli@0.0.3) (2025-02-02)
168
-
169
- **Note:** Version bump only for package @gmcb/cli
170
-
171
-
172
-
173
-
174
-
175
- ## [0.0.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.1...@gmcb/cli@0.0.2) (2025-02-02)
176
-
177
- **Note:** Version bump only for package @gmcb/cli
178
-
179
-
180
-
181
-
182
-
183
-
184
- ## [0.0.1](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.0-alpha.0...@gmcb/cli@0.0.1) (2025-02-02)
185
-
6
+ ## [0.1.10](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.1.9...@gmcb/cli@0.1.10) (2025-10-06)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.1.9](https://git.keeprisk.cn/gmcb/front-end/compare/@gmcb/cli@0.1.8...@gmcb/cli@0.1.9) (2025-08-17)
15
+
16
+ **Note:** Version bump only for package @gmcb/cli
17
+
18
+
19
+
20
+
21
+
22
+
23
+ ## [0.1.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.7...@gmcb/cli@0.1.8) (2025-04-09)
24
+
25
+ **Note:** Version bump only for package @gmcb/cli
26
+
27
+
28
+
29
+
30
+
31
+ ## [0.1.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.6...@gmcb/cli@0.1.7) (2025-04-08)
32
+
33
+ **Note:** Version bump only for package @gmcb/cli
34
+
35
+
36
+
37
+
38
+
39
+
40
+ ## [0.1.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.5...@gmcb/cli@0.1.6) (2025-02-25)
41
+
42
+ **Note:** Version bump only for package @gmcb/cli
43
+
44
+
45
+
46
+
47
+
48
+ ## [0.1.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.4...@gmcb/cli@0.1.5) (2025-02-24)
49
+
50
+ **Note:** Version bump only for package @gmcb/cli
51
+
52
+
53
+
54
+
55
+
56
+ ## [0.1.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.3...@gmcb/cli@0.1.4) (2025-02-23)
57
+
58
+ **Note:** Version bump only for package @gmcb/cli
59
+
60
+
61
+
62
+
63
+
64
+ ## [0.1.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.2...@gmcb/cli@0.1.3) (2025-02-23)
65
+
66
+
67
+ ### Bug Fixes
68
+
69
+ * 构建其他项目环境不正确 ([bf3329a](http://10.10.200.92:8090/gmcb/front-end/commits/bf3329afb1d61cd5cc1d6ffbec8e6a8f2ed77e60))
70
+
71
+
72
+
73
+
74
+
75
+ ## [0.1.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.1...@gmcb/cli@0.1.2) (2025-02-23)
76
+
77
+ **Note:** Version bump only for package @gmcb/cli
78
+
79
+
80
+
81
+
82
+
83
+ ## [0.1.1](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.0...@gmcb/cli@0.1.1) (2025-02-23)
84
+
85
+ **Note:** Version bump only for package @gmcb/cli
86
+
87
+
88
+
89
+
90
+
91
+ # [0.1.0](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.12...@gmcb/cli@0.1.0) (2025-02-23)
92
+
93
+
94
+ ### Features
95
+
96
+ * 新增复制命令 ([ab5e74d](http://10.10.200.92:8090/gmcb/front-end/commits/ab5e74d6236d4b57c1642c3e1abc9da23cb63129))
97
+ * 新增构建桌面应用 ([c1e13cc](http://10.10.200.92:8090/gmcb/front-end/commits/c1e13cc0aa0770be95599f1ab7ad0fa860487cec))
98
+
99
+
100
+
101
+
102
+
103
+ ## [0.0.12](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.11...@gmcb/cli@0.0.12) (2025-02-18)
104
+
105
+ **Note:** Version bump only for package @gmcb/cli
106
+
107
+
108
+
109
+
110
+
111
+ ## [0.0.11](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.10...@gmcb/cli@0.0.11) (2025-02-18)
112
+
113
+
114
+ ### Bug Fixes
115
+
116
+ * 正在构建时切换分支导致发布环境错误 ([f024ddb](http://10.10.200.92:8090/gmcb/front-end/commits/f024ddba996fbc48163e4ff5d49c9490058a5361))
117
+
118
+
119
+
120
+
121
+
122
+ ## [0.0.10](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.9...@gmcb/cli@0.0.10) (2025-02-08)
123
+
124
+
125
+ ### Bug Fixes
126
+
127
+ * hbuilderx未启动时无提示 ([5eb1ccc](http://10.10.200.92:8090/gmcb/front-end/commits/5eb1ccc2e6854dae4cf32aa5de81676e0a568f33))
128
+
129
+
130
+
131
+
132
+
133
+
134
+ ## [0.0.9](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.8...@gmcb/cli@0.0.9) (2025-02-05)
135
+
136
+ **Note:** Version bump only for package @gmcb/cli
137
+
138
+
139
+
140
+
141
+
142
+ ## [0.0.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.7...@gmcb/cli@0.0.8) (2025-02-05)
143
+
144
+ **Note:** Version bump only for package @gmcb/cli
145
+
146
+
147
+
148
+
149
+
150
+ ## [0.0.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.6...@gmcb/cli@0.0.7) (2025-02-04)
151
+
152
+ **Note:** Version bump only for package @gmcb/cli
153
+
154
+
155
+
156
+
157
+
158
+
159
+ ## [0.0.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.5...@gmcb/cli@0.0.6) (2025-02-04)
160
+
161
+ **Note:** Version bump only for package @gmcb/cli
162
+
163
+
164
+
165
+
166
+
167
+ ## [0.0.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.4...@gmcb/cli@0.0.5) (2025-02-04)
168
+
169
+ **Note:** Version bump only for package @gmcb/cli
170
+
171
+
172
+
173
+
174
+
175
+ ## [0.0.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.3...@gmcb/cli@0.0.4) (2025-02-04)
176
+
177
+ **Note:** Version bump only for package @gmcb/cli
178
+
179
+
180
+
181
+
182
+
183
+
184
+ ## [0.0.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.2...@gmcb/cli@0.0.3) (2025-02-02)
185
+
186
+ **Note:** Version bump only for package @gmcb/cli
187
+
188
+
189
+
190
+
191
+
192
+ ## [0.0.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.1...@gmcb/cli@0.0.2) (2025-02-02)
193
+
194
+ **Note:** Version bump only for package @gmcb/cli
195
+
196
+
197
+
198
+
199
+
200
+
201
+ ## [0.0.1](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.0-alpha.0...@gmcb/cli@0.0.1) (2025-02-02)
202
+
186
203
  **Note:** Version bump only for package @gmcb/cli
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 aniu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,14 +1,14 @@
1
- # @gmcb/cli
2
-
3
- 工茂草本前端命令行工具
4
-
5
- ## 安装
6
-
7
- ```
8
- npm i @gmcb/cli -g
9
- ```
10
-
11
- ## 使用
12
- ```
13
- gmcb build
1
+ # @gmcb/cli
2
+
3
+ 工茂草本前端命令行工具
4
+
5
+ ## 安装
6
+
7
+ ```
8
+ npm i @gmcb/cli -g
9
+ ```
10
+
11
+ ## 使用
12
+ ```
13
+ gmcb build
14
14
  ```
package/lib/bin.js CHANGED
@@ -78,6 +78,8 @@ program
78
78
  .option(...commands_1.hbuilderxCli)
79
79
  .option(...commands_1.weixinCli)
80
80
  .option(...commands_1.alipayCli)
81
+ .option(...commands_1.cosSecretid)
82
+ .option(...commands_1.cosSecretkey)
81
83
  .option(...commands_1.branch)
82
84
  .action(config_1.default);
83
85
  program.parse();
@@ -23,6 +23,8 @@ export declare const res: readonly ["--res", "是否构建移动应用本地资
23
23
  export declare const hbuilderxCli: readonly ["--cli.hbuilderx <cli-path>", "HbuilderX Cli路径"];
24
24
  export declare const weixinCli: readonly ["--cli.weixin <cli-path>", "微信开发者工具 Cli路径"];
25
25
  export declare const alipayCli: readonly ["--cli.alipay <cli-path>", "支付宝开发者工具 Cli路径"];
26
+ export declare const cosSecretid: readonly ["--cos.secretid <secretid>", "设置腾讯云上传秘钥ID"];
27
+ export declare const cosSecretkey: readonly ["--cos.secretkey <secretkey>", "设置腾讯云上传秘钥KEY"];
26
28
  export interface Options {
27
29
  template?: string;
28
30
  branch?: string | boolean;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.alipayCli = exports.weixinCli = exports.hbuilderxCli = exports.res = exports.wgt = exports.custom = exports.zip = exports.linux = exports.mac = exports.win = exports.link = exports.path = exports.name = exports.clean = exports.ignore = exports.dest = exports.source = exports.branch = exports.env = exports.compiler = exports.project = exports.platform = exports.template = exports.version = void 0;
3
+ exports.cosSecretkey = exports.cosSecretid = exports.alipayCli = exports.weixinCli = exports.hbuilderxCli = exports.res = exports.wgt = exports.custom = exports.zip = exports.linux = exports.mac = exports.win = exports.link = exports.path = exports.name = exports.clean = exports.ignore = exports.dest = exports.source = exports.branch = exports.env = exports.compiler = exports.project = exports.platform = exports.template = exports.version = void 0;
4
4
  exports.version = ['-v, --version', '输出版本号'];
5
5
  exports.template = ['-t, --template <template-name>', '模版仓库名称'];
6
6
  exports.platform = ['-p, --platform <platform-name>', '编译平台,默认h5', 'h5'];
@@ -25,3 +25,5 @@ exports.res = ['--res', '是否构建移动应用本地资源'];
25
25
  exports.hbuilderxCli = ['--cli.hbuilderx <cli-path>', 'HbuilderX Cli路径'];
26
26
  exports.weixinCli = ['--cli.weixin <cli-path>', '微信开发者工具 Cli路径'];
27
27
  exports.alipayCli = ['--cli.alipay <cli-path>', '支付宝开发者工具 Cli路径'];
28
+ exports.cosSecretid = ['--cos.secretid <secretid>', '设置腾讯云上传秘钥ID'];
29
+ exports.cosSecretkey = ['--cos.secretkey <secretkey>', '设置腾讯云上传秘钥KEY'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "工茂草本前端命令行工具",
5
5
  "author": "yinjiazeng@163.com",
6
6
  "license": "MIT",
@@ -53,5 +53,6 @@
53
53
  "@types/inquirer": "^9.0.7",
54
54
  "@types/rimraf": "^4.0.5",
55
55
  "@types/user-home": "^2.0.2"
56
- }
56
+ },
57
+ "gitHead": "b573cc88a1a2217221bd80ec9120f0ecd2a488ad"
57
58
  }
package/schema.json CHANGED
@@ -1,254 +1,292 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema",
3
- "type": "object",
4
- "properties": {
5
- "branch": {
6
- "type": ["boolean", "string"],
7
- "description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
8
- },
9
- "cli": {
10
- "type": "object",
11
- "description": "cli配置",
12
- "properties": {
13
- "hbuilderx": {
14
- "type": "string",
15
- "description": "hbuilderx cli路径"
16
- }
17
- }
18
- },
19
- "cos": {
20
- "type": "object",
21
- "description": "腾讯云对象存储配置",
22
- "properties": {
23
- "secretid": {
24
- "type": "string",
25
- "description": "秘钥id"
26
- },
27
- "secretkey": {
28
- "type": "string",
29
- "description": "秘钥key"
30
- },
31
- "bucket": {
32
- "type": "string",
33
- "description": "存储桶名称"
34
- },
35
- "region": {
36
- "type": "string",
37
- "description": "所属地域,例如ap-nanjing"
38
- },
39
- "path": {
40
- "type": "string",
41
- "description": "上传远程目录,默认/"
42
- }
43
- },
44
- "required": ["bucket", "region"]
45
- },
46
- "app": {
47
- "type": "object",
48
- "description": "app配置",
49
- "properties": {
50
- "iscustom": {
51
- "type": "boolean",
52
- "description": "是否使用自定义基座"
53
- },
54
- "safemode": {
55
- "type": "boolean",
56
- "description": "是否为安心打包"
57
- },
58
- "isconfusion": {
59
- "type": "boolean",
60
- "description": "是否对配置的js/nvue文件进行原生混淆"
61
- },
62
- "splashads": {
63
- "type": "boolean",
64
- "description": "是否开启开屏广告"
65
- },
66
- "rpads": {
67
- "type": "boolean",
68
- "description": "是否开启悬浮红包广告"
69
- },
70
- "pushads": {
71
- "type": "boolean",
72
- "description": "是否开启推送广告"
73
- },
74
- "exchange": {
75
- "type": "boolean",
76
- "description": "是否加入换量联盟"
77
- },
78
- "android": {
79
- "type": "object",
80
- "description": "android配置",
81
- "properties": {
82
- "packagename": {
83
- "type": "string",
84
- "description": "包名"
85
- },
86
- "androidpacktype": {
87
- "type": "integer",
88
- "description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
89
- },
90
- "certalias": {
91
- "type": "string",
92
- "description": "打包证书别名"
93
- },
94
- "certfile": {
95
- "type": "string",
96
- "description": "打包证书文件路径"
97
- },
98
- "certpassword": {
99
- "type": "string",
100
- "description": "打包证书密码"
101
- }
102
- },
103
- "required": ["packagename", "androidpacktype", "certalias", "certfile", "certpassword"]
104
- },
105
- "ios": {
106
- "type": "object",
107
- "description": "ios配置",
108
- "properties": {
109
- "bundle": {
110
- "type": "string",
111
- "description": "包名"
112
- },
113
- "supporteddevice": {
114
- "type": "string",
115
- "description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
116
- },
117
- "profile": {
118
- "type": "string",
119
- "description": "使用自定义证书打包的profile文件路径"
120
- },
121
- "certfile": {
122
- "type": "string",
123
- "description": "使用自定义证书打包的p12文件路径"
124
- },
125
- "certpassword": {
126
- "type": "string",
127
- "description": "使用自定义证书打包的证书密码"
128
- }
129
- },
130
- "required": ["bundle", "supporteddevice", "profile", "certfile", "certpassword"]
131
- },
132
- "wgt": {
133
- "type": "object",
134
- "description": "移动应用热更新资源配置",
135
- "properties": {
136
- "name": {
137
- "type": "string",
138
- "description": "导出文件名称,例如app.wgt,默认为[appid].wgt"
139
- },
140
- "path": {
141
- "type": "string",
142
- "description": "导出路径,默认unpackage/release"
143
- }
144
- }
145
- },
146
- "zip": {
147
- "type": "object",
148
- "description": "桌面应用热更新资源配置",
149
- "properties": {
150
- "name": {
151
- "type": "string",
152
- "description": "导出文件名称,例如app.zip,默认为[name].zip"
153
- },
154
- "path": {
155
- "type": "string",
156
- "description": "导出路径,默认unpackage/release"
157
- },
158
- "source": {
159
- "type": "string",
160
- "description": "资源路径,默认dist/win-unpacked/resources"
161
- }
162
- }
163
- },
164
- "custom": {
165
- "type": "object",
166
- "description": "自定义基座配置",
167
- "properties": {
168
- "android": {
169
- "type": "object",
170
- "description": "android配置",
171
- "properties": {
172
- "packagename": {
173
- "type": "string",
174
- "description": "包名"
175
- },
176
- "androidpacktype": {
177
- "type": "integer",
178
- "description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
179
- },
180
- "certalias": {
181
- "type": "string",
182
- "description": "打包证书别名"
183
- },
184
- "certfile": {
185
- "type": "string",
186
- "description": "打包证书文件路径"
187
- },
188
- "certpassword": {
189
- "type": "string",
190
- "description": "打包证书密码"
191
- }
192
- }
193
- },
194
- "ios": {
195
- "type": "object",
196
- "description": "ios配置",
197
- "properties": {
198
- "bundle": {
199
- "type": "string",
200
- "description": "包名"
201
- },
202
- "supporteddevice": {
203
- "type": "string",
204
- "description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
205
- },
206
- "profile": {
207
- "type": "string",
208
- "description": "使用自定义证书打包的profile文件路径"
209
- },
210
- "certfile": {
211
- "type": "string",
212
- "description": "使用自定义证书打包的p12文件路径"
213
- },
214
- "certpassword": {
215
- "type": "string",
216
- "description": "使用自定义证书打包的证书密码"
217
- }
218
- },
219
- "required": ["profile", "certfile"]
220
- }
221
- }
222
- }
223
- }
224
- },
225
- "mp": {
226
- "type": "object",
227
- "description": "小程序配置",
228
- "properties": {
229
- "weixin": {
230
- "type": "object",
231
- "description": "微信小程序配置",
232
- "properties": {
233
- "privatekey": {
234
- "type": "string",
235
- "description": "代码上传密钥文件"
236
- }
237
- },
238
- "required": ["privatekey"]
239
- },
240
- "alipay": {
241
- "type": "object",
242
- "description": "支付宝小程序配置",
243
- "properties": {
244
- "privatekey": {
245
- "type": "string",
246
- "description": "代码上传密钥文件"
247
- }
248
- },
249
- "required": ["privatekey"]
250
- }
251
- }
252
- }
253
- }
254
- }
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "branch": {
6
+ "type": ["boolean", "string"],
7
+ "description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
8
+ },
9
+ "cli": {
10
+ "type": "object",
11
+ "description": "cli配置",
12
+ "properties": {
13
+ "hbuilderx": {
14
+ "type": "string",
15
+ "description": "hbuilderx cli路径"
16
+ }
17
+ }
18
+ },
19
+ "user": {
20
+ "type": "object",
21
+ "description": "管理平台配置",
22
+ "properties": {
23
+ "username": {
24
+ "type": "string",
25
+ "description": "登录用户名"
26
+ },
27
+ "password": {
28
+ "type": "string",
29
+ "description": "登录密码"
30
+ }
31
+ },
32
+ "required": ["username", "password"]
33
+ },
34
+ "version": {
35
+ "type": "object",
36
+ "description": "版本管理配置",
37
+ "properties": {
38
+ "brandName": {
39
+ "type": "string",
40
+ "description": "品牌名称"
41
+ },
42
+ "type": {
43
+ "type": "number",
44
+ "description": "应用类型"
45
+ },
46
+ "status": {
47
+ "type": "number",
48
+ "description": "更新状态"
49
+ },
50
+ "platform": {
51
+ "type": "number",
52
+ "description": "平台类型"
53
+ }
54
+ },
55
+ "required": ["brandName", "appName", "type", "status", "platform"]
56
+ },
57
+ "cos": {
58
+ "type": "object",
59
+ "description": "腾讯云对象存储配置",
60
+ "properties": {
61
+ "secretid": {
62
+ "type": "string",
63
+ "description": "秘钥id"
64
+ },
65
+ "secretkey": {
66
+ "type": "string",
67
+ "description": "秘钥key"
68
+ },
69
+ "bucket": {
70
+ "type": "string",
71
+ "description": "存储桶名称"
72
+ },
73
+ "region": {
74
+ "type": "string",
75
+ "description": "所属地域,例如ap-nanjing"
76
+ },
77
+ "path": {
78
+ "type": "string",
79
+ "description": "上传远程目录,默认/"
80
+ }
81
+ },
82
+ "required": ["bucket", "region"]
83
+ },
84
+ "app": {
85
+ "type": "object",
86
+ "description": "app配置",
87
+ "properties": {
88
+ "iscustom": {
89
+ "type": "boolean",
90
+ "description": "是否使用自定义基座"
91
+ },
92
+ "safemode": {
93
+ "type": "boolean",
94
+ "description": "是否为安心打包"
95
+ },
96
+ "isconfusion": {
97
+ "type": "boolean",
98
+ "description": "是否对配置的js/nvue文件进行原生混淆"
99
+ },
100
+ "splashads": {
101
+ "type": "boolean",
102
+ "description": "是否开启开屏广告"
103
+ },
104
+ "rpads": {
105
+ "type": "boolean",
106
+ "description": "是否开启悬浮红包广告"
107
+ },
108
+ "pushads": {
109
+ "type": "boolean",
110
+ "description": "是否开启推送广告"
111
+ },
112
+ "exchange": {
113
+ "type": "boolean",
114
+ "description": "是否加入换量联盟"
115
+ },
116
+ "android": {
117
+ "type": "object",
118
+ "description": "android配置",
119
+ "properties": {
120
+ "packagename": {
121
+ "type": "string",
122
+ "description": "包名"
123
+ },
124
+ "androidpacktype": {
125
+ "type": "integer",
126
+ "description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
127
+ },
128
+ "certalias": {
129
+ "type": "string",
130
+ "description": "打包证书别名"
131
+ },
132
+ "certfile": {
133
+ "type": "string",
134
+ "description": "打包证书文件路径"
135
+ },
136
+ "certpassword": {
137
+ "type": "string",
138
+ "description": "打包证书密码"
139
+ }
140
+ },
141
+ "required": ["packagename", "androidpacktype", "certalias", "certfile", "certpassword"]
142
+ },
143
+ "ios": {
144
+ "type": "object",
145
+ "description": "ios配置",
146
+ "properties": {
147
+ "bundle": {
148
+ "type": "string",
149
+ "description": "包名"
150
+ },
151
+ "supporteddevice": {
152
+ "type": "string",
153
+ "description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
154
+ },
155
+ "profile": {
156
+ "type": "string",
157
+ "description": "使用自定义证书打包的profile文件路径"
158
+ },
159
+ "certfile": {
160
+ "type": "string",
161
+ "description": "使用自定义证书打包的p12文件路径"
162
+ },
163
+ "certpassword": {
164
+ "type": "string",
165
+ "description": "使用自定义证书打包的证书密码"
166
+ }
167
+ },
168
+ "required": ["bundle", "supporteddevice", "profile", "certfile", "certpassword"]
169
+ },
170
+ "wgt": {
171
+ "type": "object",
172
+ "description": "移动应用热更新资源配置",
173
+ "properties": {
174
+ "name": {
175
+ "type": "string",
176
+ "description": "导出文件名称,例如app.wgt,默认为[appid].wgt"
177
+ },
178
+ "path": {
179
+ "type": "string",
180
+ "description": "导出路径,默认unpackage/release"
181
+ }
182
+ }
183
+ },
184
+ "zip": {
185
+ "type": "object",
186
+ "description": "桌面应用热更新资源配置",
187
+ "properties": {
188
+ "name": {
189
+ "type": "string",
190
+ "description": "导出文件名称,例如app.zip,默认为[name].zip"
191
+ },
192
+ "path": {
193
+ "type": "string",
194
+ "description": "导出路径,默认unpackage/release"
195
+ },
196
+ "source": {
197
+ "type": "string",
198
+ "description": "资源路径,默认dist/win-unpacked/resources"
199
+ }
200
+ }
201
+ },
202
+ "custom": {
203
+ "type": "object",
204
+ "description": "自定义基座配置",
205
+ "properties": {
206
+ "android": {
207
+ "type": "object",
208
+ "description": "android配置",
209
+ "properties": {
210
+ "packagename": {
211
+ "type": "string",
212
+ "description": "包名"
213
+ },
214
+ "androidpacktype": {
215
+ "type": "integer",
216
+ "description": "打包类型,0 使用自有证书 1 使用公共证书 2 使用DCloud老版证书"
217
+ },
218
+ "certalias": {
219
+ "type": "string",
220
+ "description": "打包证书别名"
221
+ },
222
+ "certfile": {
223
+ "type": "string",
224
+ "description": "打包证书文件路径"
225
+ },
226
+ "certpassword": {
227
+ "type": "string",
228
+ "description": "打包证书密码"
229
+ }
230
+ }
231
+ },
232
+ "ios": {
233
+ "type": "object",
234
+ "description": "ios配置",
235
+ "properties": {
236
+ "bundle": {
237
+ "type": "string",
238
+ "description": "包名"
239
+ },
240
+ "supporteddevice": {
241
+ "type": "string",
242
+ "description": "打包支持的设备类型,值有\"iPhone\",\"iPad\" 如果要打多个逗号隔开打包平台"
243
+ },
244
+ "profile": {
245
+ "type": "string",
246
+ "description": "使用自定义证书打包的profile文件路径"
247
+ },
248
+ "certfile": {
249
+ "type": "string",
250
+ "description": "使用自定义证书打包的p12文件路径"
251
+ },
252
+ "certpassword": {
253
+ "type": "string",
254
+ "description": "使用自定义证书打包的证书密码"
255
+ }
256
+ },
257
+ "required": ["profile", "certfile"]
258
+ }
259
+ }
260
+ }
261
+ }
262
+ },
263
+ "mp": {
264
+ "type": "object",
265
+ "description": "小程序配置",
266
+ "properties": {
267
+ "weixin": {
268
+ "type": "object",
269
+ "description": "微信小程序配置",
270
+ "properties": {
271
+ "privatekey": {
272
+ "type": "string",
273
+ "description": "代码上传密钥文件"
274
+ }
275
+ },
276
+ "required": ["privatekey"]
277
+ },
278
+ "alipay": {
279
+ "type": "object",
280
+ "description": "支付宝小程序配置",
281
+ "properties": {
282
+ "privatekey": {
283
+ "type": "string",
284
+ "description": "代码上传密钥文件"
285
+ }
286
+ },
287
+ "required": ["privatekey"]
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }