aiot-toolkit 2.0.2-beta.5 → 2.0.2-beta.6

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.
@@ -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
  }
@@ -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.5",
3
+ "version": "2.0.2-beta.6",
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.5",
25
- "@aiot-toolkit/emulator": "2.0.2-beta.5",
26
- "@aiot-toolkit/shared-utils": "2.0.2-beta.5",
24
+ "@aiot-toolkit/commander": "2.0.2-beta.6",
25
+ "@aiot-toolkit/emulator": "2.0.2-beta.6",
26
+ "@aiot-toolkit/shared-utils": "2.0.2-beta.6",
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.5",
32
+ "create-aiot": "2.0.2-beta.6",
33
33
  "dayjs": "^1.11.10",
34
34
  "fast-glob": "^3.3.2",
35
- "file-lane": "2.0.2-beta.5",
35
+ "file-lane": "2.0.2-beta.6",
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": "8c18753992c453c6569a3125378e75fbf4760a1f"
47
+ "gitHead": "b9b99afff176075380c2ec95b43797d696c393c1"
47
48
  }