@gmcb/cli 0.7.6 → 0.7.8
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 +16 -0
- package/README.md +1 -0
- package/lib/actions/publish.js +1 -1
- package/lib/scripts/publish.js +1 -1
- package/lib/utils/config.d.ts +1 -0
- package/package.json +2 -3
- package/schema.json +8 -4
- package/LICENSE +0 -21
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.8](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.7.7...@gmcb/cli@0.7.8) (2026-07-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.7.7](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.7.6...@gmcb/cli@0.7.7) (2026-07-09)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [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
23
|
|
|
8
24
|
**Note:** Version bump only for package @gmcb/cli
|
package/README.md
CHANGED
|
@@ -87,6 +87,7 @@ gmcb publish -p app --wgt -a
|
|
|
87
87
|
|
|
88
88
|
`uni.build.json` 中可配置以下字段:
|
|
89
89
|
|
|
90
|
+
- `auto`:是否自动发布,跳过所有确认提示。支持 `true` / `1`(自动发布)或 `false` / `0` / 不传(交互确认)。CLI 传入 `--auto` 时会覆盖此配置
|
|
90
91
|
- `install`:安装依赖的命令,默认为 `npm install`,可配置为 `pnpm install`、`yarn` 等
|
|
91
92
|
- `pub`:基础发布配置(brand、type、status、platform、path)
|
|
92
93
|
- `publish`:魔方发布配置(brandName、brandId、channel、updateType、versionDesc、publishType、platform、path),配置后走魔方发布流程
|
package/lib/actions/publish.js
CHANGED
|
@@ -11,7 +11,7 @@ const config_1 = require("../utils/config");
|
|
|
11
11
|
async function default_1(...args) {
|
|
12
12
|
const opts = args[0];
|
|
13
13
|
const isPublishFlow = !!config_1.CONFIG_DATA.publish;
|
|
14
|
-
const isAuto = opts.auto;
|
|
14
|
+
const isAuto = opts.auto || !!config_1.CONFIG_DATA.auto;
|
|
15
15
|
const pub = { platform: 0, status: 0, updateType: 0, updateMode: 0 };
|
|
16
16
|
let install = true;
|
|
17
17
|
if (!isAuto) {
|
package/lib/scripts/publish.js
CHANGED
package/lib/utils/config.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmcb/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.8",
|
|
4
4
|
"description": "工茂草本前端命令行工具",
|
|
5
5
|
"author": "yinjiazeng@163.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,6 +58,5 @@
|
|
|
58
58
|
"@types/inquirer": "^9.0.7",
|
|
59
59
|
"@types/rimraf": "^4.0.5",
|
|
60
60
|
"@types/user-home": "^2.0.2"
|
|
61
|
-
}
|
|
62
|
-
"gitHead": "ddbee89228a142259af726e3d5408a69132a1980"
|
|
61
|
+
}
|
|
63
62
|
}
|
package/schema.json
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
3
|
"type": "object",
|
|
4
4
|
"properties": {
|
|
5
|
+
"auto": {
|
|
6
|
+
"type": ["boolean", "number"],
|
|
7
|
+
"description": "是否自动发布,跳过所有确认提示。true/1 自动发布,false/0 不自动发布。CLI 传入 --auto 时会覆盖此配置"
|
|
8
|
+
},
|
|
5
9
|
"branch": {
|
|
6
10
|
"type": ["boolean", "string"],
|
|
7
11
|
"description": "是否在分支下打包,true表示在当前分支下打包,字符串表示仅在该分支下打包"
|
|
@@ -77,10 +81,10 @@
|
|
|
77
81
|
"channel": {
|
|
78
82
|
"type": "number",
|
|
79
83
|
"description": "渠道类型"
|
|
80
|
-
},
|
|
81
|
-
"updateMode": {
|
|
82
|
-
"type": "number",
|
|
83
|
-
"description": "更新方式"
|
|
84
|
+
},
|
|
85
|
+
"updateMode": {
|
|
86
|
+
"type": "number",
|
|
87
|
+
"description": "更新方式"
|
|
84
88
|
},
|
|
85
89
|
"updateType": {
|
|
86
90
|
"type": "number",
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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.
|