@gmcb/cli 0.2.4 → 0.3.1
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 +249 -229
- package/README.md +13 -13
- package/lib/actions/build.js +2 -1
- package/lib/actions/publish.js +5 -5
- package/lib/utils/function.d.ts +1 -0
- package/lib/utils/function.js +11 -0
- package/package.json +2 -2
- package/schema.json +33 -0
- package/LICENSE +0 -21
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.
|
|
6
|
+
## [0.3.1](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.3.0...@gmcb/cli@0.3.1) (2026-04-22)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @gmcb/cli
|
|
9
9
|
|
|
@@ -11,236 +11,256 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [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)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## [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)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
# [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)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Features
|
|
42
|
-
|
|
43
|
-
* update ([277c76d](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/commits/277c76dbd93e0896af0abb7632b8cde4235eb594))
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [0.1.10](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.1.9...@gmcb/cli@0.1.10) (2025-10-06)
|
|
50
|
-
|
|
51
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
## [0.1.9](https://git.keeprisk.cn/gmcb/front-end/compare/@gmcb/cli@0.1.8...@gmcb/cli@0.1.9) (2025-08-17)
|
|
58
|
-
|
|
59
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
## [0.1.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.7...@gmcb/cli@0.1.8) (2025-04-09)
|
|
67
|
-
|
|
68
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
## [0.1.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.6...@gmcb/cli@0.1.7) (2025-04-08)
|
|
75
|
-
|
|
76
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
## [0.1.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.5...@gmcb/cli@0.1.6) (2025-02-25)
|
|
84
|
-
|
|
85
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
## [0.1.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.4...@gmcb/cli@0.1.5) (2025-02-24)
|
|
92
|
-
|
|
93
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
## [0.1.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.3...@gmcb/cli@0.1.4) (2025-02-23)
|
|
100
|
-
|
|
101
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
## [0.1.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.2...@gmcb/cli@0.1.3) (2025-02-23)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### Bug Fixes
|
|
111
|
-
|
|
112
|
-
* 构建其他项目环境不正确 ([bf3329a](http://10.10.200.92:8090/gmcb/front-end/commits/bf3329afb1d61cd5cc1d6ffbec8e6a8f2ed77e60))
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
## [0.1.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.1...@gmcb/cli@0.1.2) (2025-02-23)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
## [0.1.1](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.0...@gmcb/cli@0.1.1) (2025-02-23)
|
|
127
|
-
|
|
128
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
# [0.1.0](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.12...@gmcb/cli@0.1.0) (2025-02-23)
|
|
14
|
+
# [0.3.0](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.2.4...@gmcb/cli@0.3.0) (2026-04-22)
|
|
135
15
|
|
|
136
16
|
|
|
137
17
|
### Features
|
|
138
18
|
|
|
139
|
-
*
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
## [0.
|
|
147
|
-
|
|
148
|
-
**Note:** Version bump only for package @gmcb/cli
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
## [0.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
19
|
+
* 优化使用体验 ([c82d28b](http://10.10.10.16/caoben/front-end/commits/c82d28ba920f857e5edc4865a7a88030b32230c1))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [0.2.4](http://10.10.10.16/caoben/front-end/compare/@gmcb/cli@0.2.3...@gmcb/cli@0.2.4) (2025-11-13)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## [0.2.3](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.2.2...@gmcb/cli@0.2.3) (2025-10-06)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## [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)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
## [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)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# [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)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Features
|
|
62
|
+
|
|
63
|
+
* update ([277c76d](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/commits/277c76dbd93e0896af0abb7632b8cde4235eb594))
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
## [0.1.10](https://git.keeprisk.cn/zhifuqihuang/platform-web/front-end/compare/@gmcb/cli@0.1.9...@gmcb/cli@0.1.10) (2025-10-06)
|
|
70
|
+
|
|
71
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## [0.1.9](https://git.keeprisk.cn/gmcb/front-end/compare/@gmcb/cli@0.1.8...@gmcb/cli@0.1.9) (2025-08-17)
|
|
78
|
+
|
|
79
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## [0.1.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.7...@gmcb/cli@0.1.8) (2025-04-09)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## [0.1.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.6...@gmcb/cli@0.1.7) (2025-04-08)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## [0.1.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.5...@gmcb/cli@0.1.6) (2025-02-25)
|
|
104
|
+
|
|
105
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## [0.1.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.4...@gmcb/cli@0.1.5) (2025-02-24)
|
|
112
|
+
|
|
113
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## [0.1.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.3...@gmcb/cli@0.1.4) (2025-02-23)
|
|
120
|
+
|
|
121
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## [0.1.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.2...@gmcb/cli@0.1.3) (2025-02-23)
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
### Bug Fixes
|
|
131
|
+
|
|
132
|
+
* 构建其他项目环境不正确 ([bf3329a](http://10.10.200.92:8090/gmcb/front-end/commits/bf3329afb1d61cd5cc1d6ffbec8e6a8f2ed77e60))
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## [0.1.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.1...@gmcb/cli@0.1.2) (2025-02-23)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## [0.1.1](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.1.0...@gmcb/cli@0.1.1) (2025-02-23)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
# [0.1.0](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.12...@gmcb/cli@0.1.0) (2025-02-23)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
### Features
|
|
158
|
+
|
|
159
|
+
* 新增复制命令 ([ab5e74d](http://10.10.200.92:8090/gmcb/front-end/commits/ab5e74d6236d4b57c1642c3e1abc9da23cb63129))
|
|
160
|
+
* 新增构建桌面应用 ([c1e13cc](http://10.10.200.92:8090/gmcb/front-end/commits/c1e13cc0aa0770be95599f1ab7ad0fa860487cec))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## [0.0.12](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.11...@gmcb/cli@0.0.12) (2025-02-18)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
## [0.0.11](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.10...@gmcb/cli@0.0.11) (2025-02-18)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Bug Fixes
|
|
178
|
+
|
|
179
|
+
* 正在构建时切换分支导致发布环境错误 ([f024ddb](http://10.10.200.92:8090/gmcb/front-end/commits/f024ddba996fbc48163e4ff5d49c9490058a5361))
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
## [0.0.10](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.9...@gmcb/cli@0.0.10) (2025-02-08)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Bug Fixes
|
|
189
|
+
|
|
190
|
+
* hbuilderx未启动时无提示 ([5eb1ccc](http://10.10.200.92:8090/gmcb/front-end/commits/5eb1ccc2e6854dae4cf32aa5de81676e0a568f33))
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
## [0.0.9](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.8...@gmcb/cli@0.0.9) (2025-02-05)
|
|
198
|
+
|
|
199
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
## [0.0.8](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.7...@gmcb/cli@0.0.8) (2025-02-05)
|
|
206
|
+
|
|
207
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
## [0.0.7](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.6...@gmcb/cli@0.0.7) (2025-02-04)
|
|
214
|
+
|
|
215
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## [0.0.6](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.5...@gmcb/cli@0.0.6) (2025-02-04)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## [0.0.5](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.4...@gmcb/cli@0.0.5) (2025-02-04)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## [0.0.4](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.3...@gmcb/cli@0.0.4) (2025-02-04)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
## [0.0.3](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.2...@gmcb/cli@0.0.3) (2025-02-02)
|
|
248
|
+
|
|
249
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
## [0.0.2](http://10.10.200.92:8090/gmcb/front-end/compare/@gmcb/cli@0.0.1...@gmcb/cli@0.0.2) (2025-02-02)
|
|
256
|
+
|
|
257
|
+
**Note:** Version bump only for package @gmcb/cli
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
## [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)
|
|
265
|
+
|
|
246
266
|
**Note:** Version bump only for package @gmcb/cli
|
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
# @gmcb/cli
|
|
2
|
-
|
|
3
|
-
工茂草本前端命令行工具
|
|
4
|
-
|
|
5
|
-
## 安装
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
npm i @gmcb/cli -g
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## 使用
|
|
12
|
-
```
|
|
13
|
-
gmcb build
|
|
1
|
+
# @gmcb/cli
|
|
2
|
+
|
|
3
|
+
工茂草本前端命令行工具
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm i @gmcb/cli -g
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
```
|
|
13
|
+
gmcb build
|
|
14
14
|
```
|
package/lib/actions/build.js
CHANGED
|
@@ -175,8 +175,9 @@ async function createZip() {
|
|
|
175
175
|
const spinner = (0, ora_1.default)(`正在生成资源文件...`).start();
|
|
176
176
|
await (0, delay_1.default)(1000);
|
|
177
177
|
const pkg = (0, fs_extra_1.readJsonSync)(utils_1.PACKAGE_PATH);
|
|
178
|
+
const manifest = (0, utils_1.readManifest)();
|
|
178
179
|
const zip = new adm_zip_1.default();
|
|
179
|
-
const name = config.app?.zip?.name
|
|
180
|
+
const name = config.app?.zip?.name || `${manifest['appid'] || pkg.name}.zip`;
|
|
180
181
|
const source = (0, path_1.join)(utils_1.COMMAND_PATH, config.app?.zip?.source ?? 'dist/win-unpacked/resources');
|
|
181
182
|
const dest = (0, path_1.join)(utils_1.COMMAND_PATH, `${config.app?.zip?.path ?? 'unpackage/release'}/${name}`);
|
|
182
183
|
if ((0, fs_1.existsSync)(dest)) {
|
package/lib/actions/publish.js
CHANGED
|
@@ -36,26 +36,26 @@ async function default_1(...args) {
|
|
|
36
36
|
choices: opts.wgt
|
|
37
37
|
? [
|
|
38
38
|
{
|
|
39
|
-
name: '
|
|
39
|
+
name: 'android',
|
|
40
40
|
value: 1,
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
name: '
|
|
43
|
+
name: 'ios',
|
|
44
44
|
value: 2,
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
name: '
|
|
47
|
+
name: 'harmony',
|
|
48
48
|
value: 3,
|
|
49
49
|
},
|
|
50
50
|
]
|
|
51
51
|
: opts.zip
|
|
52
52
|
? [
|
|
53
53
|
{
|
|
54
|
-
name: '
|
|
54
|
+
name: 'windows',
|
|
55
55
|
value: 4,
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
name: '
|
|
58
|
+
name: 'macos',
|
|
59
59
|
value: 5,
|
|
60
60
|
},
|
|
61
61
|
]
|
package/lib/utils/function.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function readManifest(): Record<string, unknown>;
|
|
1
2
|
export declare function objectToCommand(obj?: Record<string, any>): {};
|
|
2
3
|
export declare function filterToArray(obj?: Record<string, any>): any[];
|
|
3
4
|
export declare function spawnSync(command?: string): import("child_process").SpawnSyncReturns<Buffer>;
|
package/lib/utils/function.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.readManifest = readManifest;
|
|
6
7
|
exports.objectToCommand = objectToCommand;
|
|
7
8
|
exports.filterToArray = filterToArray;
|
|
8
9
|
exports.spawnSync = spawnSync;
|
|
@@ -11,7 +12,17 @@ const fs_1 = require("fs");
|
|
|
11
12
|
const path_1 = require("path");
|
|
12
13
|
const cross_spawn_1 = __importDefault(require("cross-spawn"));
|
|
13
14
|
const flat_1 = require("flat");
|
|
15
|
+
const strip_json_comments_1 = __importDefault(require("strip-json-comments"));
|
|
14
16
|
const const_1 = require("./const");
|
|
17
|
+
function readManifest() {
|
|
18
|
+
const candidates = [(0, path_1.join)(const_1.COMMAND_PATH, 'src', 'manifest.json'), (0, path_1.join)(const_1.COMMAND_PATH, 'manifest.json')];
|
|
19
|
+
for (const p of candidates) {
|
|
20
|
+
if (!(0, fs_1.existsSync)(p))
|
|
21
|
+
continue;
|
|
22
|
+
return JSON.parse((0, strip_json_comments_1.default)((0, fs_1.readFileSync)(p, 'utf-8')));
|
|
23
|
+
}
|
|
24
|
+
return {};
|
|
25
|
+
}
|
|
15
26
|
function objectToCommand(obj = {}) {
|
|
16
27
|
const object = (0, flat_1.flatten)(obj);
|
|
17
28
|
const res = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gmcb/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
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": "58e7ba657ce048bab3d6fab584717b3c1a1e7369"
|
|
58
58
|
}
|
package/schema.json
CHANGED
|
@@ -117,6 +117,39 @@
|
|
|
117
117
|
"type": "boolean",
|
|
118
118
|
"description": "是否加入换量联盟"
|
|
119
119
|
},
|
|
120
|
+
"harmony": {
|
|
121
|
+
"type": "object",
|
|
122
|
+
"description": "harmony配置",
|
|
123
|
+
"properties": {
|
|
124
|
+
"packagename": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "包名"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"required": ["packagename"]
|
|
130
|
+
},
|
|
131
|
+
"windows": {
|
|
132
|
+
"type": "object",
|
|
133
|
+
"description": "android配置",
|
|
134
|
+
"properties": {
|
|
135
|
+
"packagename": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"description": "包名"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": ["packagename"]
|
|
141
|
+
},
|
|
142
|
+
"macos": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"description": "macos配置",
|
|
145
|
+
"properties": {
|
|
146
|
+
"packagename": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"description": "包名"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
"required": ["packagename"]
|
|
152
|
+
},
|
|
120
153
|
"android": {
|
|
121
154
|
"type": "object",
|
|
122
155
|
"description": "android配置",
|
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.
|