@gmcb/cli 0.9.6 → 0.9.7

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,14 @@
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.9.7](http://10.10.10.16/caoben/front-end-tools/compare/@gmcb/cli@0.9.6...@gmcb/cli@0.9.7) (2026-11-05)
7
+
8
+ **Note:** Version bump only for package @gmcb/cli
9
+
10
+
11
+
12
+
13
+
6
14
  ## [0.9.6](http://10.10.10.16/caoben/front-end-tools/compare/@gmcb/cli@0.9.5...@gmcb/cli@0.9.6) (2026-11-04)
7
15
 
8
16
  **Note:** Version bump only for package @gmcb/cli
package/README.md CHANGED
@@ -254,3 +254,5 @@ gmcb image -s ./logo.png --width 2050 --height 1538 --left 500 --top 200 --bg '#
254
254
  gmcb copy -s ./dist/build/h5 -d ../electron/out/renderer/{package.appId}/
255
255
  gmcb copy -s ./dist/build/app -d ../android/app/src/main/assets/apps/{manifest.appid}/www/
256
256
  ```
257
+
258
+ `copy` 不会改写工程根目录的 `index.html`。混合布局工程(根目录 + `src` 镜像)中,src 入口的 `src/` 前缀由 `@gmcb/vite` 的 `transformIndexHtml` 插件在构建期补全。
@@ -37,8 +37,6 @@ async function default_1(...args) {
37
37
  const resolvedDest = (0, utils_1.resolvePlaceholder)(opts.dest, data);
38
38
  const sourcePath = (0, path_1.join)(utils_1.COMMAND_PATH, resolvedSource);
39
39
  const destPath = (0, path_1.join)(utils_1.COMMAND_PATH, resolvedDest);
40
- const srcPath = (0, path_1.join)(utils_1.COMMAND_PATH, 'src');
41
- const indexPath = (0, path_1.join)(utils_1.COMMAND_PATH, 'index.html');
42
40
  let ignore = [];
43
41
  if (opts.clean) {
44
42
  (0, fs_extra_1.removeSync)(destPath);
@@ -63,8 +61,10 @@ async function default_1(...args) {
63
61
  'buildenv',
64
62
  'license',
65
63
  'readme.md',
64
+ 'agents.md',
66
65
  'vite.config.js',
67
66
  'vite.config.ts',
67
+ 'uni.build.json',
68
68
  'tsconfig.json',
69
69
  'package.json',
70
70
  'package-lock.json',
@@ -88,12 +88,5 @@ async function default_1(...args) {
88
88
  }
89
89
  }
90
90
  });
91
- if (srcPath === destPath && utils_1.COMMAND_PATH === sourcePath) {
92
- if ((0, fs_1.existsSync)(indexPath)) {
93
- (0, fs_extra_1.writeFileSync)(indexPath, (0, fs_extra_1.readFileSync)(indexPath)
94
- .toString()
95
- .replace(/(=['"])\.?(\/main\.)/i, '$1/src$2'));
96
- }
97
- }
98
91
  spinner.stop();
99
92
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmcb/cli",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "工茂草本前端命令行工具",
5
5
  "author": "yinjiazeng@163.com",
6
6
  "license": "MIT",
@@ -58,5 +58,5 @@
58
58
  "@types/rimraf": "^4.0.5",
59
59
  "@types/user-home": "^2.0.2"
60
60
  },
61
- "gitHead": "2dd2ec551cda9a22e709e05f6e3ad5803551d762"
61
+ "gitHead": "f956db3be94b1fe42f1d313f27593f2eec5cb0e2"
62
62
  }