aiot-toolkit 2.0.2-beta.5 → 2.0.2-beta.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/lib/builder/UxBuilder.js
CHANGED
|
@@ -72,6 +72,12 @@ class UxBuilder {
|
|
|
72
72
|
name: 'enable-stats',
|
|
73
73
|
description: 'analyse time and size of webpack output files',
|
|
74
74
|
defaultValue: false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
type: 'confirm',
|
|
78
|
+
name: 'optimize-css-attr',
|
|
79
|
+
description: 'optimize css attr',
|
|
80
|
+
defaultValue: false
|
|
75
81
|
}
|
|
76
82
|
];
|
|
77
83
|
}
|
package/lib/starter/UxStarter.js
CHANGED
|
@@ -124,12 +124,21 @@ class UxStarter extends IStarter_1.default {
|
|
|
124
124
|
if (options.openVNC) {
|
|
125
125
|
vncPort = yield portfinder_1.default.getPortPromise({ port: constants_1.defaultVncPort, stopPort: constants_1.defaultVncPort + 100 });
|
|
126
126
|
}
|
|
127
|
+
// 设置adbPort
|
|
128
|
+
const adbPort = yield portfinder_1.default.getPortPromise({ port: constants_1.defaultAdbPort });
|
|
129
|
+
// 设置debugPort
|
|
130
|
+
let debugPort;
|
|
131
|
+
if (options.devtool) {
|
|
132
|
+
debugPort = yield portfinder_1.default.getPortPromise({ port: constants_1.defaultDebugPort });
|
|
133
|
+
}
|
|
127
134
|
const startOptions = {
|
|
128
135
|
avdName,
|
|
129
136
|
devtool: options.devtool,
|
|
130
137
|
disableNSH: options.disableNSH,
|
|
131
138
|
serverPort,
|
|
132
139
|
vncPort,
|
|
140
|
+
adbPort,
|
|
141
|
+
debugPort
|
|
133
142
|
};
|
|
134
143
|
goldfishInstance.start(startOptions);
|
|
135
144
|
// waiter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aiot-toolkit",
|
|
3
|
-
"version": "2.0.2-beta.
|
|
3
|
+
"version": "2.0.2-beta.7",
|
|
4
4
|
"description": "Tools for creating, developing, and packaging aiot applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aiot"
|
|
@@ -21,18 +21,19 @@
|
|
|
21
21
|
"test": "node ./__tests__/aiot-toolkit.test.js"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aiot-toolkit/commander": "2.0.2-beta.
|
|
25
|
-
"@aiot-toolkit/emulator": "2.0.2-beta.
|
|
26
|
-
"@aiot-toolkit/shared-utils": "2.0.2-beta.
|
|
24
|
+
"@aiot-toolkit/commander": "2.0.2-beta.7",
|
|
25
|
+
"@aiot-toolkit/emulator": "2.0.2-beta.7",
|
|
26
|
+
"@aiot-toolkit/shared-utils": "2.0.2-beta.7",
|
|
27
27
|
"@miwt/adb": "^0.7.1",
|
|
28
28
|
"adb-commander": "^0.1.9",
|
|
29
29
|
"adm-zip": "^0.5.10",
|
|
30
30
|
"axios": "^1.5.0",
|
|
31
31
|
"cli-progress": "^3.12.0",
|
|
32
|
-
"create-aiot": "2.0.2-beta.
|
|
32
|
+
"create-aiot": "2.0.2-beta.7",
|
|
33
33
|
"dayjs": "^1.11.10",
|
|
34
34
|
"fast-glob": "^3.3.2",
|
|
35
|
-
"file-lane": "2.0.2-beta.
|
|
35
|
+
"file-lane": "2.0.2-beta.7",
|
|
36
|
+
"lodash": "^4.17.21",
|
|
36
37
|
"semver": "^7.6.0",
|
|
37
38
|
"ws": "^8.15.1"
|
|
38
39
|
},
|
|
@@ -43,5 +44,5 @@
|
|
|
43
44
|
"@types/ws": "^8.5.10",
|
|
44
45
|
"fs-extra": "^11.2.0"
|
|
45
46
|
},
|
|
46
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "dc37f9f6fbef3895d17b54ad41274c66f154f670"
|
|
47
48
|
}
|