@modern-js/repo-generator 0.0.0-next-20221021092811 → 0.0.0-next-20221026060249
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 +62 -73
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -143382,7 +143382,7 @@ var require_compatRequire2 = __commonJSMin((exports) => {
|
|
|
143382
143382
|
var require_constants6 = __commonJSMin((exports) => {
|
|
143383
143383
|
"use strict";
|
|
143384
143384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
143385
|
-
exports.PLUGIN_SCHEMAS = exports.
|
|
143385
|
+
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.INTERNAL_CLI_PLUGINS = 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;
|
|
143386
143386
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
|
143387
143387
|
exports.ROUTE_SPEC_FILE = "route.json";
|
|
143388
143388
|
exports.MAIN_ENTRY_NAME = "main";
|
|
@@ -143398,57 +143398,39 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
|
143398
143398
|
exports.CONFIG_FILE_EXTENSIONS = [".js", ".ts", ".ejs", ".mjs"];
|
|
143399
143399
|
exports.OUTPUT_CONFIG_FILE = "modern.config.json";
|
|
143400
143400
|
exports.DEFAULT_SERVER_CONFIG = "modern.server-runtime.config";
|
|
143401
|
-
exports.
|
|
143402
|
-
"@modern-js/app-tools":
|
|
143403
|
-
"@modern-js/monorepo-tools":
|
|
143404
|
-
"@modern-js/module-tools":
|
|
143405
|
-
"@modern-js/module-tools-v2":
|
|
143406
|
-
"@modern-js/runtime":
|
|
143407
|
-
"@modern-js/plugin-less":
|
|
143408
|
-
"@modern-js/plugin-sass":
|
|
143409
|
-
"@modern-js/plugin-esbuild":
|
|
143410
|
-
"@modern-js/plugin-proxy":
|
|
143411
|
-
"@modern-js/plugin-ssg":
|
|
143412
|
-
"@modern-js/plugin-bff":
|
|
143413
|
-
|
|
143414
|
-
|
|
143415
|
-
|
|
143416
|
-
"@modern-js/plugin-
|
|
143417
|
-
"@modern-js/plugin-
|
|
143418
|
-
"@modern-js/plugin-
|
|
143419
|
-
"@modern-js/plugin-
|
|
143420
|
-
|
|
143421
|
-
|
|
143422
|
-
|
|
143423
|
-
"@modern-js/plugin-
|
|
143424
|
-
|
|
143425
|
-
|
|
143426
|
-
|
|
143427
|
-
"@modern-js/plugin-
|
|
143428
|
-
|
|
143429
|
-
|
|
143430
|
-
|
|
143431
|
-
"@modern-js/plugin-nest":
|
|
143432
|
-
|
|
143433
|
-
|
|
143434
|
-
},
|
|
143435
|
-
"@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
|
|
143436
|
-
"@modern-js/plugin-server": {
|
|
143437
|
-
cli: "@modern-js/plugin-server/cli",
|
|
143438
|
-
server: "@modern-js/plugin-server/server"
|
|
143439
|
-
},
|
|
143440
|
-
"@modern-js/plugin-garfish": {
|
|
143441
|
-
cli: "@modern-js/plugin-garfish/cli"
|
|
143442
|
-
},
|
|
143443
|
-
"@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
|
|
143444
|
-
"@modern-js/plugin-polyfill": {
|
|
143445
|
-
cli: "@modern-js/plugin-polyfill/cli",
|
|
143446
|
-
server: "@modern-js/plugin-polyfill"
|
|
143447
|
-
},
|
|
143448
|
-
"@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" },
|
|
143449
|
-
"@modern-js/plugin-router-legacy": {
|
|
143450
|
-
cli: "@modern-js/plugin-router-legacy/cli"
|
|
143451
|
-
}
|
|
143401
|
+
exports.INTERNAL_CLI_PLUGINS = {
|
|
143402
|
+
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
|
143403
|
+
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
|
143404
|
+
"@modern-js/module-tools": "@modern-js/module-tools/cli",
|
|
143405
|
+
"@modern-js/module-tools-v2": "@modern-js/module-tools-v2",
|
|
143406
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
143407
|
+
"@modern-js/plugin-less": "@modern-js/plugin-less/cli",
|
|
143408
|
+
"@modern-js/plugin-sass": "@modern-js/plugin-sass/cli",
|
|
143409
|
+
"@modern-js/plugin-esbuild": "@modern-js/plugin-esbuild/cli",
|
|
143410
|
+
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
|
143411
|
+
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
|
143412
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
|
143413
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
|
143414
|
+
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
|
143415
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express/cli",
|
|
143416
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg/cli",
|
|
143417
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa/cli",
|
|
143418
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/cli",
|
|
143419
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/cli",
|
|
143420
|
+
"@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
|
|
143421
|
+
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
|
143422
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
|
143423
|
+
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
143424
|
+
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
143425
|
+
};
|
|
143426
|
+
exports.INTERNAL_SERVER_PLUGINS = {
|
|
143427
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/server",
|
|
143428
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express",
|
|
143429
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg",
|
|
143430
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa",
|
|
143431
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/server",
|
|
143432
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/server",
|
|
143433
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill"
|
|
143452
143434
|
};
|
|
143453
143435
|
exports.PLUGIN_SCHEMAS = {
|
|
143454
143436
|
"@modern-js/runtime": [
|
|
@@ -143515,27 +143497,6 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
|
143515
143497
|
schema: { typeof: ["string", "object"] }
|
|
143516
143498
|
}
|
|
143517
143499
|
],
|
|
143518
|
-
"@modern-js/plugin-unbundle": [
|
|
143519
|
-
{
|
|
143520
|
-
target: "output.disableAutoImportStyle",
|
|
143521
|
-
schema: { type: "boolean" }
|
|
143522
|
-
},
|
|
143523
|
-
{
|
|
143524
|
-
target: "dev.unbundle",
|
|
143525
|
-
schema: {
|
|
143526
|
-
type: "object",
|
|
143527
|
-
properties: {
|
|
143528
|
-
ignore: {
|
|
143529
|
-
type: ["string", "array"],
|
|
143530
|
-
items: { type: "string" }
|
|
143531
|
-
},
|
|
143532
|
-
ignoreModuleCache: { type: "boolean" },
|
|
143533
|
-
clearPdnCache: { type: "boolean" },
|
|
143534
|
-
pdnHost: { type: "string" }
|
|
143535
|
-
}
|
|
143536
|
-
}
|
|
143537
|
-
}
|
|
143538
|
-
],
|
|
143539
143500
|
"@modern-js/plugin-ssg": [
|
|
143540
143501
|
{
|
|
143541
143502
|
target: "output.ssg",
|
|
@@ -144522,6 +144483,7 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
|
144522
144483
|
STYLE: "style-loader",
|
|
144523
144484
|
POSTCSS: "postcss",
|
|
144524
144485
|
MARKDOWN: "markdown",
|
|
144486
|
+
IGNORE_CSS: "ignore-css",
|
|
144525
144487
|
CSS_MODULES_TS: "css-modules-typescript",
|
|
144526
144488
|
MINI_CSS_EXTRACT: "mini-css-extract"
|
|
144527
144489
|
},
|
|
@@ -144592,6 +144554,32 @@ var require_version2 = __commonJSMin((exports) => {
|
|
|
144592
144554
|
};
|
|
144593
144555
|
exports.isReact18 = isReact18;
|
|
144594
144556
|
});
|
|
144557
|
+
var require_plugin = __commonJSMin((exports) => {
|
|
144558
|
+
"use strict";
|
|
144559
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
144560
|
+
exports.getInternalPlugins = void 0;
|
|
144561
|
+
var constants_1 = require_constants6();
|
|
144562
|
+
var is_1 = require_is2();
|
|
144563
|
+
function getInternalPlugins(appDirectory, internalPlugins = constants_1.INTERNAL_CLI_PLUGINS) {
|
|
144564
|
+
return [
|
|
144565
|
+
...Object.keys(internalPlugins).filter((name5) => {
|
|
144566
|
+
const config = internalPlugins[name5];
|
|
144567
|
+
if (typeof config !== "string" && config.forced === true) {
|
|
144568
|
+
return true;
|
|
144569
|
+
}
|
|
144570
|
+
return (0, is_1.isDepExists)(appDirectory, name5);
|
|
144571
|
+
}).map((name5) => {
|
|
144572
|
+
const config = internalPlugins[name5];
|
|
144573
|
+
if (typeof config !== "string") {
|
|
144574
|
+
return config.path;
|
|
144575
|
+
} else {
|
|
144576
|
+
return config;
|
|
144577
|
+
}
|
|
144578
|
+
})
|
|
144579
|
+
];
|
|
144580
|
+
}
|
|
144581
|
+
exports.getInternalPlugins = getInternalPlugins;
|
|
144582
|
+
});
|
|
144595
144583
|
var require_dist2 = __commonJSMin((exports) => {
|
|
144596
144584
|
"use strict";
|
|
144597
144585
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -144652,6 +144640,7 @@ var require_dist2 = __commonJSMin((exports) => {
|
|
|
144652
144640
|
__exportStar(require_analyzeProject2(), exports);
|
|
144653
144641
|
__exportStar(require_chainId2(), exports);
|
|
144654
144642
|
__exportStar(require_version2(), exports);
|
|
144643
|
+
__exportStar(require_plugin(), exports);
|
|
144655
144644
|
});
|
|
144656
144645
|
var require_strip_ansi4 = __commonJSMin((exports) => {
|
|
144657
144646
|
"use strict";
|
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-20221026060249",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -23,18 +23,18 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@babel/runtime": "^7.18.0",
|
|
26
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
26
|
+
"@modern-js/base-generator": "0.0.0-next-20221026060249",
|
|
27
27
|
"@modern-js/codesmith": "1.6.3",
|
|
28
28
|
"@modern-js/codesmith-api-app": "1.6.3",
|
|
29
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
30
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
31
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
32
|
-
"@modern-js/module-generator": "0.0.0-next-
|
|
33
|
-
"@modern-js/monorepo-generator": "0.0.0-next-
|
|
34
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
35
|
-
"@modern-js/utils": "0.0.0-next-
|
|
36
|
-
"@scripts/build": "0.0.0-next-
|
|
37
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
29
|
+
"@modern-js/generator-common": "0.0.0-next-20221026060249",
|
|
30
|
+
"@modern-js/generator-plugin": "0.0.0-next-20221026060249",
|
|
31
|
+
"@modern-js/generator-utils": "0.0.0-next-20221026060249",
|
|
32
|
+
"@modern-js/module-generator": "0.0.0-next-20221026060249",
|
|
33
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20221026060249",
|
|
34
|
+
"@modern-js/mwa-generator": "0.0.0-next-20221026060249",
|
|
35
|
+
"@modern-js/utils": "0.0.0-next-20221026060249",
|
|
36
|
+
"@scripts/build": "0.0.0-next-20221026060249",
|
|
37
|
+
"@scripts/jest-config": "0.0.0-next-20221026060249",
|
|
38
38
|
"@types/jest": "^27",
|
|
39
39
|
"@types/node": "^14",
|
|
40
40
|
"jest": "^27",
|