@aiot-toolkit/aiotpack 2.0.2-dev.5 → 2.0.2-dev.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.
|
@@ -246,7 +246,7 @@ UxFollowWorks.symlinkNodeModule = (context, config, compilerOption) => __awaiter
|
|
|
246
246
|
foldList.forEach((item) => {
|
|
247
247
|
const sourcePath = path_1.default.join(context.projectPath, item);
|
|
248
248
|
if (fs_extra_1.default.existsSync(sourcePath)) {
|
|
249
|
-
fs_extra_1.default.symlinkSync(sourcePath, path_1.default.join(compilerOption.projectPath, item));
|
|
249
|
+
fs_extra_1.default.symlinkSync(sourcePath, path_1.default.join(compilerOption.projectPath, item), 'junction');
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
});
|
|
@@ -40,6 +40,7 @@ const UxParser_1 = __importDefault(require("@aiot-toolkit/parser/lib/ux/parser/U
|
|
|
40
40
|
const UxToTypescript_1 = __importDefault(require("@aiot-toolkit/parser/lib/ux/translate/vela/UxToTypescript"));
|
|
41
41
|
const ColorConsole_1 = __importDefault(require("@aiot-toolkit/shared-utils/lib/ColorConsole"));
|
|
42
42
|
const FileUtil_1 = __importDefault(require("@aiot-toolkit/shared-utils/lib/utils/FileUtil"));
|
|
43
|
+
const StringUtil_1 = __importDefault(require("@aiot-toolkit/shared-utils/lib/utils/StringUtil"));
|
|
43
44
|
const parse5 = __importStar(require("parse5"));
|
|
44
45
|
const path_1 = __importDefault(require("path"));
|
|
45
46
|
const ts_morph_1 = require("ts-morph");
|
|
@@ -94,7 +95,7 @@ class UxLoaderUtils {
|
|
|
94
95
|
return isAppUx
|
|
95
96
|
? [
|
|
96
97
|
`${appImport.join('\n')}`,
|
|
97
|
-
`var $app_style$ = ${UxLoaderUtils.wrapStyle(
|
|
98
|
+
`var $app_style$ = ${UxLoaderUtils.wrapStyle(StringUtil_1.default.arrayTostring(appStyleTree, true), file, compilerOption)}`,
|
|
98
99
|
`var $app_script$ = ${UxLoaderUtils.handleScriptContent(false, appScriptTree)}\n`,
|
|
99
100
|
`$app_script$({}, $app_exports$, $app_require$);\n\n`,
|
|
100
101
|
`$app_exports$.default.style = $app_style$;`,
|
|
@@ -102,7 +103,7 @@ class UxLoaderUtils {
|
|
|
102
103
|
]
|
|
103
104
|
: [
|
|
104
105
|
`${appImport.join('\n')}`,
|
|
105
|
-
`var $app_style$ = ${UxLoaderUtils.wrapStyle(
|
|
106
|
+
`var $app_style$ = ${UxLoaderUtils.wrapStyle(StringUtil_1.default.arrayTostring(appStyleTree, true), file, compilerOption)}\n`,
|
|
106
107
|
`var $app_script$ = ${UxLoaderUtils.handleScriptContent(isPageUx, appScriptTree)}`,
|
|
107
108
|
`var $app_template$ = ${UxLoaderUtils.wrapTempalte(appTemplateTree, file, compilerOption)}\n`,
|
|
108
109
|
`${UxLoaderUtils.getReturnType(isPageUx)} function ($app_exports$) {`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiot-toolkit/aiotpack",
|
|
3
|
-
"version": "2.0.2-dev.
|
|
3
|
+
"version": "2.0.2-dev.7",
|
|
4
4
|
"description": "The process tool for packaging aiot projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aiotpack"
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"test": "node ./__tests__/aiotpack.test.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aiot-toolkit/generator": "2.0.2-dev.
|
|
23
|
-
"@aiot-toolkit/parser": "2.0.2-dev.
|
|
22
|
+
"@aiot-toolkit/generator": "2.0.2-dev.7",
|
|
23
|
+
"@aiot-toolkit/parser": "2.0.2-dev.7",
|
|
24
24
|
"@hap-toolkit/aaptjs": "^2.0.0",
|
|
25
25
|
"babel-loader": "^9.1.3",
|
|
26
26
|
"del": "^4.1.0",
|
|
27
27
|
"fast-glob": "^3.3.2",
|
|
28
|
-
"file-lane": "2.0.2-dev.
|
|
28
|
+
"file-lane": "2.0.2-dev.7",
|
|
29
29
|
"file-loader": "^6.2.0",
|
|
30
30
|
"fs-extra": "^11.2.0",
|
|
31
31
|
"jsrsasign": "^7.2.2",
|
|
@@ -37,6 +37,5 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/jsrsasign": "^10.5.12",
|
|
39
39
|
"@types/webpack-sources": "^3.2.3"
|
|
40
|
-
}
|
|
41
|
-
"gitHead": "0c123fdd458966a4ca438cca03cc9efc2b5f634c"
|
|
40
|
+
}
|
|
42
41
|
}
|