@modern-js/upgrade 0.0.0-next-20221021092811 → 0.0.0-next-20221027082629
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 +6 -6
package/dist/index.js
CHANGED
@@ -35012,7 +35012,7 @@ var require_compatRequire = __commonJSMin((exports) => {
|
|
35012
35012
|
var require_constants = __commonJSMin((exports) => {
|
35013
35013
|
"use strict";
|
35014
35014
|
Object.defineProperty(exports, "__esModule", { value: true });
|
35015
|
-
exports.PLUGIN_SCHEMAS = exports.
|
35015
|
+
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;
|
35016
35016
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
35017
35017
|
exports.ROUTE_SPEC_FILE = "route.json";
|
35018
35018
|
exports.MAIN_ENTRY_NAME = "main";
|
@@ -35028,57 +35028,39 @@ var require_constants = __commonJSMin((exports) => {
|
|
35028
35028
|
exports.CONFIG_FILE_EXTENSIONS = [".js", ".ts", ".ejs", ".mjs"];
|
35029
35029
|
exports.OUTPUT_CONFIG_FILE = "modern.config.json";
|
35030
35030
|
exports.DEFAULT_SERVER_CONFIG = "modern.server-runtime.config";
|
35031
|
-
exports.
|
35032
|
-
"@modern-js/app-tools":
|
35033
|
-
"@modern-js/monorepo-tools":
|
35034
|
-
"@modern-js/module-tools":
|
35035
|
-
"@modern-js/module-tools-v2":
|
35036
|
-
"@modern-js/runtime":
|
35037
|
-
"@modern-js/plugin-less":
|
35038
|
-
"@modern-js/plugin-sass":
|
35039
|
-
"@modern-js/plugin-esbuild":
|
35040
|
-
"@modern-js/plugin-proxy":
|
35041
|
-
"@modern-js/plugin-ssg":
|
35042
|
-
"@modern-js/plugin-bff":
|
35043
|
-
|
35044
|
-
|
35045
|
-
|
35046
|
-
"@modern-js/plugin-
|
35047
|
-
"@modern-js/plugin-
|
35048
|
-
"@modern-js/plugin-
|
35049
|
-
"@modern-js/plugin-
|
35050
|
-
|
35051
|
-
|
35052
|
-
|
35053
|
-
"@modern-js/plugin-
|
35054
|
-
|
35055
|
-
|
35056
|
-
|
35057
|
-
"@modern-js/plugin-
|
35058
|
-
|
35059
|
-
|
35060
|
-
|
35061
|
-
"@modern-js/plugin-nest":
|
35062
|
-
|
35063
|
-
|
35064
|
-
},
|
35065
|
-
"@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
|
35066
|
-
"@modern-js/plugin-server": {
|
35067
|
-
cli: "@modern-js/plugin-server/cli",
|
35068
|
-
server: "@modern-js/plugin-server/server"
|
35069
|
-
},
|
35070
|
-
"@modern-js/plugin-garfish": {
|
35071
|
-
cli: "@modern-js/plugin-garfish/cli"
|
35072
|
-
},
|
35073
|
-
"@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
|
35074
|
-
"@modern-js/plugin-polyfill": {
|
35075
|
-
cli: "@modern-js/plugin-polyfill/cli",
|
35076
|
-
server: "@modern-js/plugin-polyfill"
|
35077
|
-
},
|
35078
|
-
"@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" },
|
35079
|
-
"@modern-js/plugin-router-legacy": {
|
35080
|
-
cli: "@modern-js/plugin-router-legacy/cli"
|
35081
|
-
}
|
35031
|
+
exports.INTERNAL_CLI_PLUGINS = {
|
35032
|
+
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
35033
|
+
"@modern-js/monorepo-tools": "@modern-js/monorepo-tools/cli",
|
35034
|
+
"@modern-js/module-tools": "@modern-js/module-tools/cli",
|
35035
|
+
"@modern-js/module-tools-v2": "@modern-js/module-tools-v2",
|
35036
|
+
"@modern-js/runtime": "@modern-js/runtime/cli",
|
35037
|
+
"@modern-js/plugin-less": "@modern-js/plugin-less/cli",
|
35038
|
+
"@modern-js/plugin-sass": "@modern-js/plugin-sass/cli",
|
35039
|
+
"@modern-js/plugin-esbuild": "@modern-js/plugin-esbuild/cli",
|
35040
|
+
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
35041
|
+
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
35042
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
35043
|
+
"@modern-js/plugin-testing": "@modern-js/plugin-testing/cli",
|
35044
|
+
"@modern-js/plugin-storybook": "@modern-js/plugin-storybook/cli",
|
35045
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express/cli",
|
35046
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg/cli",
|
35047
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa/cli",
|
35048
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/cli",
|
35049
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/cli",
|
35050
|
+
"@modern-js/plugin-garfish": "@modern-js/plugin-garfish/cli",
|
35051
|
+
"@modern-js/plugin-tailwindcss": "@modern-js/plugin-tailwindcss/cli",
|
35052
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
35053
|
+
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
35054
|
+
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
35055
|
+
};
|
35056
|
+
exports.INTERNAL_SERVER_PLUGINS = {
|
35057
|
+
"@modern-js/plugin-bff": "@modern-js/plugin-bff/server",
|
35058
|
+
"@modern-js/plugin-express": "@modern-js/plugin-express",
|
35059
|
+
"@modern-js/plugin-egg": "@modern-js/plugin-egg",
|
35060
|
+
"@modern-js/plugin-koa": "@modern-js/plugin-koa",
|
35061
|
+
"@modern-js/plugin-nest": "@modern-js/plugin-nest/server",
|
35062
|
+
"@modern-js/plugin-server": "@modern-js/plugin-server/server",
|
35063
|
+
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill"
|
35082
35064
|
};
|
35083
35065
|
exports.PLUGIN_SCHEMAS = {
|
35084
35066
|
"@modern-js/runtime": [
|
@@ -35145,27 +35127,6 @@ var require_constants = __commonJSMin((exports) => {
|
|
35145
35127
|
schema: { typeof: ["string", "object"] }
|
35146
35128
|
}
|
35147
35129
|
],
|
35148
|
-
"@modern-js/plugin-unbundle": [
|
35149
|
-
{
|
35150
|
-
target: "output.disableAutoImportStyle",
|
35151
|
-
schema: { type: "boolean" }
|
35152
|
-
},
|
35153
|
-
{
|
35154
|
-
target: "dev.unbundle",
|
35155
|
-
schema: {
|
35156
|
-
type: "object",
|
35157
|
-
properties: {
|
35158
|
-
ignore: {
|
35159
|
-
type: ["string", "array"],
|
35160
|
-
items: { type: "string" }
|
35161
|
-
},
|
35162
|
-
ignoreModuleCache: { type: "boolean" },
|
35163
|
-
clearPdnCache: { type: "boolean" },
|
35164
|
-
pdnHost: { type: "string" }
|
35165
|
-
}
|
35166
|
-
}
|
35167
|
-
}
|
35168
|
-
],
|
35169
35130
|
"@modern-js/plugin-ssg": [
|
35170
35131
|
{
|
35171
35132
|
target: "output.ssg",
|
@@ -36152,6 +36113,7 @@ var require_chainId = __commonJSMin((exports) => {
|
|
36152
36113
|
STYLE: "style-loader",
|
36153
36114
|
POSTCSS: "postcss",
|
36154
36115
|
MARKDOWN: "markdown",
|
36116
|
+
IGNORE_CSS: "ignore-css",
|
36155
36117
|
CSS_MODULES_TS: "css-modules-typescript",
|
36156
36118
|
MINI_CSS_EXTRACT: "mini-css-extract"
|
36157
36119
|
},
|
@@ -36222,6 +36184,32 @@ var require_version = __commonJSMin((exports) => {
|
|
36222
36184
|
};
|
36223
36185
|
exports.isReact18 = isReact18;
|
36224
36186
|
});
|
36187
|
+
var require_plugin = __commonJSMin((exports) => {
|
36188
|
+
"use strict";
|
36189
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
36190
|
+
exports.getInternalPlugins = void 0;
|
36191
|
+
var constants_1 = require_constants();
|
36192
|
+
var is_1 = require_is();
|
36193
|
+
function getInternalPlugins(appDirectory, internalPlugins = constants_1.INTERNAL_CLI_PLUGINS) {
|
36194
|
+
return [
|
36195
|
+
...Object.keys(internalPlugins).filter((name4) => {
|
36196
|
+
const config = internalPlugins[name4];
|
36197
|
+
if (typeof config !== "string" && config.forced === true) {
|
36198
|
+
return true;
|
36199
|
+
}
|
36200
|
+
return (0, is_1.isDepExists)(appDirectory, name4);
|
36201
|
+
}).map((name4) => {
|
36202
|
+
const config = internalPlugins[name4];
|
36203
|
+
if (typeof config !== "string") {
|
36204
|
+
return config.path;
|
36205
|
+
} else {
|
36206
|
+
return config;
|
36207
|
+
}
|
36208
|
+
})
|
36209
|
+
];
|
36210
|
+
}
|
36211
|
+
exports.getInternalPlugins = getInternalPlugins;
|
36212
|
+
});
|
36225
36213
|
var require_dist = __commonJSMin((exports) => {
|
36226
36214
|
"use strict";
|
36227
36215
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
@@ -36282,6 +36270,7 @@ var require_dist = __commonJSMin((exports) => {
|
|
36282
36270
|
__exportStar(require_analyzeProject(), exports);
|
36283
36271
|
__exportStar(require_chainId(), exports);
|
36284
36272
|
__exportStar(require_version(), exports);
|
36273
|
+
__exportStar(require_plugin(), exports);
|
36285
36274
|
});
|
36286
36275
|
var require_constants2 = __commonJSMin((exports) => {
|
36287
36276
|
"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-20221027082629",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"types": "./dist/index.d.ts",
|
17
17
|
"main": "./dist/index.js",
|
@@ -34,12 +34,12 @@
|
|
34
34
|
},
|
35
35
|
"devDependencies": {
|
36
36
|
"@babel/runtime": "^7.18.0",
|
37
|
-
"@modern-js/utils": "0.0.0-next-
|
37
|
+
"@modern-js/utils": "0.0.0-next-20221027082629",
|
38
38
|
"@modern-js/codesmith": "1.6.3",
|
39
|
-
"@modern-js/plugin-i18n": "0.0.0-next-
|
40
|
-
"@modern-js/upgrade-generator": "0.0.0-next-
|
41
|
-
"@scripts/build": "0.0.0-next-
|
42
|
-
"@scripts/jest-config": "0.0.0-next-
|
39
|
+
"@modern-js/plugin-i18n": "0.0.0-next-20221027082629",
|
40
|
+
"@modern-js/upgrade-generator": "0.0.0-next-20221027082629",
|
41
|
+
"@scripts/build": "0.0.0-next-20221027082629",
|
42
|
+
"@scripts/jest-config": "0.0.0-next-20221027082629",
|
43
43
|
"@types/jest": "^27",
|
44
44
|
"@types/node": "^14",
|
45
45
|
"jest": "^27",
|