@modern-js/mwa-generator 1.3.3 → 1.3.4
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/dist/js/node/main.js
CHANGED
|
@@ -269705,7 +269705,8 @@ const EN_LOCALE = {
|
|
|
269705
269705
|
mwa_storybook: 'Enable "Visual Testing (Storybook)"',
|
|
269706
269706
|
ssg: 'Enable "SSG"',
|
|
269707
269707
|
polyfill: 'Enable "UA-based Polyfill feature"',
|
|
269708
|
-
deploy: 'Enable "Deploy"'
|
|
269708
|
+
deploy: 'Enable "Deploy"',
|
|
269709
|
+
proxy: 'Enable "Global Proxy"'
|
|
269709
269710
|
},
|
|
269710
269711
|
element: {
|
|
269711
269712
|
self: 'Create project element',
|
|
@@ -269871,7 +269872,8 @@ const ZH_LOCALE = {
|
|
|
269871
269872
|
mwa_storybook: '启用「Visual Testing (Storybook)」模式',
|
|
269872
269873
|
ssg: '启用「SSG」功能',
|
|
269873
269874
|
polyfill: '启用「基于 UA 的 Polyfill」功能',
|
|
269874
|
-
deploy: '启用「部署」功能'
|
|
269875
|
+
deploy: '启用「部署」功能',
|
|
269876
|
+
proxy: '启用「全局代理」'
|
|
269875
269877
|
},
|
|
269876
269878
|
element: {
|
|
269877
269879
|
self: '创建工程元素',
|
|
@@ -270650,6 +270652,7 @@ exports.ActionFunction = ActionFunction;
|
|
|
270650
270652
|
ActionFunction["SSG"] = "ssg";
|
|
270651
270653
|
ActionFunction["Polyfill"] = "polyfill";
|
|
270652
270654
|
ActionFunction["Deploy"] = "deploy";
|
|
270655
|
+
ActionFunction["Proxy"] = "proxy";
|
|
270653
270656
|
})(ActionFunction || (exports.ActionFunction = ActionFunction = {}));
|
|
270654
270657
|
|
|
270655
270658
|
let ActionRefactor;
|
|
@@ -270686,7 +270689,8 @@ const ActionFunctionText = {
|
|
|
270686
270689
|
[ActionFunction.RuntimeApi]: () => _locale.i18n.t(_locale.localeKeys.action.function.runtime_api),
|
|
270687
270690
|
[ActionFunction.SSG]: () => _locale.i18n.t(_locale.localeKeys.action.function.ssg),
|
|
270688
270691
|
[ActionFunction.Polyfill]: () => _locale.i18n.t(_locale.localeKeys.action.function.polyfill),
|
|
270689
|
-
[ActionFunction.Deploy]: () => _locale.i18n.t(_locale.localeKeys.action.function.deploy)
|
|
270692
|
+
[ActionFunction.Deploy]: () => _locale.i18n.t(_locale.localeKeys.action.function.deploy),
|
|
270693
|
+
[ActionFunction.Proxy]: () => _locale.i18n.t(_locale.localeKeys.action.function.proxy)
|
|
270690
270694
|
};
|
|
270691
270695
|
exports.ActionFunctionText = ActionFunctionText;
|
|
270692
270696
|
const ActionRefactorText = {
|
|
@@ -270911,7 +270915,7 @@ exports.MWAActionTypes = MWAActionTypes;
|
|
|
270911
270915
|
const MWAActionFunctions = [_common.ActionFunction.UnBundle, _common.ActionFunction.TailwindCSS, _common.ActionFunction.Less, _common.ActionFunction.Sass, _common.ActionFunction.BFF, _common.ActionFunction.SSG, _common.ActionFunction.MicroFrontend, _common.ActionFunction.Electron, // ActionFunction.I18n,
|
|
270912
270916
|
_common.ActionFunction.Test, _common.ActionFunction.Storybook, // ActionFunction.E2ETest,
|
|
270913
270917
|
// ActionFunction.Doc,
|
|
270914
|
-
_common.ActionFunction.Polyfill, _common.ActionFunction.Deploy];
|
|
270918
|
+
_common.ActionFunction.Polyfill, _common.ActionFunction.Deploy, _common.ActionFunction.Proxy];
|
|
270915
270919
|
exports.MWAActionFunctions = MWAActionFunctions;
|
|
270916
270920
|
const MWAActionElements = [_common.ActionElement.Entry, _common.ActionElement.Server];
|
|
270917
270921
|
exports.MWAActionElements = MWAActionElements;
|
|
@@ -270958,7 +270962,8 @@ const MWAActionFunctionsDevDependencies = {
|
|
|
270958
270962
|
[_common.ActionFunction.E2ETest]: '@modern-js/plugin-e2e',
|
|
270959
270963
|
[_common.ActionFunction.Doc]: '@modern-js/plugin-docsite',
|
|
270960
270964
|
[_common.ActionFunction.Electron]: '@modern-js/plugin-electron',
|
|
270961
|
-
[_common.ActionFunction.Storybook]: '@modern-js/plugin-storybook'
|
|
270965
|
+
[_common.ActionFunction.Storybook]: '@modern-js/plugin-storybook',
|
|
270966
|
+
[_common.ActionFunction.Proxy]: '@modern-js/plugin-proxy'
|
|
270962
270967
|
};
|
|
270963
270968
|
exports.MWAActionFunctionsDevDependencies = MWAActionFunctionsDevDependencies;
|
|
270964
270969
|
const MWAActionFunctionsDependencies = {
|
|
@@ -270996,7 +271001,8 @@ const MWANewActionGenerators = {
|
|
|
270996
271001
|
[_common.ActionFunction.Storybook]: '@modern-js/dependence-generator',
|
|
270997
271002
|
[_common.ActionFunction.SSG]: '@modern-js/ssg-generator',
|
|
270998
271003
|
[_common.ActionFunction.Polyfill]: '@modern-js/dependence-generator',
|
|
270999
|
-
[_common.ActionFunction.Deploy]: '@modern-js/cloud-deploy-generator'
|
|
271004
|
+
[_common.ActionFunction.Deploy]: '@modern-js/cloud-deploy-generator',
|
|
271005
|
+
[_common.ActionFunction.Proxy]: '@modern-js/dependence-generator'
|
|
271000
271006
|
},
|
|
271001
271007
|
[_common.ActionType.Refactor]: {
|
|
271002
271008
|
[_common.ActionRefactor.BFFToApp]: '@modern-js/bff-refactor-generator'
|
|
@@ -274214,7 +274220,8 @@ const prettyInstructions = (appContext, config) => {
|
|
|
274214
274220
|
entrypoints,
|
|
274215
274221
|
serverRoutes,
|
|
274216
274222
|
port,
|
|
274217
|
-
existSrc
|
|
274223
|
+
existSrc,
|
|
274224
|
+
checkedEntries
|
|
274218
274225
|
} = appContext;
|
|
274219
274226
|
const urls = getAddressUrls(config.dev.https && (0, _is.isDev)() ? 'https' : 'http', port);
|
|
274220
274227
|
const routes = existSrc ? serverRoutes.filter(route => route.entryName) : serverRoutes;
|
|
@@ -274234,11 +274241,19 @@ const prettyInstructions = (appContext, config) => {
|
|
|
274234
274241
|
message += ` ${_chalk.default.bold(`> ${type}`)}\n`;
|
|
274235
274242
|
routes.forEach(({
|
|
274236
274243
|
entryName,
|
|
274237
|
-
urlPath
|
|
274244
|
+
urlPath,
|
|
274245
|
+
isSSR
|
|
274238
274246
|
}) => {
|
|
274239
|
-
|
|
274247
|
+
if (!checkedEntries.includes(entryName)) {
|
|
274248
|
+
return;
|
|
274249
|
+
}
|
|
274250
|
+
|
|
274251
|
+
message += ` ${_chalk.default.yellowBright(isSSR ? 'λ' : '○')} ${_chalk.default.yellowBright(entryName.padEnd(maxNameLength + 8))}${_chalk.default.cyanBright(normalizeUrl(`${url}/${urlPath}`))}\n`;
|
|
274240
274252
|
});
|
|
274241
274253
|
});
|
|
274254
|
+
message += '\n';
|
|
274255
|
+
message += _chalk.default.cyanBright(' λ (Server) server-side renders at runtime\n');
|
|
274256
|
+
message += _chalk.default.cyanBright(' ○ (Static) client-side rendered as static HTML\n');
|
|
274242
274257
|
}
|
|
274243
274258
|
|
|
274244
274259
|
return message;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.3.
|
|
14
|
+
"version": "1.3.4",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/js/node/main.js",
|
|
17
17
|
"files": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@modern-js/entry-generator": "^1.3.1",
|
|
29
29
|
"@modern-js/electron-generator": "^1.2.1",
|
|
30
30
|
"@modern-js/dependence-generator": "^1.2.2",
|
|
31
|
-
"@modern-js/generator-common": "^1.4.
|
|
31
|
+
"@modern-js/generator-common": "^1.4.2",
|
|
32
32
|
"@modern-js/generator-utils": "^1.2.1",
|
|
33
33
|
"@modern-js/plugin-i18n": "^1.2.1",
|
|
34
34
|
"@types/jest": "^26",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
|
-
"main": "./dist/js/node/main.js",
|
|
50
49
|
"registry": "https://registry.npmjs.org/",
|
|
51
50
|
"access": "public"
|
|
52
51
|
},
|