@modern-js/repo-generator 0.0.0-next-20221121124710 → 0.0.0-next-20221122140537
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 +10 -3
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -139092,7 +139092,7 @@ var require_compatRequire2 = __commonJSMin((exports) => {
|
|
|
139092
139092
|
var require_constants6 = __commonJSMin((exports) => {
|
|
139093
139093
|
"use strict";
|
|
139094
139094
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
139095
|
-
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;
|
|
139095
|
+
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.INTERNAL_CLI_PLUGINS = 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;
|
|
139096
139096
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
|
139097
139097
|
exports.ROUTE_SPEC_FILE = "route.json";
|
|
139098
139098
|
exports.MAIN_ENTRY_NAME = "main";
|
|
@@ -139108,6 +139108,8 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
|
139108
139108
|
exports.CONFIG_FILE_EXTENSIONS = [".js", ".ts", ".ejs", ".mjs"];
|
|
139109
139109
|
exports.OUTPUT_CONFIG_FILE = "modern.config.json";
|
|
139110
139110
|
exports.DEFAULT_SERVER_CONFIG = "modern.server-runtime.config";
|
|
139111
|
+
exports.ROUTE_MINIFEST_FILE = "routes-manifest.json";
|
|
139112
|
+
exports.ROUTE_MANIFEST = `_MODERNJS_ROUTE_MANIFEST`;
|
|
139111
139113
|
exports.INTERNAL_CLI_PLUGINS = {
|
|
139112
139114
|
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
|
139113
139115
|
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
|
@@ -139212,6 +139214,10 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
|
139212
139214
|
{
|
|
139213
139215
|
target: "source.designSystem.supportStyledComponents",
|
|
139214
139216
|
schema: { type: ["boolean"] }
|
|
139217
|
+
},
|
|
139218
|
+
{
|
|
139219
|
+
target: "designSystem",
|
|
139220
|
+
schema: { typeof: ["object"] }
|
|
139215
139221
|
}
|
|
139216
139222
|
],
|
|
139217
139223
|
"@modern-js/plugin-router": [
|
|
@@ -140359,9 +140365,10 @@ var require_routes = __commonJSMin((exports) => {
|
|
|
140359
140365
|
return filename.slice(0, -extname.length);
|
|
140360
140366
|
};
|
|
140361
140367
|
exports.getPathWithoutExt = getPathWithoutExt;
|
|
140362
|
-
var getRouteId = (componentPath, routesDir) => {
|
|
140368
|
+
var getRouteId = (componentPath, routesDir, entryName) => {
|
|
140363
140369
|
const relativePath = (0, path_2.normalizeToPosixPath)(path_1.default.relative(routesDir, componentPath));
|
|
140364
|
-
const
|
|
140370
|
+
const pathWithoutExt = (0, exports.getPathWithoutExt)(relativePath);
|
|
140371
|
+
const id = `${entryName}_${pathWithoutExt}`;
|
|
140365
140372
|
return id;
|
|
140366
140373
|
};
|
|
140367
140374
|
exports.getRouteId = getRouteId;
|
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-20221122140537",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"@types/node": "^14",
|
|
30
30
|
"jest": "^27",
|
|
31
31
|
"typescript": "^4",
|
|
32
|
-
"@modern-js/base-generator": "0.0.0-next-
|
|
33
|
-
"@modern-js/generator-common": "0.0.0-next-
|
|
34
|
-
"@modern-js/generator-plugin": "0.0.0-next-
|
|
35
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
36
|
-
"@modern-js/
|
|
37
|
-
"@modern-js/
|
|
38
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
39
|
-
"@modern-js/utils": "0.0.0-next-
|
|
40
|
-
"@scripts/build": "0.0.0-next-
|
|
41
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
32
|
+
"@modern-js/base-generator": "0.0.0-next-20221122140537",
|
|
33
|
+
"@modern-js/generator-common": "0.0.0-next-20221122140537",
|
|
34
|
+
"@modern-js/generator-plugin": "0.0.0-next-20221122140537",
|
|
35
|
+
"@modern-js/generator-utils": "0.0.0-next-20221122140537",
|
|
36
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20221122140537",
|
|
37
|
+
"@modern-js/module-generator": "0.0.0-next-20221122140537",
|
|
38
|
+
"@modern-js/mwa-generator": "0.0.0-next-20221122140537",
|
|
39
|
+
"@modern-js/utils": "0.0.0-next-20221122140537",
|
|
40
|
+
"@scripts/build": "0.0.0-next-20221122140537",
|
|
41
|
+
"@scripts/jest-config": "0.0.0-next-20221122140537"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"modernConfig": {
|