aiot-toolkit 2.0.2-beta.10 → 2.0.2-beta.12
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/bin.js +21 -29
- package/lib/builder/UxBuilder.d.ts +12 -5
- package/lib/builder/UxBuilder.js +22 -15
- package/lib/builder/XtsBuilder.js +9 -12
- package/lib/starter/AndroidUxStart.d.ts +39 -0
- package/lib/starter/AndroidUxStart.js +170 -0
- package/lib/starter/IStarter.d.ts +2 -1
- package/lib/starter/IStarter.js +5 -1
- package/lib/starter/UxStarter.d.ts +3 -2
- package/lib/starter/UxStarter.js +50 -46
- package/lib/starter/XtsStarter.d.ts +2 -2
- package/lib/starter/androidRouter/LinkMode.d.ts +9 -0
- package/lib/starter/androidRouter/LinkMode.js +12 -0
- package/lib/starter/androidRouter/PackageRouter.d.ts +55 -0
- package/lib/starter/androidRouter/PackageRouter.js +152 -0
- package/lib/starter/androidRouter/h5/index.css +167 -0
- package/lib/starter/androidRouter/h5/index.html +58 -0
- package/lib/starter/androidRouter/h5/index.js +66 -0
- package/lib/utils/AdbUtils.js +3 -3
- package/lib/utils/DeviceUtil.js +37 -24
- package/lib/utils/RequestUtils.js +5 -5
- package/lib/utils/VelaAvdUtils.js +70 -62
- package/package.json +15 -10
- package/lib/utils/UxBuilderUtils.d.ts +0 -8
- package/lib/utils/UxBuilderUtils.js +0 -51
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.12",
|
|
4
4
|
"description": "Tools for creating, developing, and packaging aiot applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aiot"
|
|
@@ -21,28 +21,33 @@
|
|
|
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.
|
|
27
|
-
"@miwt/adb": "^0.
|
|
24
|
+
"@aiot-toolkit/commander": "2.0.2-beta.12",
|
|
25
|
+
"@aiot-toolkit/emulator": "2.0.2-beta.12",
|
|
26
|
+
"@aiot-toolkit/shared-utils": "2.0.2-beta.12",
|
|
27
|
+
"@miwt/adb": "^0.8.0",
|
|
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.12",
|
|
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.12",
|
|
36
|
+
"fs-extra": "^11.2.0",
|
|
36
37
|
"lodash": "^4.17.21",
|
|
38
|
+
"qr-image": "^3.2.0",
|
|
37
39
|
"semver": "^7.6.0",
|
|
38
40
|
"ws": "^8.15.1"
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
43
|
"@types/adm-zip": "^0.5.4",
|
|
42
44
|
"@types/fs-extra": "^11.0.4",
|
|
45
|
+
"@types/koa": "^2.15.0",
|
|
46
|
+
"@types/koa-router": "^7.4.8",
|
|
47
|
+
"@types/koa-static": "^4.0.4",
|
|
48
|
+
"@types/qr-image": "^3.2.9",
|
|
43
49
|
"@types/semver": "^7.5.8",
|
|
44
|
-
"@types/ws": "^8.5.10"
|
|
45
|
-
"fs-extra": "^11.2.0"
|
|
50
|
+
"@types/ws": "^8.5.10"
|
|
46
51
|
},
|
|
47
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "3d2f9f8f48bb88492013d867f6eff27cb33365a0"
|
|
48
53
|
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ColorConsole_1 = __importDefault(require("@aiot-toolkit/shared-utils/lib/ColorConsole"));
|
|
7
|
-
/**
|
|
8
|
-
* UxBuilderUtils
|
|
9
|
-
*/
|
|
10
|
-
class UxBuilderUtils {
|
|
11
|
-
static getDevtoolValue(mode, devtool) {
|
|
12
|
-
const sourcemaps = {
|
|
13
|
-
development: {
|
|
14
|
-
default: 'cheap-source-map',
|
|
15
|
-
options: [
|
|
16
|
-
false,
|
|
17
|
-
'cheap-source-map',
|
|
18
|
-
'cheap-module-source-map',
|
|
19
|
-
'inline-cheap-source-map',
|
|
20
|
-
'inline-cheap-module-source-map',
|
|
21
|
-
'source-map',
|
|
22
|
-
'inline-source-map',
|
|
23
|
-
'hidden-source-map',
|
|
24
|
-
'nosources-source-map'
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
production: {
|
|
28
|
-
default: false,
|
|
29
|
-
options: [
|
|
30
|
-
false,
|
|
31
|
-
'cheap-source-map',
|
|
32
|
-
'cheap-module-source-map',
|
|
33
|
-
'source-map',
|
|
34
|
-
'hidden-source-map',
|
|
35
|
-
'nosources-source-map'
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
const sourcemapArr = sourcemaps[mode].options;
|
|
40
|
-
const defaultSourcemap = sourcemaps[mode].default;
|
|
41
|
-
if (typeof devtool !== 'string' && typeof devtool !== 'boolean') {
|
|
42
|
-
return defaultSourcemap;
|
|
43
|
-
}
|
|
44
|
-
if (sourcemapArr.indexOf(devtool) === -1) {
|
|
45
|
-
ColorConsole_1.default.warn(`The devtool in ${mode} mode does not support '${devtool}', change to default '${defaultSourcemap}'`);
|
|
46
|
-
return defaultSourcemap;
|
|
47
|
-
}
|
|
48
|
-
return devtool;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.default = UxBuilderUtils;
|