@aiot-toolkit/aiotpack 2.0.6-beta.22 → 2.0.6-beta.23
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.
|
@@ -129,6 +129,15 @@ class UxCompileUtil {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
+
// 5. 添加 widget_provider
|
|
133
|
+
const {
|
|
134
|
+
widgetProvider
|
|
135
|
+
} = config;
|
|
136
|
+
if (widgetProvider?.length) {
|
|
137
|
+
for (const widgetItem of widgetProvider) {
|
|
138
|
+
result[widgetItem.path] = './src/' + widgetItem.path;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
132
141
|
return result;
|
|
133
142
|
}
|
|
134
143
|
|
package/lib/config/UxConfig.d.ts
CHANGED
|
@@ -29,10 +29,12 @@ declare class UxConfig implements IFileLaneConfig<IJavascriptCompileOption> {
|
|
|
29
29
|
beforeCompile: import("file-lane").PreWork<IJavascriptCompileOption>[];
|
|
30
30
|
afterCompile: ({
|
|
31
31
|
worker: import("file-lane").FollowWork<IJavascriptCompileOption>;
|
|
32
|
+
workDescribe: string;
|
|
32
33
|
workerDescribe?: undefined;
|
|
33
34
|
} | {
|
|
34
35
|
worker: import("file-lane").FollowWork<IJavascriptCompileOption>;
|
|
35
36
|
workerDescribe: string;
|
|
37
|
+
workDescribe?: undefined;
|
|
36
38
|
})[];
|
|
37
39
|
afterWorks: (typeof UxAfterWorks.cleanOutput)[];
|
|
38
40
|
watchIgnores: string[];
|
package/lib/config/UxConfig.js
CHANGED
|
@@ -75,7 +75,8 @@ class UxConfig {
|
|
|
75
75
|
beforeWorks = (() => [_UxBeforeWorks.default.cleanOutput])();
|
|
76
76
|
beforeCompile = (() => [_UxBeforeCompile.default.validateManifest, _UxBeforeCompile.default.validateSitemap, _BeforeCompileUtils.default.clean, _BeforeCompileUtils.default.getEntries, _BeforeCompileUtils.default.getGlobalVar])();
|
|
77
77
|
afterCompile = (() => [{
|
|
78
|
-
worker: _UxAfterCompile.default.writeGitIgnore
|
|
78
|
+
worker: _UxAfterCompile.default.writeGitIgnore,
|
|
79
|
+
workDescribe: 'Write .gitignore'
|
|
79
80
|
}, {
|
|
80
81
|
worker: _UxAfterCompile.default.symlinkNodeModule,
|
|
81
82
|
workerDescribe: 'Create a soft link to the node_modules folder'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiot-toolkit/aiotpack",
|
|
3
|
-
"version": "2.0.6-beta.
|
|
3
|
+
"version": "2.0.6-beta.23",
|
|
4
4
|
"description": "The process tool for packaging aiot projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aiotpack"
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"test": "node ./__tests__/aiotpack.test.js"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aiot-toolkit/generator": "2.0.6-beta.
|
|
23
|
-
"@aiot-toolkit/parser": "2.0.6-beta.
|
|
24
|
-
"@aiot-toolkit/shared-utils": "2.0.6-beta.
|
|
22
|
+
"@aiot-toolkit/generator": "2.0.6-beta.23",
|
|
23
|
+
"@aiot-toolkit/parser": "2.0.6-beta.23",
|
|
24
|
+
"@aiot-toolkit/shared-utils": "2.0.6-beta.23",
|
|
25
25
|
"@hap-toolkit/aaptjs": "^2.0.0",
|
|
26
26
|
"@rspack/core": "^1.3.9",
|
|
27
27
|
"aiot-parse5": "^1.0.2",
|
|
28
28
|
"babel-loader": "^9.1.3",
|
|
29
|
-
"file-lane": "2.0.6-beta.
|
|
29
|
+
"file-lane": "2.0.6-beta.23",
|
|
30
30
|
"file-loader": "^6.2.0",
|
|
31
31
|
"fs-extra": "^11.2.0",
|
|
32
32
|
"jsrsasign": "^11.1.0",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@types/jsrsasign": "^10.5.12",
|
|
43
43
|
"@types/webpack-sources": "^3.2.3"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "9de83750ab05714a26c3f23c22619605ebea720b"
|
|
46
46
|
}
|