@gmcb/cli 0.4.0 → 0.4.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 +22 -4
- package/README.md +22 -44
- package/lib/actions/create.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
# Change Log
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [0.4.2](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.4.1...@gmcb/cli@0.4.2) (2026-06-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [0.4.1](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.3.4...@gmcb/cli@0.4.1) (2026-06-02)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
2
22
|
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
23
|
|
|
6
24
|
## [0.3.4](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.3.3...@gmcb/cli@0.3.4) (2026-04-30)
|
|
7
25
|
|
|
@@ -288,4 +306,4 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
288
306
|
|
|
289
307
|
## [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)
|
|
290
308
|
|
|
291
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
309
|
+
**Note:** Version bump only for package @gmcb/cli
|
package/README.md
CHANGED
|
@@ -1,44 +1,22 @@
|
|
|
1
|
-
# @gmcb/cli
|
|
2
|
-
|
|
3
|
-
工茂草本前端命令行工具
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
npm i @gmcb/cli -g
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
gmcb
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
gmcb skill sync
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
可选参数:
|
|
28
|
-
- `--skill.repo <repo-url>` - 指定技能仓库 Git 地址,覆盖默认配置
|
|
29
|
-
|
|
30
|
-
列出当前项目所有技能:
|
|
31
|
-
|
|
32
|
-
```
|
|
33
|
-
gmcb skill list
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
技能仓库地址可在 `uni.build.json` 中配置:
|
|
37
|
-
|
|
38
|
-
```json
|
|
39
|
-
{
|
|
40
|
-
"skill": {
|
|
41
|
-
"repo": "http://10.10.10.16/caoben/skill.git"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
```
|
|
1
|
+
# @gmcb/cli
|
|
2
|
+
|
|
3
|
+
工茂草本前端命令行工具
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i @gmcb/cli -g
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 命令总览
|
|
12
|
+
|
|
13
|
+
| 命令 | 描述 |
|
|
14
|
+
|---|---|
|
|
15
|
+
| `gmcb create` | 创建项目框架 |
|
|
16
|
+
| `gmcb dev` | 应用程序开发 |
|
|
17
|
+
| `gmcb build` | 应用程序构建 |
|
|
18
|
+
| `gmcb publish` | 应用程序发布 |
|
|
19
|
+
| `gmcb copy` | 复制资源到指定目录 |
|
|
20
|
+
| `gmcb config` | 配置管理 |
|
|
21
|
+
| `gmcb skill sync` | 同步技能到本地项目 |
|
|
22
|
+
| `gmcb skill list` | 列出当前项目所有技能 |
|
package/lib/actions/create.js
CHANGED
|
@@ -101,7 +101,7 @@ async function default_1(...args) {
|
|
|
101
101
|
const pkgPath = (0, path_1.join)(dest, 'package.json');
|
|
102
102
|
if ((0, fs_1.existsSync)(pkgPath)) {
|
|
103
103
|
const pkg = await fsExtra.readJson(pkgPath);
|
|
104
|
-
pkg.name =
|
|
104
|
+
pkg.name = (0, path_1.basename)(dest);
|
|
105
105
|
await fsExtra.writeJson(pkgPath, pkg, { spaces: 2 });
|
|
106
106
|
}
|
|
107
107
|
copySpinner.succeed('项目创建完成,请执行以下命令:');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmcb/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.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": "
|
|
57
|
+
"gitHead": "b54788e78a349581386b6eecf98ec9bcf5bc0861"
|
|
58
58
|
}
|