@omnia/tooling-vue 8.0.20-vnext → 8.0.22-vnext
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/bb000000-0000-bbbb-0000-0000000000bb.wctypings.d.ts +67 -5
- package/internal-do-not-import-from-here/config/omnia.vendor.manifest.json +1 -1
- package/internal-do-not-import-from-here/shared.d.ts +1 -18
- package/internal-do-not-import-from-here/shared.js +4 -41
- package/internal-do-not-import-from-here/swc/extract-doc-plugin/package.json +14 -0
- package/internal-do-not-import-from-here/tasks/ComponentDocRegistrations.d.ts +1 -0
- package/internal-do-not-import-from-here/tasks/ComponentDocRegistrations.js +9 -0
- package/internal-do-not-import-from-here/tasks/bundle.js +330 -108
- package/internal-do-not-import-from-here/tasks/vendor.js +160 -17
- package/internal-do-not-import-from-here/vite/hmr/transformers/internal/dynamicBundle.js +7 -1
- package/internal-do-not-import-from-here/vite/index.js +4 -0
- package/internal-do-not-import-from-here/vite/middlewares/HmrMiddleware.js +3 -1
- package/internal-do-not-import-from-here/vite/middlewares/StaticFileMiddleware.js +22 -2
- package/internal-do-not-import-from-here/vite/plugins/OmniaPlugin.js +1 -1
- package/internal-do-not-import-from-here/webpack-loaders/ts-loader.d.ts +1 -1
- package/internal-do-not-import-from-here/webpack-loaders/ts-loader.js +1 -8
- package/internal-do-not-import-from-here/webpack-loaders/tsx-loader.d.ts +1 -1
- package/internal-do-not-import-from-here/webpack-loaders/tsx-loader.js +23 -28
- package/package.json +7 -6
- package/internal-do-not-import-from-here/1cacb55c-202b-4cd7-819d-11bad92fa9cb.wcdefinitions.json +0 -1
- package/internal-do-not-import-from-here/1cacb55c-202b-4cd7-819d-11bad92fa9cb.wctypings.d.ts +0 -11
- package/internal-do-not-import-from-here/1cacb55c-202b-4cd7-819d-11bad92fa9cb.wctypings.js +0 -2
- package/internal-do-not-import-from-here/bb000000-0000-bbbb-0000-0000000000bb.wcdefinitions.json +0 -1
- package/internal-do-not-import-from-here/cc000000-0000-cccc-0000-0000000000cc.wcdefinitions.json +0 -1
- package/internal-do-not-import-from-here/webpack-loaders/jsx-loader.d.ts +0 -8
- package/internal-do-not-import-from-here/webpack-loaders/jsx-loader.js +0 -61
- package/internal-do-not-import-from-here/webpack-loaders/vue-tsx-hot-loader.d.ts +0 -1
- package/internal-do-not-import-from-here/webpack-loaders/vue-tsx-hot-loader.js +0 -44
|
@@ -5,7 +5,6 @@ const $ = tslib_1.__importStar(require("../variables"));
|
|
|
5
5
|
const ts_loader_1 = tslib_1.__importDefault(require("../webpack-loaders/ts-loader"));
|
|
6
6
|
const ExtractTextPlugin = require('mini-css-extract-plugin');
|
|
7
7
|
const fsExtra = require('fs-extra');
|
|
8
|
-
fsExtra.copySync('wwwroot/scripts/vue-class-component/vue-class-component.esm.custom.js', 'node_modules/vue-class-component/dist/vue-class-component.esm.js');
|
|
9
8
|
const extractCSS = new ExtractTextPlugin({
|
|
10
9
|
filename: "omnia.vendor.css",
|
|
11
10
|
});
|
|
@@ -123,7 +122,7 @@ $.webpack({
|
|
|
123
122
|
$.tooling.log('omnia shared vendor generated');
|
|
124
123
|
}
|
|
125
124
|
});
|
|
126
|
-
$.tooling.log('omnia vendor running...');
|
|
125
|
+
$.tooling.log('omnia vendor devlopment running...');
|
|
127
126
|
$.webpack({
|
|
128
127
|
mode: 'production',
|
|
129
128
|
devtool: false,
|
|
@@ -132,11 +131,9 @@ $.webpack({
|
|
|
132
131
|
extensions: ['.ts', '.js', '.css'],
|
|
133
132
|
alias: {
|
|
134
133
|
'typestyle$': 'typestyle/lib.es2015/index.js',
|
|
135
|
-
//
|
|
136
|
-
'vue$': 'vue/dist/vue.esm-
|
|
137
|
-
|
|
138
|
-
//'w3c-keyname$': $.path.resolve($.tooling.utils.root(""), 'node_modules/w3c-keyname/index.es.js'),
|
|
139
|
-
//'orderedmap$': 'orderedmap/index.js',
|
|
134
|
+
// vuetify have not working fully 100% with vue runtime browser only, so temp to full bundle vue now.
|
|
135
|
+
//'vue$': 'vue/dist/vue.runtime.esm-browser.js',
|
|
136
|
+
'vue$': 'vue/dist/vue.runtime.esm-bundler.js',
|
|
140
137
|
},
|
|
141
138
|
},
|
|
142
139
|
optimization: {
|
|
@@ -149,7 +146,7 @@ $.webpack({
|
|
|
149
146
|
},
|
|
150
147
|
module: {
|
|
151
148
|
rules: [
|
|
152
|
-
...(0, ts_loader_1.default)(
|
|
149
|
+
...(0, ts_loader_1.default)(),
|
|
153
150
|
{
|
|
154
151
|
test: /\.css(\?|$)/,
|
|
155
152
|
use: [
|
|
@@ -178,13 +175,6 @@ $.webpack({
|
|
|
178
175
|
vendor: [
|
|
179
176
|
"tslib",
|
|
180
177
|
"./client/fx/vue/VueBundler",
|
|
181
|
-
// "vue-class-component",
|
|
182
|
-
// "vue-property-decorator",
|
|
183
|
-
// "vue-tsx-support",
|
|
184
|
-
// "vue-tsx-support/enable-check",
|
|
185
|
-
// "vue-tsx-support/lib/vca",
|
|
186
|
-
// "@vue/babel-helper-vue-jsx-merge-props",
|
|
187
|
-
// "@vue/composition-api",
|
|
188
178
|
"typestyle",
|
|
189
179
|
"csx",
|
|
190
180
|
"zepto-webpack",
|
|
@@ -250,7 +240,10 @@ return key;
|
|
|
250
240
|
new $.webpack.DefinePlugin({
|
|
251
241
|
//process: { env: { NODE_ENV: JSON.stringify('production') } }
|
|
252
242
|
// temp bundle vue vendor in development mode for support HMR
|
|
253
|
-
process: { env: { NODE_ENV: JSON.stringify('development') } }
|
|
243
|
+
// process: { env: { NODE_ENV: JSON.stringify('development') } },
|
|
244
|
+
'process.env.NODE_ENV': JSON.stringify('development'),
|
|
245
|
+
__VUE_OPTIONS_API__: true,
|
|
246
|
+
__VUE_PROD_DEVTOOLS__: true
|
|
254
247
|
})
|
|
255
248
|
]
|
|
256
249
|
})
|
|
@@ -276,7 +269,157 @@ return key;
|
|
|
276
269
|
var manifestJson = require(manifestPath);
|
|
277
270
|
manifestJson.content["./node_modules/webpack/buildin/module.js"] = undefined;
|
|
278
271
|
$.fs.writeFileSync(manifestPath, JSON.stringify(manifestJson));
|
|
279
|
-
$.tooling.log('omnia vendor generated');
|
|
272
|
+
$.tooling.log('omnia vendor devlopment generated');
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
$.tooling.log('omnia vendor prod running...');
|
|
276
|
+
$.webpack({
|
|
277
|
+
mode: 'production',
|
|
278
|
+
devtool: false,
|
|
279
|
+
context: $.tooling.utils.root(""),
|
|
280
|
+
resolve: {
|
|
281
|
+
extensions: ['.ts', '.js', '.css'],
|
|
282
|
+
alias: {
|
|
283
|
+
'typestyle$': 'typestyle/lib.es2015/index.js',
|
|
284
|
+
// vuetify have not working fully 100% with vue runtime browser only, so temp to full bundle vue now.
|
|
285
|
+
'vue$': 'vue/dist/vue.runtime.esm-bundler.js',
|
|
286
|
+
//'vue$': 'vue/dist/vue.esm-bundler.js',
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
optimization: {
|
|
290
|
+
minimize: false,
|
|
291
|
+
usedExports: false,
|
|
292
|
+
providedExports: true,
|
|
293
|
+
removeAvailableModules: false,
|
|
294
|
+
mangleExports: false,
|
|
295
|
+
concatenateModules: true,
|
|
296
|
+
},
|
|
297
|
+
module: {
|
|
298
|
+
rules: [
|
|
299
|
+
...(0, ts_loader_1.default)(),
|
|
300
|
+
{
|
|
301
|
+
test: /\.css(\?|$)/,
|
|
302
|
+
use: [
|
|
303
|
+
{
|
|
304
|
+
loader: ExtractTextPlugin.loader,
|
|
305
|
+
options: {
|
|
306
|
+
publicPath: '../css'
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
'css-loader',
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
test: /\.(woff2?|eot|ttf|otf|svg)(\?.*)?$/,
|
|
314
|
+
use: [{
|
|
315
|
+
loader: 'file-loader',
|
|
316
|
+
options: {
|
|
317
|
+
name: '[name].[ext]',
|
|
318
|
+
outputPath: '../fonts/'
|
|
319
|
+
}
|
|
320
|
+
}]
|
|
321
|
+
}
|
|
322
|
+
]
|
|
323
|
+
},
|
|
324
|
+
entry: {
|
|
325
|
+
vendor: [
|
|
326
|
+
"tslib",
|
|
327
|
+
"./client/fx/vue/VueBundler",
|
|
328
|
+
"typestyle",
|
|
329
|
+
"csx",
|
|
330
|
+
"zepto-webpack",
|
|
331
|
+
"mousetrap",
|
|
332
|
+
"mousetrap-global-bind",
|
|
333
|
+
"dayjs",
|
|
334
|
+
"dayjs/plugin/utc",
|
|
335
|
+
"dayjs/plugin/timezone",
|
|
336
|
+
'dayjs/plugin/duration',
|
|
337
|
+
'dayjs/plugin/relativeTime',
|
|
338
|
+
"dayjs/locale/da.js",
|
|
339
|
+
"dayjs/locale/pl.js",
|
|
340
|
+
"dayjs/locale/fr.js",
|
|
341
|
+
"dayjs/locale/de.js",
|
|
342
|
+
"dayjs/locale/et.js",
|
|
343
|
+
"dayjs/locale/lv.js",
|
|
344
|
+
"dayjs/locale/lt.js",
|
|
345
|
+
"dayjs/locale/sv.js",
|
|
346
|
+
"./wwwroot/scripts/zepto.extras.js",
|
|
347
|
+
// "@material/material-color-utilities"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
output: {
|
|
351
|
+
path: $.path.join($.tooling.utils.root(""), outDir),
|
|
352
|
+
filename: 'omnia.[name].prod.js',
|
|
353
|
+
library: {
|
|
354
|
+
name: 'omniaVendor',
|
|
355
|
+
type: 'window',
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
plugins: [
|
|
359
|
+
new $.webpack.ContextReplacementPlugin(/moment[\/\\]locale$/, /ignore/),
|
|
360
|
+
extractCSS,
|
|
361
|
+
new $.omniaWebpackPlugins.NamedModulesPlugin(),
|
|
362
|
+
new $.omniaWebpackPlugins.ModifyContent([
|
|
363
|
+
{
|
|
364
|
+
pattern: /var omniaVendor;omniaVendor/i,
|
|
365
|
+
replacement: "window['omniaVendor'] "
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
pattern: /# sourceMappingURL=\s*(\S+)/g,
|
|
369
|
+
replacement: '# ignore'
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
pattern: /__webpack_module_cache__/g,
|
|
373
|
+
replacement: '__omnia_webpack_module_cache__'
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
pattern: "const key = `f${stringHash(pid)}`;",
|
|
377
|
+
replacement: `
|
|
378
|
+
// <<omnia custom>> support prefix displayname in styleflow
|
|
379
|
+
` + "const key = `f${stringHash(pid)}`;" +
|
|
380
|
+
` if (!styles.$displayName)
|
|
381
|
+
return key;
|
|
382
|
+
` + "return `${styles.$displayName}_${key}`;"
|
|
383
|
+
},
|
|
384
|
+
]),
|
|
385
|
+
new $.webpack.DllPlugin({
|
|
386
|
+
path: $.path.resolve(__dirname, "../config/omnia.[name].manifest.json"),
|
|
387
|
+
name: 'omniaVendor',
|
|
388
|
+
entryOnly: false
|
|
389
|
+
}),
|
|
390
|
+
new $.webpack.DefinePlugin({
|
|
391
|
+
//process: { env: { NODE_ENV: JSON.stringify('production') } },
|
|
392
|
+
// temp bundle vue vendor in development mode for support HMR
|
|
393
|
+
// process: { env: { NODE_ENV: JSON.stringify('development') } },
|
|
394
|
+
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
395
|
+
__VUE_OPTIONS_API__: true,
|
|
396
|
+
__VUE_PROD_DEVTOOLS__: false
|
|
397
|
+
})
|
|
398
|
+
]
|
|
399
|
+
})
|
|
400
|
+
.run((err, stats) => {
|
|
401
|
+
if (err || stats.hasErrors()) {
|
|
402
|
+
//console.log(stats.toJson({
|
|
403
|
+
// assets: false,
|
|
404
|
+
// hash: true
|
|
405
|
+
//}))
|
|
406
|
+
$.tooling.log('Omnia vendor have error : \r\n', $.tooling.LogTypes.Error);
|
|
407
|
+
if (err) {
|
|
408
|
+
$.tooling.log(err.stack || err, $.tooling.LogTypes.Error);
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
stats.toJson().errors.forEach(err => {
|
|
412
|
+
$.tooling.log(err.stack || err, $.tooling.LogTypes.Error);
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
// generate omnia vendor metadata
|
|
418
|
+
var manifestPath = $.path.resolve(__dirname, "../config/omnia.vendor.manifest.json");
|
|
419
|
+
var manifestJson = require(manifestPath);
|
|
420
|
+
manifestJson.content["./node_modules/webpack/buildin/module.js"] = undefined;
|
|
421
|
+
$.fs.writeFileSync(manifestPath, JSON.stringify(manifestJson));
|
|
422
|
+
$.tooling.log('omnia vendor prod generated');
|
|
280
423
|
}
|
|
281
424
|
});
|
|
282
425
|
// bundle omnia worker vendor
|
|
@@ -32,6 +32,7 @@ exports.dynamicBundle = (0, base_1.defineTransformer)("omnia-bundle", () => {
|
|
|
32
32
|
return utils_1.pathUtils.isJavaScriptSuperset(id);
|
|
33
33
|
},
|
|
34
34
|
async transform(code, id, fileGraph, ctx, fromWorker) {
|
|
35
|
+
//id.indexOf("wwwroot/docs/") === -1 &&
|
|
35
36
|
const dynamicModules = filterDynamicModules(fileGraph, ctx);
|
|
36
37
|
const bundledModules = dynamicModules.filter(item => item.resolved);
|
|
37
38
|
const unBundledModules = dynamicModules.filter(item => !item.resolved);
|
|
@@ -223,7 +224,12 @@ function ensureBundleInjection(code, resourceId) {
|
|
|
223
224
|
function filterBareImport(item, ctx) {
|
|
224
225
|
const depFileGraph = ctx.getFileGraph(item.path);
|
|
225
226
|
// skip omnia packages since they only contain typing files
|
|
226
|
-
return depFileGraph
|
|
227
|
+
return depFileGraph
|
|
228
|
+
&& depFileGraph.id.startsWith('./wwwroot/docs/') == false
|
|
229
|
+
&& depFileGraph.id.startsWith('@omnia') == false
|
|
230
|
+
&& !ctx.alias[depFileGraph.id]
|
|
231
|
+
&& depFileGraph.bareImport
|
|
232
|
+
&& depFileGraph.js;
|
|
227
233
|
}
|
|
228
234
|
function isBareImportResolved(item, ctx) {
|
|
229
235
|
const depFileGraph = ctx.getFileGraph(item.path);
|
|
@@ -10,6 +10,7 @@ const del_1 = tslib_1.__importDefault(require("del"));
|
|
|
10
10
|
const tooling_composers_1 = require("@omnia/tooling-composers");
|
|
11
11
|
const tooling_1 = require("@omnia/tooling");
|
|
12
12
|
const plugins_1 = require("./plugins");
|
|
13
|
+
const vite_plugin_inspect_1 = tslib_1.__importDefault(require("vite-plugin-inspect"));
|
|
13
14
|
async function createViteServer() {
|
|
14
15
|
const hosting = (0, tooling_composers_1.getHosting)();
|
|
15
16
|
let plugins = [
|
|
@@ -17,6 +18,9 @@ async function createViteServer() {
|
|
|
17
18
|
hosting: hosting
|
|
18
19
|
})
|
|
19
20
|
];
|
|
21
|
+
if (hosting.enableProfiling) {
|
|
22
|
+
plugins.push((0, vite_plugin_inspect_1.default)());
|
|
23
|
+
}
|
|
20
24
|
let https = hosting.https || await getCert();
|
|
21
25
|
let serverConfig = {
|
|
22
26
|
configFile: false,
|
|
@@ -119,7 +119,9 @@ function registerHmrMiddleware(server) {
|
|
|
119
119
|
//res.end(content);
|
|
120
120
|
}
|
|
121
121
|
else if (ext === "css") {
|
|
122
|
-
content = `import { updateStyle as __vite__updateStyle} from "/@vite/client";
|
|
122
|
+
content = `import { updateStyle as __vite__updateStyle} from "/@vite/client";
|
|
123
|
+
const __vite__css = ${JSON.stringify(content)}
|
|
124
|
+
__vite__updateStyle("${bundleFileName}", __vite__css)`;
|
|
123
125
|
// req.url = `/omnia/dist/hmr/bundles/${bundleFileName}`;
|
|
124
126
|
// console.log("Hmr middleware", req.url)
|
|
125
127
|
// next();
|
|
@@ -6,9 +6,29 @@ const tooling_1 = require("@omnia/tooling");
|
|
|
6
6
|
const $ = tslib_1.__importStar(require("../../variables"));
|
|
7
7
|
const fx_models_1 = require("@omnia/fx-models");
|
|
8
8
|
const shared_1 = require("./shared");
|
|
9
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
9
10
|
function registerStaticFileMiddleware(server) {
|
|
10
|
-
server.middlewares.use(function (req, res, next) {
|
|
11
|
-
if (req.url.indexOf('/
|
|
11
|
+
server.middlewares.use(async function (req, res, next) {
|
|
12
|
+
if (req.url.indexOf('/api/uxdocs') === 0) {
|
|
13
|
+
if (req.method === "OPTIONS") {
|
|
14
|
+
res.end("OK");
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const rawReqToString = async (req) => {
|
|
18
|
+
const buffers = [];
|
|
19
|
+
for await (const chunk of req) {
|
|
20
|
+
buffers.push(chunk);
|
|
21
|
+
}
|
|
22
|
+
return Buffer.concat(buffers).toString();
|
|
23
|
+
};
|
|
24
|
+
const jsonString = await rawReqToString(req);
|
|
25
|
+
const jsonObject = JSON.parse(jsonString);
|
|
26
|
+
const fileUrl = `wwwroot/docs/${jsonObject.relativePath}`;
|
|
27
|
+
console.log(fileUrl);
|
|
28
|
+
const content = fs_1.default.readFileSync(fileUrl, 'utf8');
|
|
29
|
+
res.end(content);
|
|
30
|
+
}
|
|
31
|
+
else if (req.url.indexOf('/omnia/fonts/') === 0 || req.url.indexOf('/omnia/images/') === 0) {
|
|
12
32
|
res.setHeader('Cache-Control', 'public, max-age=31536000');
|
|
13
33
|
req.url = req.url.replace("/omnia/", "/omnia/dist/");
|
|
14
34
|
next();
|
|
@@ -17,7 +17,7 @@ function omniaPlugin(options) {
|
|
|
17
17
|
// 'vue-tsx-support/lib/vca': 'vue-tsx-support/dist/esm/vca.js',
|
|
18
18
|
// 'vue-tsx-support/lib/api': 'vue-tsx-support/dist/esm/api.js',
|
|
19
19
|
'csx': 'csx/lib.es2015/index.js',
|
|
20
|
-
'vue': 'vue/dist/vue.esm-bundler.js',
|
|
20
|
+
'vue': 'vue/dist/vue.runtime.esm-bundler.js',
|
|
21
21
|
// 'vue-class-component': 'vue-class-component/dist/vue-class-component.esm.js',
|
|
22
22
|
// 'vue-property-decorator': 'vue-property-decorator/lib/vue-property-decorator.js',
|
|
23
23
|
'vue-virtual-scroller': 'vue-virtual-scroller/dist/vue-virtual-scroller.esm.js',
|
|
@@ -3,14 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const $ = tslib_1.__importStar(require("../variables"));
|
|
5
5
|
var path = require('path');
|
|
6
|
-
function default_1(
|
|
7
|
-
var tsLoaderOptions = {
|
|
8
|
-
happyPackMode: true,
|
|
9
|
-
transpileOnly: true
|
|
10
|
-
};
|
|
11
|
-
if (treeshaking) {
|
|
12
|
-
tsLoaderOptions.configFile = path.resolve(__dirname, "../config/tsconfig.es2015.json");
|
|
13
|
-
}
|
|
6
|
+
function default_1() {
|
|
14
7
|
return [{
|
|
15
8
|
test: /\.ts$/,
|
|
16
9
|
use: [
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
var path = require('path');
|
|
5
5
|
const $ = tslib_1.__importStar(require("../variables"));
|
|
6
|
-
function default_1(
|
|
6
|
+
function default_1() {
|
|
7
7
|
const babelLoaderOptions = {
|
|
8
8
|
cacheDirectory: true,
|
|
9
9
|
plugins: [
|
|
@@ -21,28 +21,32 @@ function default_1(treeshaking, wcDomProps, hotModuleReload) {
|
|
|
21
21
|
],
|
|
22
22
|
]
|
|
23
23
|
};
|
|
24
|
-
var tsLoaderOptions = {
|
|
25
|
-
happyPackMode: true,
|
|
26
|
-
transpileOnly: true
|
|
27
|
-
};
|
|
28
|
-
if (treeshaking) {
|
|
29
|
-
tsLoaderOptions.configFile = path.resolve(__dirname, "../config/tsconfig.es2015.json");
|
|
30
|
-
}
|
|
31
24
|
let loaders = [
|
|
32
|
-
//{
|
|
33
|
-
// loader: 'thread-loader',
|
|
34
|
-
// options: {
|
|
35
|
-
// workers: require('os').cpus().length,
|
|
36
|
-
// },
|
|
37
|
-
//},
|
|
38
25
|
{
|
|
39
26
|
loader: 'babel-loader',
|
|
40
27
|
options: babelLoaderOptions
|
|
41
28
|
},
|
|
42
|
-
//{
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
29
|
+
// {
|
|
30
|
+
// loader: "swc-loader",
|
|
31
|
+
// options: {
|
|
32
|
+
// jsc: {
|
|
33
|
+
// // parser: {
|
|
34
|
+
// // syntax: "typescript"
|
|
35
|
+
// // }
|
|
36
|
+
// // This makes swc-loader invoke swc synchronously.
|
|
37
|
+
// //sync: true,
|
|
38
|
+
// parser: {
|
|
39
|
+
// // "syntax": "ecmascript",
|
|
40
|
+
// // "jsx": true
|
|
41
|
+
// "syntax": "typescript",
|
|
42
|
+
// "tsx": true,
|
|
43
|
+
// },
|
|
44
|
+
// experimental: {
|
|
45
|
+
// plugins: [["swc-plugin-vue-jsx", {}]]
|
|
46
|
+
// }
|
|
47
|
+
// }
|
|
48
|
+
// }
|
|
49
|
+
// },
|
|
46
50
|
{
|
|
47
51
|
loader: 'esbuild-loader',
|
|
48
52
|
options: {
|
|
@@ -50,17 +54,8 @@ function default_1(treeshaking, wcDomProps, hotModuleReload) {
|
|
|
50
54
|
target: 'es2022',
|
|
51
55
|
jsx: 'preserve'
|
|
52
56
|
},
|
|
53
|
-
}
|
|
54
|
-
// {
|
|
55
|
-
// loader: path.resolve(__dirname, $.isExtensionEnv ? './vue-domprops-loader.js' : './vue-domprops-loader.ts'),
|
|
56
|
-
// options: wcDomProps
|
|
57
|
-
// }
|
|
57
|
+
}
|
|
58
58
|
];
|
|
59
|
-
if (hotModuleReload) {
|
|
60
|
-
loaders.push({
|
|
61
|
-
loader: path.resolve(__dirname, __dirname, $.isExtensionEnv ? './vue-tsx-hot-loader.js' : './vue-tsx-hot-loader.ts'),
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
59
|
return [
|
|
65
60
|
{
|
|
66
61
|
test: /\.tsx$/,
|
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.22-vnext",
|
|
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.22-vnext",
|
|
23
|
+
"@omnia/tooling-composers": "8.0.22-vnext",
|
|
24
24
|
"@types/mousetrap": "1.5.34",
|
|
25
25
|
"@types/quill": "1.3.6",
|
|
26
26
|
"@types/zepto": "1.0.29",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"css-loader": "5.0.1",
|
|
34
34
|
"file-loader": "6.2.0",
|
|
35
35
|
"null-loader": "4.0.1",
|
|
36
|
-
"terser": "5.
|
|
36
|
+
"terser": "5.17.1",
|
|
37
37
|
"less-loader": "10.2.0",
|
|
38
38
|
"mini-css-extract-plugin": "1.3.3",
|
|
39
|
-
"postcss-loader": "
|
|
39
|
+
"postcss-loader": "7.2.4",
|
|
40
40
|
"postcss-prefix-selector": "1.14.0",
|
|
41
41
|
"sass": "1.43.4",
|
|
42
42
|
"sass-loader": "12.3.0",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"es6-promise": "4.2.4",
|
|
56
56
|
"hash-sum": "1.0.2",
|
|
57
57
|
"lodash": "4.17.21",
|
|
58
|
-
"vite": "4.
|
|
58
|
+
"vite": "4.3.1",
|
|
59
|
+
"vite-plugin-inspect": "0.7.23",
|
|
59
60
|
"appdata-path": "1.0.0",
|
|
60
61
|
"json-parse-better-errors": "1.0.2"
|
|
61
62
|
},
|
package/internal-do-not-import-from-here/1cacb55c-202b-4cd7-819d-11bad92fa9cb.wcdefinitions.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
package/internal-do-not-import-from-here/bb000000-0000-bbbb-0000-0000000000bb.wcdefinitions.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"omfx-enterpriseproperties-taxonomyfield-value-definition":["availableParents"],"omfx-sp-language-picker":["valueBind","onValueChanged","scopedSlots","styles"],"omfx-targeting-filter":["filter","onFilterChanged","fullWidth"],"omfx-term-picker":["startWithIds","termSetId","preSelectedTermIds","lcid","onTermsSelected","filterOptions","validator","description"],"omfx-termset-picker":["termSetId","onChanged"],"omnia-fx-spfx-wp-settings":["onClosed","onChange"],"omfx-queryable-enterpriseproperties":["serviceId","additionalBuiltInProperties"],"omfx-app-instance-delete-blade":["appInstance","handleClose","handleDeleteCompleted"],"omfx-appinstance-editing-journey":["appInstance","content","onCanceled","onSave","onCompleted"],"omfx-app-instance-permission-blade":["appInstance","handleClose","onAppPermissionsUpdated"],"omfx-app-instance-information-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-instance-users-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-instance-enterprise-step":["context","registerOnGoToNext","registerOnGoToPrev"],"omfx-app-provisioning-wizard":["initialAppTemplate","initialAppDefinition","initialAppInstance","onInstancePropertiesChanged","onProvisioningStarted","onProvisioningCompleted","styles","templatesToShow"],"omfx-button":["preset","icon","tooltip","size","mode","styles","onClick"],"omfx-color-picker":["display","valueBind","onValueChanged","errorMessages","validator","attachedToParent"],"omfx-confirm-dialog":["dialogOptions","onClose","styles","icon"],"omfx-connected-tenant":["onValueChanged","scopedSlots"],"omfx-context-language-picker":["onValueChanged","scopedSlots"],"omfx-datatable":["items","header","onSort","renderItem","onPaging","scrollElementSelector"],"omfx-date-time-picker":["valueBind","onValueChanged","formatter","description"],"omfx-enterpriseproperties-datetimefield-display":["settings"],"omfx-enterpriseproperty-picker":["preSelectedPropertyInternalName","propertyItems","externalPropertyItems","onChange","requiredWithValidator"],"omfx-enterprisepropertyset-picker":["preSelectedPropertySetId","propertySetItems","onChange","requiredWithValidator"],"omfx-features-journey":["onInstanceClosed"],"omfx-file-uploader":["onFileChanged","limitedFileTypes"],"omfx-numeric-indicator":["clickCallback","valueBind","label","style"],"omfx-barchart-indicator":["clickCallback","loadData","hasData","chartValues"],"omfx-heading":["styles","onChange"],"omfx-icon":["valueBind","styles","iconAttrs"],"omfx-icon-picker":["valueBind","onValueChanged","errorMessages","validator"],"omfx-iframe":["js","html","css","iframeHeight","iframeCustomStyle"],"omfx-media-imagegrid":["images","onImageSelected"],"omfx-input-language-picker":["multilingualContext"],"omfx-journey":["onInstanceCreated","onInstanceClosed","blades"],"omfx-language-picker":["valueBind","onValueChanged","scopedSlots","styles","loadLanguage"],"omfx-media-picker-image":["image","imageStyle"],"omfx-media-picker-video":["video"],"omfx-multilingual-input":["valueBind","richTextSettings","requiredWithValidator","onValueChanged"],"omfx-organizationtree":["valueBind","onNewUserSelected"],"omfx-reportees":["users","manager","onUserClick"],"omfx-permission-input":["settings","contextParams"],"omfx-persona":["largeImage","linkToProfilecard","highlight","user","onUserClick"],"omfx-post-component":["richTextSettings","cardStyle","showMoreSize","styles","allowLikes","enableMention","customSlots"],"omfx-aboutuser":["user"],"omfx-profilecard":["user","scopedSlots","appendToBody"],"omfx-profilecard-dialog":["user"],"omfx-rich-text-editor":["onContentChange","onContentDataChange","onInstanceCreated"],"omfx-rich-text-editor-renderer":["editorContent"],"omfx-rollup-empty":["text","renderingMode"],"omfx-rollup-filter":["valueBind","onFilterChange","useRollupFilterRouter"],"omfx-security-trimer":["content","alternativeContent","roles"],"omfx-settings-pane":["valueBind","onCancel","onSave"],"omfx-comment-component":["topicId","comments","template","dynamicInput","richTextSettings","enableBestReply","canMarkBestReply","sortOrder","allowLikes","cardStyle","showMoreSize","additionalRoles"],"omfx-people-tagging-component":["content","disabled","richTextSettings","enableMention","contentChanged","mentionChanged","resetContetnRte"],"omfx-like-component":["topicId","commendId","commentLikeService","likes","likeListingTemplate","extendComponents"],"omfx-like-listing-template":["likes","socialReactionStylings","currentSocialReaction","close"],"omfx-template-picker":["valueBind","templates","onValueChanged"],"omfx-text-translator":["onTranslateCompleted"],"omfx-themedefinition-editor":["hideBodySettings","hideChromeSettings","hideBorderSettings","valueBind","onValueChanged","attachedToParent"],"omfx-timezone-picker":["valueBind","onValueChanged","scopedSlots","styles"],"omfx-url-input":["valueBind","requiredWithValidator","onValueChanged","onBlur"],"omfx-field-validation":["useValidator","checkValue","rules","getCheckValue"],"omfx-wizard":["styles","onInstanceCreated","steps"]}
|
package/internal-do-not-import-from-here/cc000000-0000-cccc-0000-0000000000cc.wcdefinitions.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
var path = require('path');
|
|
5
|
-
const $ = tslib_1.__importStar(require("../variables"));
|
|
6
|
-
function default_1(treeshaking, wcDomProps, hotModuleReload) {
|
|
7
|
-
const babelLoaderOptions = {
|
|
8
|
-
cacheDirectory: true,
|
|
9
|
-
plugins: [
|
|
10
|
-
// "@babel/plugin-transform-modules-commonjs",
|
|
11
|
-
// "syntax-jsx",
|
|
12
|
-
// "jsx-v-model",
|
|
13
|
-
// "transform-vue-jsx"
|
|
14
|
-
],
|
|
15
|
-
presets: [
|
|
16
|
-
[
|
|
17
|
-
'@vue/babel-preset-jsx',
|
|
18
|
-
{
|
|
19
|
-
vModel: true,
|
|
20
|
-
compositionAPI: true,
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
]
|
|
24
|
-
};
|
|
25
|
-
var tsLoaderOptions = {
|
|
26
|
-
happyPackMode: true,
|
|
27
|
-
transpileOnly: true
|
|
28
|
-
};
|
|
29
|
-
if (treeshaking) {
|
|
30
|
-
tsLoaderOptions.configFile = path.resolve(__dirname, "../config/tsconfig.es2015.json");
|
|
31
|
-
}
|
|
32
|
-
let loaders = [
|
|
33
|
-
//{
|
|
34
|
-
// loader: 'cache-loader'
|
|
35
|
-
//},
|
|
36
|
-
{
|
|
37
|
-
loader: 'babel-loader',
|
|
38
|
-
options: babelLoaderOptions
|
|
39
|
-
},
|
|
40
|
-
//{
|
|
41
|
-
// loader: path.resolve(__dirname, './wcmanifest-loader.js')
|
|
42
|
-
//},
|
|
43
|
-
{
|
|
44
|
-
loader: path.resolve(__dirname, $.isExtensionEnv ? './vue-domprops-loader.js' : './vue-domprops-loader.ts'),
|
|
45
|
-
options: wcDomProps
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
if (hotModuleReload) {
|
|
49
|
-
loaders.push({
|
|
50
|
-
loader: path.resolve(__dirname, $.isExtensionEnv ? './vue-tsx-hot-loader.js' : './vue-tsx-hot-loader.ts')
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
return [
|
|
54
|
-
{
|
|
55
|
-
test: /\.jsx$/,
|
|
56
|
-
exclude: /(node_modules|bower_components)/,
|
|
57
|
-
use: loaders
|
|
58
|
-
}
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
exports.default = default_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function (contents: any): string;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// borrowed from vue-loader
|
|
4
|
-
var path = require('path');
|
|
5
|
-
var hash = require('hash-sum');
|
|
6
|
-
var cache = Object.create(null);
|
|
7
|
-
var sepRE = new RegExp(path.sep.replace('\\', '\\\\'), 'g');
|
|
8
|
-
function genId(file, context) {
|
|
9
|
-
const contextPath = context.split(path.sep);
|
|
10
|
-
const rootId = contextPath[contextPath.length - 1];
|
|
11
|
-
file = rootId + '/' + path.relative(context, file).replace(sepRE, '/');
|
|
12
|
-
return cache[file] || (cache[file] = hash(file));
|
|
13
|
-
}
|
|
14
|
-
function default_1(contents) {
|
|
15
|
-
const id = genId(this.resourcePath, process.cwd());
|
|
16
|
-
return contents + ";\n" +
|
|
17
|
-
`if (module.hot) {
|
|
18
|
-
const api = require('vue-hot-reload-api')
|
|
19
|
-
const Vue = require('vue')
|
|
20
|
-
|
|
21
|
-
api.install(Vue)
|
|
22
|
-
|
|
23
|
-
if (!api.compatible) {
|
|
24
|
-
throw new Error('vue-hot-reload-api is not compatible with the version of Vue you are using.')
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
module.hot.accept();
|
|
28
|
-
|
|
29
|
-
let componentOptionsKey = Object.keys(exports).filter(key => exports[key].prototype &&
|
|
30
|
-
exports[key].prototype instanceof Vue.default)[0];
|
|
31
|
-
let componentOptions = exports.default || exports[componentOptionsKey];
|
|
32
|
-
|
|
33
|
-
if (!componentOptions) {
|
|
34
|
-
throw new Error('Cannot find Vue component')
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (!module.hot.data) {
|
|
38
|
-
api.createRecord('${id}', componentOptions);
|
|
39
|
-
} else {
|
|
40
|
-
api.rerender('${id}', componentOptions);
|
|
41
|
-
}
|
|
42
|
-
}`;
|
|
43
|
-
}
|
|
44
|
-
exports.default = default_1;
|