@shijiu/jsview 2.1.364-test.0 → 2.1.365-test.0
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/package.json
CHANGED
|
@@ -110,14 +110,16 @@ function getHostConfig()
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
content += `
|
|
113
|
-
shared:
|
|
114
|
-
if(options.jsviewMode == '
|
|
113
|
+
shared: {`;
|
|
114
|
+
if(options.jsviewMode == 'shared') {
|
|
115
115
|
content += `
|
|
116
|
-
'jsview'
|
|
116
|
+
'@shijiu/jsview-vue': {},
|
|
117
|
+
jsview: { packagePath: '@shijiu/jsview-vue' },`;
|
|
117
118
|
}
|
|
118
119
|
content += `
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
vue: {},
|
|
121
|
+
'vue-router': {},
|
|
122
|
+
},
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
return config
|
|
@@ -345,8 +347,8 @@ async function main(argv)
|
|
|
345
347
|
}
|
|
346
348
|
options.mode = argv.mode;
|
|
347
349
|
|
|
348
|
-
if(argv.jsview != '
|
|
349
|
-
Logger.ErrorAndExit('Invalid --jsview, its value can only be "
|
|
350
|
+
if(argv.jsview != 'shared' && argv.jsview != 'expose') {
|
|
351
|
+
Logger.ErrorAndExit('Invalid --jsview, its value can only be "shared" or "expose".');
|
|
350
352
|
}
|
|
351
353
|
options.jsviewMode = argv.jsview;
|
|
352
354
|
|
|
@@ -377,7 +379,7 @@ async function main(argv)
|
|
|
377
379
|
|
|
378
380
|
const requiredUsages = {
|
|
379
381
|
'--mode': 'Project mode. the value is "remote" or "host"',
|
|
380
|
-
'--jsview': 'jsview mode. the value is "
|
|
382
|
+
'--jsview': 'jsview mode. the value is "shared" or "expose"',
|
|
381
383
|
};
|
|
382
384
|
const optionalUsages = {
|
|
383
385
|
'--remote-domain': 'remote domain. Host use this domain to access remote module.',
|