@gmcb/cli 0.2.0 → 0.2.2

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,6 +3,22 @@
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.2.2](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.2.1...@gmcb/cli@0.2.2) (2025-10-06)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.2.1](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.2.0...@gmcb/cli@0.2.1) (2025-10-06)
15
+
16
+ **Note:** Version bump only for package @gmcb/cli
17
+
18
+
19
+
20
+
21
+
6
22
  # [0.2.0](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.1.10...@gmcb/cli@0.2.0) (2025-10-06)
7
23
 
8
24
 
@@ -42,9 +42,10 @@ interface Mp {
42
42
  privatekey?: string;
43
43
  };
44
44
  }
45
- interface Version {
45
+ interface Publish {
46
46
  brand: string;
47
47
  type: string;
48
+ path: string;
48
49
  status?: string;
49
50
  platform?: string;
50
51
  }
@@ -60,7 +61,7 @@ export interface Config extends BaseConfig {
60
61
  app?: App;
61
62
  mp?: Mp;
62
63
  h5?: H5;
63
- version?: Version;
64
+ pub?: Publish;
64
65
  }
65
66
  export declare function getConfig(): BaseConfig;
66
67
  export declare function getLocalConfig(): Config;
@@ -25,9 +25,9 @@ async function default_1(...args) {
25
25
  if (!start) {
26
26
  process.exit(1);
27
27
  }
28
- const version = { platform: 0, status: 0 };
28
+ const pub = { platform: 0, status: 0 };
29
29
  if (opts.platform?.startsWith('app')) {
30
- if (!config.version?.platform) {
30
+ if (!config.pub?.platform) {
31
31
  const { platform } = await inquirer_1.default.prompt([
32
32
  {
33
33
  type: 'list',
@@ -62,9 +62,9 @@ async function default_1(...args) {
62
62
  : [],
63
63
  },
64
64
  ]);
65
- version.platform = platform;
65
+ pub.platform = platform;
66
66
  }
67
- if (!config.version?.status) {
67
+ if (!config.pub?.status) {
68
68
  const { status } = await inquirer_1.default.prompt([
69
69
  {
70
70
  type: 'list',
@@ -86,7 +86,7 @@ async function default_1(...args) {
86
86
  ],
87
87
  },
88
88
  ]);
89
- version.status = status;
89
+ pub.status = status;
90
90
  }
91
91
  }
92
92
  const { update } = await inquirer_1.default.prompt({
@@ -124,11 +124,11 @@ async function default_1(...args) {
124
124
  if (!['dev', 'sit', 'uat', 'pre', 'prod'].includes(commands[2].split('=')[1])) {
125
125
  utils_1.log.error('没有检测到需要发布的环境,无法完成上传,请切换到dev/sit/uat/pre/master分支再次执行脚本,或者您可以选择手动上传!');
126
126
  }
127
- if (version.platform) {
128
- commands.push(`VERSION_PLATFORM=${version.platform}`);
127
+ if (pub.platform) {
128
+ commands.push(`PUBLISH_PLATFORM=${pub.platform}`);
129
129
  }
130
- if (version.status) {
131
- commands.push(`VERSION_STATUS=${version.status}`);
130
+ if (pub.status) {
131
+ commands.push(`PUBLISH_STATUS=${pub.status}`);
132
132
  }
133
133
  commands.push('node');
134
134
  const scriptPath = (0, path_1.join)(utils_1.COMMAND_PATH, 'node_modules/@gmcb/publish/lib');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "工茂草本前端命令行工具",
5
5
  "author": "yinjiazeng@163.com",
6
6
  "license": "MIT",
@@ -54,5 +54,5 @@
54
54
  "@types/rimraf": "^4.0.5",
55
55
  "@types/user-home": "^2.0.2"
56
56
  },
57
- "gitHead": "3377b9be9f824cf7fd2d93370d530dac0e7b90c5"
57
+ "gitHead": "22aa0bcf39f4015d374b777631c02a32c4ee4c64"
58
58
  }
package/schema.json CHANGED
@@ -16,7 +16,7 @@
16
16
  }
17
17
  }
18
18
  },
19
- "user": {
19
+ "web": {
20
20
  "type": "object",
21
21
  "description": "管理平台配置",
22
22
  "properties": {
@@ -31,11 +31,11 @@
31
31
  },
32
32
  "required": ["username", "password"]
33
33
  },
34
- "version": {
34
+ "pub": {
35
35
  "type": "object",
36
- "description": "版本管理配置",
36
+ "description": "发布配置",
37
37
  "properties": {
38
- "brandName": {
38
+ "brand": {
39
39
  "type": "string",
40
40
  "description": "品牌名称"
41
41
  },
@@ -50,9 +50,13 @@
50
50
  "platform": {
51
51
  "type": "number",
52
52
  "description": "平台类型"
53
+ },
54
+ "path": {
55
+ "type": "string",
56
+ "description": "远程路径"
53
57
  }
54
58
  },
55
- "required": ["brandName", "type"]
59
+ "required": ["brand", "type", "path"]
56
60
  },
57
61
  "cos": {
58
62
  "type": "object",