@aiot-toolkit/aiotpack 2.0.3-beta.13 → 2.0.3-beta.14
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.
|
@@ -11,6 +11,7 @@ var _sharedUtils = require("@aiot-toolkit/shared-utils");
|
|
|
11
11
|
var parse5 = _interopRequireWildcard(require("aiot-parse5"));
|
|
12
12
|
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
13
13
|
var _path = _interopRequireDefault(require("path"));
|
|
14
|
+
var _QuickAppDocHelp = require("@aiot-toolkit/shared-utils/lib/utils/QuickAppDocHelp");
|
|
14
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
16
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -86,7 +87,8 @@ class UxLoaderUtils {
|
|
|
86
87
|
content: content.toString(),
|
|
87
88
|
onLog: log => {
|
|
88
89
|
logs.push(log);
|
|
89
|
-
}
|
|
90
|
+
},
|
|
91
|
+
docHelp: new _QuickAppDocHelp.VelaAppDocHelp()
|
|
90
92
|
};
|
|
91
93
|
// 收集图片资源
|
|
92
94
|
const ImageResources = [];
|
|
@@ -9,6 +9,7 @@ var _sharedUtils = require("@aiot-toolkit/shared-utils");
|
|
|
9
9
|
var _UxToTypescript = _interopRequireDefault(require("@aiot-toolkit/parser/lib/ux/translate/android/UxToTypescript"));
|
|
10
10
|
var _generator = require("@aiot-toolkit/generator");
|
|
11
11
|
var _path = _interopRequireDefault(require("path"));
|
|
12
|
+
var _QuickAppDocHelp = require("@aiot-toolkit/shared-utils/lib/utils/QuickAppDocHelp");
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
14
|
/**
|
|
14
15
|
* AndroidUx
|
|
@@ -58,7 +59,8 @@ class AndroidUx {
|
|
|
58
59
|
onLog: function (log) {
|
|
59
60
|
logs.push(log);
|
|
60
61
|
},
|
|
61
|
-
content: content.toString()
|
|
62
|
+
content: content.toString(),
|
|
63
|
+
docHelp: new _QuickAppDocHelp.QuickAppDocHelper()
|
|
62
64
|
};
|
|
63
65
|
const uxAst = await new _parser.UxParser(option, compilerOption, {}, path => path).parser();
|
|
64
66
|
const tsAst = await new _UxToTypescript.default(option, compilerOption, context).translate(uxAst.ast, uxAst.offsetList || []);
|
|
@@ -75,7 +77,7 @@ class AndroidUx {
|
|
|
75
77
|
content: code.code
|
|
76
78
|
}, {
|
|
77
79
|
path: `${filePathParse.dir}/${filePathParse.base}.map`,
|
|
78
|
-
content:
|
|
80
|
+
content: tsAst.sourceMap.toString()
|
|
79
81
|
}
|
|
80
82
|
// resource todo
|
|
81
83
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiot-toolkit/aiotpack",
|
|
3
|
-
"version": "2.0.3-beta.
|
|
3
|
+
"version": "2.0.3-beta.14",
|
|
4
4
|
"description": "The process tool for packaging aiot projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aiotpack"
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"test": "node ./__tests__/aiotpack.test.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aiot-toolkit/generator": "2.0.3-beta.
|
|
23
|
-
"@aiot-toolkit/parser": "2.0.3-beta.
|
|
24
|
-
"@aiot-toolkit/shared-utils": "2.0.3-beta.
|
|
22
|
+
"@aiot-toolkit/generator": "2.0.3-beta.14",
|
|
23
|
+
"@aiot-toolkit/parser": "2.0.3-beta.14",
|
|
24
|
+
"@aiot-toolkit/shared-utils": "2.0.3-beta.14",
|
|
25
25
|
"@hap-toolkit/aaptjs": "^2.0.0",
|
|
26
26
|
"@rspack/core": "^1.0.0",
|
|
27
27
|
"aiot-parse5": "^1.0.0",
|
|
28
28
|
"archiver": "^7.0.1",
|
|
29
29
|
"babel-loader": "^9.1.3",
|
|
30
30
|
"fast-glob": "^3.3.2",
|
|
31
|
-
"file-lane": "2.0.3-beta.
|
|
31
|
+
"file-lane": "2.0.3-beta.14",
|
|
32
32
|
"file-loader": "^6.2.0",
|
|
33
33
|
"fs-extra": "^11.2.0",
|
|
34
34
|
"jsrsasign": "^11.1.0",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"@types/jsrsasign": "^10.5.12",
|
|
46
46
|
"@types/webpack-sources": "^3.2.3"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "5279c4e8b9ee65f5d578a1d656b852163f3efb4d"
|
|
49
49
|
}
|