@wagq/wa-cli 0.6.26 → 0.6.27
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/README.md +53 -53
- package/config/command.js +23 -0
- package/lib/exe/index.js +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
# cli 工具
|
|
2
|
-
|
|
3
|
-
使用方式 全局安装后 可使用 wa [命令]
|
|
4
|
-
|
|
5
|
-
- 更多描述可以使用help查看
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
wa --help
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
- 初始化项目
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
wa init
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
- 启动本地服务
|
|
18
|
-
|
|
19
|
-
- `-P` 3000 指定端口
|
|
20
|
-
- `-S` true 开启https
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
wa server [path]
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
- 转换 xlsx 文件为多语言配置
|
|
27
|
-
|
|
28
|
-
- `path` 文件路径
|
|
29
|
-
- `name` 被转换目标文件名称
|
|
30
|
-
- `ext` 转换后文件扩展名 json 或 ts
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
wa xlsx2Config [path] [name] [ext]
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
- 同步远端低代码配置
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
wa daml
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
- 同步远端应用所有页面的低代码配置
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
wa damls
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
- batchUpdate
|
|
49
|
-
批量更新指定组织下的包
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
wa batchUpdate
|
|
53
|
-
```
|
|
1
|
+
# cli 工具
|
|
2
|
+
|
|
3
|
+
使用方式 全局安装后 可使用 wa [命令]
|
|
4
|
+
|
|
5
|
+
- 更多描述可以使用help查看
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
wa --help
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
- 初始化项目
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
wa init
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- 启动本地服务
|
|
18
|
+
|
|
19
|
+
- `-P` 3000 指定端口
|
|
20
|
+
- `-S` true 开启https
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
wa server [path]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
- 转换 xlsx 文件为多语言配置
|
|
27
|
+
|
|
28
|
+
- `path` 文件路径
|
|
29
|
+
- `name` 被转换目标文件名称
|
|
30
|
+
- `ext` 转换后文件扩展名 json 或 ts
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
wa xlsx2Config [path] [name] [ext]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- 同步远端低代码配置
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
wa daml
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
- 同步远端应用所有页面的低代码配置
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
wa damls
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
- batchUpdate
|
|
49
|
+
批量更新指定组织下的包
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
wa batchUpdate
|
|
53
|
+
```
|
package/config/command.js
CHANGED
|
@@ -4,6 +4,7 @@ const xlsx2Config = require("../lib/locale/xlsx2Config");
|
|
|
4
4
|
const asyncDaml = require("../lib/daml/async");
|
|
5
5
|
const asyncDamlByApp = require("../lib/daml/asyncByApp");
|
|
6
6
|
const batchUpdate = require("../lib/batchUpdate");
|
|
7
|
+
const web2exe = require("../lib/exe");
|
|
7
8
|
|
|
8
9
|
const command = [
|
|
9
10
|
{
|
|
@@ -92,6 +93,28 @@ const command = [
|
|
|
92
93
|
],
|
|
93
94
|
action: xlsx2Config,
|
|
94
95
|
},
|
|
96
|
+
{
|
|
97
|
+
name: "web2exe [name] [path]",
|
|
98
|
+
alias: 'we',
|
|
99
|
+
description: "将网页打包成exe",
|
|
100
|
+
positional: [
|
|
101
|
+
{
|
|
102
|
+
key: "name",
|
|
103
|
+
option: {
|
|
104
|
+
describe: "应用名称",
|
|
105
|
+
type: "string",
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
key: "path",
|
|
110
|
+
option: {
|
|
111
|
+
describe: "文件路径",
|
|
112
|
+
type: "string",
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
action: web2exe,
|
|
117
|
+
},
|
|
95
118
|
];
|
|
96
119
|
|
|
97
120
|
module.exports = command;
|
package/lib/exe/index.js
ADDED