@modern-js/repo-generator 0.0.0-next-20221121140557 → 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 +6 -3
- package/package.json +12 -12
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",
|
|
@@ -140363,9 +140365,10 @@ var require_routes = __commonJSMin((exports) => {
|
|
|
140363
140365
|
return filename.slice(0, -extname.length);
|
|
140364
140366
|
};
|
|
140365
140367
|
exports.getPathWithoutExt = getPathWithoutExt;
|
|
140366
|
-
var getRouteId = (componentPath, routesDir) => {
|
|
140368
|
+
var getRouteId = (componentPath, routesDir, entryName) => {
|
|
140367
140369
|
const relativePath = (0, path_2.normalizeToPosixPath)(path_1.default.relative(routesDir, componentPath));
|
|
140368
|
-
const
|
|
140370
|
+
const pathWithoutExt = (0, exports.getPathWithoutExt)(relativePath);
|
|
140371
|
+
const id = `${entryName}_${pathWithoutExt}`;
|
|
140369
140372
|
return id;
|
|
140370
140373
|
};
|
|
140371
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": [
|
|
@@ -23,22 +23,22 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@babel/runtime": "^7.18.0",
|
|
26
|
-
"@modern-js/base-generator": "0.0.0-next-20221121140557",
|
|
27
26
|
"@modern-js/codesmith": "2.0.0",
|
|
28
27
|
"@modern-js/codesmith-api-app": "2.0.0",
|
|
29
|
-
"@modern-js/generator-common": "0.0.0-next-20221121140557",
|
|
30
|
-
"@modern-js/generator-plugin": "0.0.0-next-20221121140557",
|
|
31
|
-
"@modern-js/generator-utils": "0.0.0-next-20221121140557",
|
|
32
|
-
"@modern-js/module-generator": "0.0.0-next-20221121140557",
|
|
33
|
-
"@modern-js/monorepo-generator": "0.0.0-next-20221121140557",
|
|
34
|
-
"@modern-js/mwa-generator": "0.0.0-next-20221121140557",
|
|
35
|
-
"@modern-js/utils": "0.0.0-next-20221121140557",
|
|
36
|
-
"@scripts/build": "0.0.0-next-20221121140557",
|
|
37
|
-
"@scripts/jest-config": "0.0.0-next-20221121140557",
|
|
38
28
|
"@types/jest": "^27",
|
|
39
29
|
"@types/node": "^14",
|
|
40
30
|
"jest": "^27",
|
|
41
|
-
"typescript": "^4"
|
|
31
|
+
"typescript": "^4",
|
|
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": {
|