@gmcb/cli 0.7.4 → 0.7.6

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.7.6](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.7.5...@gmcb/cli@0.7.6) (2026-07-09)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.7.5](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.7.4...@gmcb/cli@0.7.5) (2026-07-09)
15
+
16
+ **Note:** Version bump only for package @gmcb/cli
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.7.4](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.7.3...@gmcb/cli@0.7.4) (2026-07-09)
7
23
 
8
24
  **Note:** Version bump only for package @gmcb/cli
@@ -4,7 +4,7 @@ export declare const template: readonly ["-t, --template <template-name>", "模
4
4
  export declare const platform: readonly ["-p, --platform <platform-name>", "编译平台,默认h5", "h5"];
5
5
  export declare const project: readonly ["-P, --project <project-name>", "HbuilderX工作台中的项目名称"];
6
6
  export declare const compiler: readonly ["-c, --compiler <compiler-name>", "构建工具,默认uni", "uni"];
7
- export declare const env: readonly ["-e, --env <env-name>", "构建环境,可选如dev/sit/uat/prod等,默认prod", "prod"];
7
+ export declare const env: readonly ["-e, --env <env-name>", "构建环境,可选如dev/sit/uat/prod等"];
8
8
  export declare const branch: readonly ["-b, --branch [branch-name]", "Git分支名称,仅在该分支下执行命令"];
9
9
  export declare const source: readonly ["-s, --source <source-path>", "资源路径"];
10
10
  export declare const dest: readonly ["-d, --dest <dest-path>", "目标路径"];
@@ -6,7 +6,7 @@ exports.template = ['-t, --template <template-name>', '模版仓库名称'];
6
6
  exports.platform = ['-p, --platform <platform-name>', '编译平台,默认h5', 'h5'];
7
7
  exports.project = ['-P, --project <project-name>', 'HbuilderX工作台中的项目名称'];
8
8
  exports.compiler = ['-c, --compiler <compiler-name>', '构建工具,默认uni', 'uni'];
9
- exports.env = ['-e, --env <env-name>', '构建环境,可选如dev/sit/uat/prod等,默认prod', 'prod'];
9
+ exports.env = ['-e, --env <env-name>', '构建环境,可选如dev/sit/uat/prod等'];
10
10
  exports.branch = ['-b, --branch [branch-name]', 'Git分支名称,仅在该分支下执行命令'];
11
11
  exports.source = ['-s, --source <source-path>', '资源路径'];
12
12
  exports.dest = ['-d, --dest <dest-path>', '目标路径'];
@@ -42,8 +42,9 @@ async function publish(options) {
42
42
  const filePath = (0, path_1.join)(const_1.COMMAND_PATH, appCfg?.path ?? options.path);
43
43
  const destName = `${versionName}.${versionCode}.${ext}`;
44
44
  const path = `${remotePath}/${destName}`;
45
+ const remoteUrl = `https://${bucket}.cos.${region}.myqcloud.com${`/${path}`.replace(/\/+/g, '/')}`;
45
46
  await new Promise((res) => {
46
- const spinner = (0, ora_1.default)(`正在上传${path}...`).start();
47
+ const spinner = (0, ora_1.default)(`资源正在上传...`).start();
47
48
  cos.putObject({
48
49
  Bucket: bucket,
49
50
  Region: region,
@@ -52,16 +53,16 @@ async function publish(options) {
52
53
  }, (err) => {
53
54
  spinner.stop();
54
55
  if (err) {
55
- spinner.fail(`上传失败,${err.message}`);
56
+ spinner.fail(`资源上传失败,${err.message}`);
56
57
  process.exit(1);
57
58
  }
58
59
  else {
59
60
  res();
60
- spinner.succeed(`${path}上传成功`);
61
+ spinner.succeed(`资源路径:${remoteUrl}`);
61
62
  }
62
63
  });
63
64
  });
64
- remoteUrls.push(`https://${bucket}.cos.${region}.myqcloud.com${`/${path}`.replace(/\/+/g, '/')}`);
65
+ remoteUrls.push(remoteUrl);
65
66
  }
66
67
  const spinner = (0, ora_1.default)('正在提交...').start();
67
68
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "工茂草本前端命令行工具",
5
5
  "author": "yinjiazeng@163.com",
6
6
  "license": "MIT",
@@ -59,5 +59,5 @@
59
59
  "@types/rimraf": "^4.0.5",
60
60
  "@types/user-home": "^2.0.2"
61
61
  },
62
- "gitHead": "eec287c5c332a287626860538cd6085e955f8315"
62
+ "gitHead": "ddbee89228a142259af726e3d5408a69132a1980"
63
63
  }