@omnia/tooling-vue 8.0.255-dev → 8.0.257-dev
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/internal-do-not-import-from-here/config/omnia.vendor.manifest.json +1 -1
- package/internal-do-not-import-from-here/config/tooling.output.json +1 -1
- package/internal-do-not-import-from-here/config/wctypings.d.ts +18 -0
- package/internal-do-not-import-from-here/tasks/ComponentDocRegistrations.js +1 -1
- package/internal-do-not-import-from-here/tasks/doc.js +1 -0
- package/internal-do-not-import-from-here/vite/index.js +22 -1
- package/internal-do-not-import-from-here/vite/middlewares/HmrMiddleware.js +7 -5
- package/package.json +3 -3
|
@@ -207,6 +207,7 @@ function populateElementNamespace(namespace, elementName, importElement) {
|
|
|
207
207
|
}
|
|
208
208
|
else {
|
|
209
209
|
if (i === parts.length - 1) {
|
|
210
|
+
tooling_1.utils.log(`Generate namespace for component with suffix $ -> ${parts.slice(0, i + 1).join(".")}$`);
|
|
210
211
|
namespace[`${name}$`] = `typeof ${importElement} extends { propsDefinition: infer TProp } ? { new(...args: any[]): { $props: TProp & Omit<VueComponentBaseProps, keyof TProp> } } : typeof ${importElement} <<end>>`;
|
|
211
212
|
// throw new Error("Build element namespace -> Exist an element name contain a above that element name");
|
|
212
213
|
}
|
|
@@ -84,10 +84,30 @@ function getCert() {
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
+
function generateCert() {
|
|
88
|
+
return new Promise((resolve, reject) => {
|
|
89
|
+
const spawn = require('child_process').spawn;
|
|
90
|
+
spawn('dotnet', [
|
|
91
|
+
'dev-certs',
|
|
92
|
+
'https',
|
|
93
|
+
'--clean'
|
|
94
|
+
], { stdio: 'inherit', })
|
|
95
|
+
.on('exit', (code) => {
|
|
96
|
+
spawn('dotnet', [
|
|
97
|
+
'dev-certs',
|
|
98
|
+
'https',
|
|
99
|
+
'--trust'
|
|
100
|
+
], { stdio: 'inherit', })
|
|
101
|
+
.on('exit', (code) => {
|
|
102
|
+
resolve();
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
87
107
|
tooling_1.core.registerCleanTask({
|
|
88
108
|
order: 2,
|
|
89
109
|
task: function () {
|
|
90
|
-
return new Promise(function (resolve, reject) {
|
|
110
|
+
return new Promise(async function (resolve, reject) {
|
|
91
111
|
let appPath = (0, appdata_path_1.default)();
|
|
92
112
|
let certFolderPath = path_1.default.join(appPath, "omnia", "https");
|
|
93
113
|
const certName = "devcert";
|
|
@@ -103,6 +123,7 @@ tooling_1.core.registerCleanTask({
|
|
|
103
123
|
force: true
|
|
104
124
|
});
|
|
105
125
|
}
|
|
126
|
+
// await generateCert();
|
|
106
127
|
resolve();
|
|
107
128
|
});
|
|
108
129
|
}
|
|
@@ -19,11 +19,12 @@ function registerHmrMiddleware(server) {
|
|
|
19
19
|
order: 3,
|
|
20
20
|
task: async function (entries) {
|
|
21
21
|
const serviceId = $.tooling.composer.getServiceId();
|
|
22
|
-
|
|
22
|
+
const startTime = new Date().getTime();
|
|
23
|
+
$.tooling.logTime("HMR Middleware running...", startTime);
|
|
23
24
|
hmr_1.entriesResolver.resolveEntries(entries);
|
|
24
|
-
$.tooling.
|
|
25
|
+
$.tooling.logTime("Building module dependency graphs...", startTime);
|
|
25
26
|
const manifests = await (0, graph_1.buildFileGraphs)(entries);
|
|
26
|
-
$.tooling.
|
|
27
|
+
$.tooling.logTime("Done - Building module dependency graphs", startTime);
|
|
27
28
|
return ensureManifestInfo(entries).then(preBundleIfNeeded).then(() => {
|
|
28
29
|
bundler.processManifestGenerated(entries, $.tooling.composer.OmniaOutput.OutputBundlePath);
|
|
29
30
|
Object.keys(manifests).forEach(resourceId => {
|
|
@@ -139,7 +140,8 @@ async function preBundleIfNeeded(entries) {
|
|
|
139
140
|
if (Object.keys(preBundleEntries).length == 0) {
|
|
140
141
|
return Promise.resolve();
|
|
141
142
|
}
|
|
142
|
-
|
|
143
|
+
const startTime = new Date().getTime();
|
|
144
|
+
$.tooling.logTime("Pre-Bundling...", startTime);
|
|
143
145
|
return new Promise(function (resolve, reject) {
|
|
144
146
|
const configs = utils_1.webpackUtils.createWebpackConfig(preBundleEntries, 'prebundle');
|
|
145
147
|
const compiler = (0, webpack_1.webpack)(configs);
|
|
@@ -149,7 +151,7 @@ async function preBundleIfNeeded(entries) {
|
|
|
149
151
|
reject();
|
|
150
152
|
return;
|
|
151
153
|
}
|
|
152
|
-
$.tooling.
|
|
154
|
+
$.tooling.logTime("Pre-Bundle done", startTime);
|
|
153
155
|
resolve(entries);
|
|
154
156
|
});
|
|
155
157
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/tooling-vue",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.257-dev",
|
|
5
5
|
"description": "Used to bundle and serve manifests web component that build on Vue framework.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Precio Fishbone",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx-models": "8.0.
|
|
23
|
-
"@omnia/tooling-composers": "8.0.
|
|
22
|
+
"@omnia/fx-models": "8.0.257-dev",
|
|
23
|
+
"@omnia/tooling-composers": "8.0.257-dev",
|
|
24
24
|
"@types/mousetrap": "1.5.34",
|
|
25
25
|
"@types/quill": "1.3.6",
|
|
26
26
|
"@types/zepto": "1.0.29",
|