@modern-js/repo-generator 0.0.0-next-20221215090705 → 0.0.0-next-20221215111914
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/index.js +22 -24
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -134241,7 +134241,7 @@ var require_constants6 = __commonJS({
|
|
|
134241
134241
|
"../../../toolkit/utils/dist/constants.js"(exports) {
|
|
134242
134242
|
"use strict";
|
|
134243
134243
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
134244
|
-
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.
|
|
134244
|
+
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.INTERNAL_CLI_PLUGINS = exports.INTERNAL_DOC_TOOLS_PLUGINS = exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = exports.INTERNAL_MODULE_TOOLS_PLUGINS = exports.INTERNAL_APP_TOOLS_PLUGINS = exports.LOADER_ROUTES_DIR = exports.ROUTE_MANIFEST = exports.ROUTE_MINIFEST_FILE = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
|
134245
134245
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
|
134246
134246
|
exports.ROUTE_SPEC_FILE = "route.json";
|
|
134247
134247
|
exports.MAIN_ENTRY_NAME = "main";
|
|
@@ -134262,6 +134262,7 @@ var require_constants6 = __commonJS({
|
|
|
134262
134262
|
exports.LOADER_ROUTES_DIR = `loader-routes`;
|
|
134263
134263
|
exports.INTERNAL_APP_TOOLS_PLUGINS = {
|
|
134264
134264
|
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
|
134265
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
134265
134266
|
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
|
134266
134267
|
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
|
134267
134268
|
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
|
@@ -134277,9 +134278,6 @@ var require_constants6 = __commonJS({
|
|
|
134277
134278
|
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
|
134278
134279
|
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
134279
134280
|
};
|
|
134280
|
-
exports.INTERNAL_APP_TOOLS_RUNTIME_PLUGINS = {
|
|
134281
|
-
"@modern-js/runtime": "@modern-js/runtime/cli"
|
|
134282
|
-
};
|
|
134283
134281
|
exports.INTERNAL_MODULE_TOOLS_PLUGINS = {
|
|
134284
134282
|
"@modern-js/module-tools": "@modern-js/module-tools",
|
|
134285
134283
|
"@modern-js/doc-tools": "@modern-js/doc-tools",
|
|
@@ -134321,21 +134319,14 @@ var require_constants6 = __commonJS({
|
|
|
134321
134319
|
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
134322
134320
|
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
134323
134321
|
};
|
|
134324
|
-
exports.SERVER_PLUGIN_BFF = "@modern-js/plugin-bff";
|
|
134325
|
-
exports.SERVER_PLUGIN_EXPRESS = "@modern-js/plugin-express";
|
|
134326
|
-
exports.SERVER_PLUGIN_EGG = "@modern-js/plugin-egg";
|
|
134327
|
-
exports.SERVER_PLUGIN_KOA = "@modern-js/plugin-koa";
|
|
134328
|
-
exports.SERVER_PLUGIN_NEST = "@modern-js/plugin-nest";
|
|
134329
|
-
exports.SERVER_PLUGIN_SERVER = "@modern-js/plugin-server";
|
|
134330
|
-
exports.SERVER_PLUGIN_POLYFILL = "@modern-js/plugin-polyfill";
|
|
134331
134322
|
exports.INTERNAL_SERVER_PLUGINS = {
|
|
134332
|
-
|
|
134333
|
-
|
|
134334
|
-
|
|
134335
|
-
|
|
134336
|
-
|
|
134337
|
-
|
|
134338
|
-
|
|
134323
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/server",
|
|
134324
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express",
|
|
134325
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg",
|
|
134326
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa",
|
|
134327
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/server",
|
|
134328
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/server",
|
|
134329
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill"
|
|
134339
134330
|
};
|
|
134340
134331
|
exports.PLUGIN_SCHEMAS = {
|
|
134341
134332
|
"@modern-js/runtime": [
|
|
@@ -136839,7 +136830,8 @@ var ZH_LOCALE = {
|
|
|
136839
136830
|
mwa_storybook: "启用「Visual Testing (Storybook)」模式",
|
|
136840
136831
|
ssg: "启用「SSG」功能",
|
|
136841
136832
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
136842
|
-
proxy: "启用「全局代理」"
|
|
136833
|
+
proxy: "启用「全局代理」",
|
|
136834
|
+
swc: "启用「SWC 编译」"
|
|
136843
136835
|
},
|
|
136844
136836
|
element: {
|
|
136845
136837
|
self: "创建工程元素",
|
|
@@ -136927,7 +136919,8 @@ var EN_LOCALE = {
|
|
|
136927
136919
|
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
136928
136920
|
ssg: "Enable SSG",
|
|
136929
136921
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
136930
|
-
proxy: "Enable Global Proxy"
|
|
136922
|
+
proxy: "Enable Global Proxy",
|
|
136923
|
+
swc: "Enable SWC Compile"
|
|
136931
136924
|
},
|
|
136932
136925
|
element: {
|
|
136933
136926
|
self: "Create project element",
|
|
@@ -137278,6 +137271,7 @@ var ActionFunction = /* @__PURE__ */ ((ActionFunction2) => {
|
|
|
137278
137271
|
ActionFunction2["SSG"] = "ssg";
|
|
137279
137272
|
ActionFunction2["Polyfill"] = "polyfill";
|
|
137280
137273
|
ActionFunction2["Proxy"] = "proxy";
|
|
137274
|
+
ActionFunction2["SWC"] = "swc";
|
|
137281
137275
|
return ActionFunction2;
|
|
137282
137276
|
})(ActionFunction || {});
|
|
137283
137277
|
var ActionRefactor = /* @__PURE__ */ ((ActionRefactor2) => {
|
|
@@ -137305,7 +137299,8 @@ var ActionFunctionText = {
|
|
|
137305
137299
|
["runtimeApi"]: () => i18n.t(localeKeys.action.function.runtime_api),
|
|
137306
137300
|
["ssg"]: () => i18n.t(localeKeys.action.function.ssg),
|
|
137307
137301
|
["polyfill"]: () => i18n.t(localeKeys.action.function.polyfill),
|
|
137308
|
-
["proxy"]: () => i18n.t(localeKeys.action.function.proxy)
|
|
137302
|
+
["proxy"]: () => i18n.t(localeKeys.action.function.proxy),
|
|
137303
|
+
["swc"]: () => i18n.t(localeKeys.action.function.swc)
|
|
137309
137304
|
};
|
|
137310
137305
|
var ActionRefactorText = {
|
|
137311
137306
|
["react_router_5"]: () => i18n.t(localeKeys.action.refactor.react_router_5)
|
|
@@ -137323,7 +137318,8 @@ var MWAActionFunctions = [
|
|
|
137323
137318
|
ActionFunction.Test,
|
|
137324
137319
|
ActionFunction.Storybook,
|
|
137325
137320
|
ActionFunction.Polyfill,
|
|
137326
|
-
ActionFunction.Proxy
|
|
137321
|
+
ActionFunction.Proxy,
|
|
137322
|
+
ActionFunction.SWC
|
|
137327
137323
|
];
|
|
137328
137324
|
var MWAActionElements = [ActionElement.Entry, ActionElement.Server];
|
|
137329
137325
|
var MWAActionReactors = [ActionRefactor.ReactRouter5];
|
|
@@ -137415,7 +137411,8 @@ var MWAActionFunctionsDevDependencies = {
|
|
|
137415
137411
|
[ActionFunction.E2ETest]: "@modern-js/plugin-e2e",
|
|
137416
137412
|
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
137417
137413
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
137418
|
-
[ActionFunction.TailwindCSS]: "tailwindcss"
|
|
137414
|
+
[ActionFunction.TailwindCSS]: "tailwindcss",
|
|
137415
|
+
[ActionFunction.SWC]: "@modern-js/plugin-swc"
|
|
137419
137416
|
};
|
|
137420
137417
|
var MWAActionFunctionsDependencies = {
|
|
137421
137418
|
[ActionFunction.BFF]: "@modern-js/plugin-bff",
|
|
@@ -137450,7 +137447,8 @@ var MWANewActionGenerators = {
|
|
|
137450
137447
|
[ActionFunction.Storybook]: "@modern-js/dependence-generator",
|
|
137451
137448
|
[ActionFunction.SSG]: "@modern-js/ssg-generator",
|
|
137452
137449
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
137453
|
-
[ActionFunction.Proxy]: "@modern-js/dependence-generator"
|
|
137450
|
+
[ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
|
137451
|
+
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
137454
137452
|
},
|
|
137455
137453
|
[ActionType.Refactor]: {
|
|
137456
137454
|
[ActionRefactor.ReactRouter5]: "@modern-js/router-legacy-generator"
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "0.0.0-next-
|
|
14
|
+
"version": "0.0.0-next-20221215111914",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"@types/node": "^14",
|
|
27
27
|
"jest": "^27",
|
|
28
28
|
"typescript": "^4",
|
|
29
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
30
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
31
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
32
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@scripts/
|
|
38
|
-
"@scripts/
|
|
29
|
+
"@modern-js/base-generator": "0.0.0-next-20221215111914",
|
|
30
|
+
"@modern-js/generator-common": "0.0.0-next-20221215111914",
|
|
31
|
+
"@modern-js/generator-plugin": "0.0.0-next-20221215111914",
|
|
32
|
+
"@modern-js/generator-utils": "0.0.0-next-20221215111914",
|
|
33
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20221215111914",
|
|
34
|
+
"@modern-js/module-generator": "0.0.0-next-20221215111914",
|
|
35
|
+
"@modern-js/utils": "0.0.0-next-20221215111914",
|
|
36
|
+
"@modern-js/mwa-generator": "0.0.0-next-20221215111914",
|
|
37
|
+
"@scripts/jest-config": "0.0.0-next-20221215111914",
|
|
38
|
+
"@scripts/build": "0.0.0-next-20221215111914"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|