@modern-js/repo-generator 0.0.0-next-20221216022956 → 0.0.0-next-20221216030247
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
|
@@ -134249,7 +134249,7 @@ var require_constants6 = __commonJS({
|
|
|
134249
134249
|
"../../../toolkit/utils/dist/constants.js"(exports) {
|
|
134250
134250
|
"use strict";
|
|
134251
134251
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
134252
|
-
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.
|
|
134252
|
+
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;
|
|
134253
134253
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
|
134254
134254
|
exports.ROUTE_SPEC_FILE = "route.json";
|
|
134255
134255
|
exports.MAIN_ENTRY_NAME = "main";
|
|
@@ -134270,6 +134270,7 @@ var require_constants6 = __commonJS({
|
|
|
134270
134270
|
exports.LOADER_ROUTES_DIR = `loader-routes`;
|
|
134271
134271
|
exports.INTERNAL_APP_TOOLS_PLUGINS = {
|
|
134272
134272
|
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
|
134273
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
134273
134274
|
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
|
134274
134275
|
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
|
134275
134276
|
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
|
@@ -134285,9 +134286,6 @@ var require_constants6 = __commonJS({
|
|
|
134285
134286
|
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
|
134286
134287
|
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
134287
134288
|
};
|
|
134288
|
-
exports.INTERNAL_APP_TOOLS_RUNTIME_PLUGINS = {
|
|
134289
|
-
"@modern-js/runtime": "@modern-js/runtime/cli"
|
|
134290
|
-
};
|
|
134291
134289
|
exports.INTERNAL_MODULE_TOOLS_PLUGINS = {
|
|
134292
134290
|
"@modern-js/module-tools": "@modern-js/module-tools",
|
|
134293
134291
|
"@modern-js/doc-tools": "@modern-js/doc-tools",
|
|
@@ -134329,21 +134327,14 @@ var require_constants6 = __commonJS({
|
|
|
134329
134327
|
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
134330
134328
|
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
134331
134329
|
};
|
|
134332
|
-
exports.SERVER_PLUGIN_BFF = "@modern-js/plugin-bff";
|
|
134333
|
-
exports.SERVER_PLUGIN_EXPRESS = "@modern-js/plugin-express";
|
|
134334
|
-
exports.SERVER_PLUGIN_EGG = "@modern-js/plugin-egg";
|
|
134335
|
-
exports.SERVER_PLUGIN_KOA = "@modern-js/plugin-koa";
|
|
134336
|
-
exports.SERVER_PLUGIN_NEST = "@modern-js/plugin-nest";
|
|
134337
|
-
exports.SERVER_PLUGIN_SERVER = "@modern-js/plugin-server";
|
|
134338
|
-
exports.SERVER_PLUGIN_POLYFILL = "@modern-js/plugin-polyfill";
|
|
134339
134330
|
exports.INTERNAL_SERVER_PLUGINS = {
|
|
134340
|
-
|
|
134341
|
-
|
|
134342
|
-
|
|
134343
|
-
|
|
134344
|
-
|
|
134345
|
-
|
|
134346
|
-
|
|
134331
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/server",
|
|
134332
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express",
|
|
134333
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg",
|
|
134334
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa",
|
|
134335
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/server",
|
|
134336
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/server",
|
|
134337
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill"
|
|
134347
134338
|
};
|
|
134348
134339
|
exports.PLUGIN_SCHEMAS = {
|
|
134349
134340
|
"@modern-js/runtime": [
|
|
@@ -136847,7 +136838,8 @@ var ZH_LOCALE = {
|
|
|
136847
136838
|
mwa_storybook: "启用「Visual Testing (Storybook)」模式",
|
|
136848
136839
|
ssg: "启用「SSG」功能",
|
|
136849
136840
|
polyfill: "启用「基于 UA 的 Polyfill」功能",
|
|
136850
|
-
proxy: "启用「全局代理」"
|
|
136841
|
+
proxy: "启用「全局代理」",
|
|
136842
|
+
swc: "启用「SWC 编译」"
|
|
136851
136843
|
},
|
|
136852
136844
|
element: {
|
|
136853
136845
|
self: "创建工程元素",
|
|
@@ -136935,7 +136927,8 @@ var EN_LOCALE = {
|
|
|
136935
136927
|
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
136936
136928
|
ssg: "Enable SSG",
|
|
136937
136929
|
polyfill: "Enable UA-based Polyfill Feature",
|
|
136938
|
-
proxy: "Enable Global Proxy"
|
|
136930
|
+
proxy: "Enable Global Proxy",
|
|
136931
|
+
swc: "Enable SWC Compile"
|
|
136939
136932
|
},
|
|
136940
136933
|
element: {
|
|
136941
136934
|
self: "Create project element",
|
|
@@ -137286,6 +137279,7 @@ var ActionFunction = /* @__PURE__ */ ((ActionFunction2) => {
|
|
|
137286
137279
|
ActionFunction2["SSG"] = "ssg";
|
|
137287
137280
|
ActionFunction2["Polyfill"] = "polyfill";
|
|
137288
137281
|
ActionFunction2["Proxy"] = "proxy";
|
|
137282
|
+
ActionFunction2["SWC"] = "swc";
|
|
137289
137283
|
return ActionFunction2;
|
|
137290
137284
|
})(ActionFunction || {});
|
|
137291
137285
|
var ActionRefactor = /* @__PURE__ */ ((ActionRefactor2) => {
|
|
@@ -137313,7 +137307,8 @@ var ActionFunctionText = {
|
|
|
137313
137307
|
["runtimeApi"]: () => i18n.t(localeKeys.action.function.runtime_api),
|
|
137314
137308
|
["ssg"]: () => i18n.t(localeKeys.action.function.ssg),
|
|
137315
137309
|
["polyfill"]: () => i18n.t(localeKeys.action.function.polyfill),
|
|
137316
|
-
["proxy"]: () => i18n.t(localeKeys.action.function.proxy)
|
|
137310
|
+
["proxy"]: () => i18n.t(localeKeys.action.function.proxy),
|
|
137311
|
+
["swc"]: () => i18n.t(localeKeys.action.function.swc)
|
|
137317
137312
|
};
|
|
137318
137313
|
var ActionRefactorText = {
|
|
137319
137314
|
["react_router_5"]: () => i18n.t(localeKeys.action.refactor.react_router_5)
|
|
@@ -137331,7 +137326,8 @@ var MWAActionFunctions = [
|
|
|
137331
137326
|
ActionFunction.Test,
|
|
137332
137327
|
ActionFunction.Storybook,
|
|
137333
137328
|
ActionFunction.Polyfill,
|
|
137334
|
-
ActionFunction.Proxy
|
|
137329
|
+
ActionFunction.Proxy,
|
|
137330
|
+
ActionFunction.SWC
|
|
137335
137331
|
];
|
|
137336
137332
|
var MWAActionElements = [ActionElement.Entry, ActionElement.Server];
|
|
137337
137333
|
var MWAActionReactors = [ActionRefactor.ReactRouter5];
|
|
@@ -137423,7 +137419,8 @@ var MWAActionFunctionsDevDependencies = {
|
|
|
137423
137419
|
[ActionFunction.E2ETest]: "@modern-js/plugin-e2e",
|
|
137424
137420
|
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
137425
137421
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
137426
|
-
[ActionFunction.TailwindCSS]: "tailwindcss"
|
|
137422
|
+
[ActionFunction.TailwindCSS]: "tailwindcss",
|
|
137423
|
+
[ActionFunction.SWC]: "@modern-js/plugin-swc"
|
|
137427
137424
|
};
|
|
137428
137425
|
var MWAActionFunctionsDependencies = {
|
|
137429
137426
|
[ActionFunction.BFF]: "@modern-js/plugin-bff",
|
|
@@ -137458,7 +137455,8 @@ var MWANewActionGenerators = {
|
|
|
137458
137455
|
[ActionFunction.Storybook]: "@modern-js/dependence-generator",
|
|
137459
137456
|
[ActionFunction.SSG]: "@modern-js/ssg-generator",
|
|
137460
137457
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
137461
|
-
[ActionFunction.Proxy]: "@modern-js/dependence-generator"
|
|
137458
|
+
[ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
|
137459
|
+
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
137462
137460
|
},
|
|
137463
137461
|
[ActionType.Refactor]: {
|
|
137464
137462
|
[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-20221216030247",
|
|
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-
|
|
32
|
-
"@modern-js/
|
|
33
|
-
"@modern-js/
|
|
34
|
-
"@modern-js/generator
|
|
35
|
-
"@modern-js/
|
|
36
|
-
"@modern-js/utils": "0.0.0-next-
|
|
37
|
-
"@scripts/build": "0.0.0-next-
|
|
38
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
29
|
+
"@modern-js/base-generator": "0.0.0-next-20221216030247",
|
|
30
|
+
"@modern-js/generator-common": "0.0.0-next-20221216030247",
|
|
31
|
+
"@modern-js/generator-utils": "0.0.0-next-20221216030247",
|
|
32
|
+
"@modern-js/generator-plugin": "0.0.0-next-20221216030247",
|
|
33
|
+
"@modern-js/module-generator": "0.0.0-next-20221216030247",
|
|
34
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20221216030247",
|
|
35
|
+
"@modern-js/mwa-generator": "0.0.0-next-20221216030247",
|
|
36
|
+
"@modern-js/utils": "0.0.0-next-20221216030247",
|
|
37
|
+
"@scripts/build": "0.0.0-next-20221216030247",
|
|
38
|
+
"@scripts/jest-config": "0.0.0-next-20221216030247"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|