@modern-js/repo-generator 0.0.0-next-20221219140554 → 0.0.0-next-20221220043320
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 +94 -25
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -136138,7 +136138,7 @@ var require_constants6 = __commonJS({
|
|
|
136138
136138
|
"../../../toolkit/utils/dist/constants.js"(exports) {
|
|
136139
136139
|
"use strict";
|
|
136140
136140
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
136141
|
-
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;
|
|
136141
|
+
exports.PLUGIN_SCHEMAS = exports.INTERNAL_SERVER_PLUGINS = exports.SERVER_PLUGIN_POLYFILL = exports.SERVER_PLUGIN_SERVER = exports.SERVER_PLUGIN_NEST = exports.SERVER_PLUGIN_KOA = exports.SERVER_PLUGIN_EGG = exports.SERVER_PLUGIN_EXPRESS = exports.SERVER_PLUGIN_BFF = exports.INTERNAL_CLI_PLUGINS = exports.INTERNAL_DOC_TOOLS_PLUGINS = exports.INTERNAL_MONOREPO_TOOLS_PLUGINS = exports.INTERNAL_MODULE_TOOLS_PLUGINS = exports.INTERNAL_APP_TOOLS_RUNTIME_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;
|
|
136142
136142
|
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
|
136143
136143
|
exports.ROUTE_SPEC_FILE = "route.json";
|
|
136144
136144
|
exports.MAIN_ENTRY_NAME = "main";
|
|
@@ -136159,7 +136159,6 @@ var require_constants6 = __commonJS({
|
|
|
136159
136159
|
exports.LOADER_ROUTES_DIR = `loader-routes`;
|
|
136160
136160
|
exports.INTERNAL_APP_TOOLS_PLUGINS = {
|
|
136161
136161
|
"@modern-js/app-tools": "@modern-js/app-tools/cli",
|
|
136162
|
-
"@modern-js/runtime": "@modern-js/runtime/cli",
|
|
136163
136162
|
"@modern-js/plugin-proxy": "@modern-js/plugin-proxy/cli",
|
|
136164
136163
|
"@modern-js/plugin-ssg": "@modern-js/plugin-ssg/cli",
|
|
136165
136164
|
"@modern-js/plugin-bff": "@modern-js/plugin-bff/cli",
|
|
@@ -136175,6 +136174,9 @@ var require_constants6 = __commonJS({
|
|
|
136175
136174
|
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/cli",
|
|
136176
136175
|
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
136177
136176
|
};
|
|
136177
|
+
exports.INTERNAL_APP_TOOLS_RUNTIME_PLUGINS = {
|
|
136178
|
+
"@modern-js/runtime": "@modern-js/runtime/cli"
|
|
136179
|
+
};
|
|
136178
136180
|
exports.INTERNAL_MODULE_TOOLS_PLUGINS = {
|
|
136179
136181
|
"@modern-js/module-tools": "@modern-js/module-tools",
|
|
136180
136182
|
"@modern-js/doc-tools": "@modern-js/doc-tools",
|
|
@@ -136216,14 +136218,21 @@ var require_constants6 = __commonJS({
|
|
|
136216
136218
|
"@modern-js/plugin-nocode": "@modern-js/plugin-nocode/cli",
|
|
136217
136219
|
"@modern-js/plugin-router-legacy": "@modern-js/plugin-router-legacy/cli"
|
|
136218
136220
|
};
|
|
136221
|
+
exports.SERVER_PLUGIN_BFF = "@modern-js/plugin-bff";
|
|
136222
|
+
exports.SERVER_PLUGIN_EXPRESS = "@modern-js/plugin-express";
|
|
136223
|
+
exports.SERVER_PLUGIN_EGG = "@modern-js/plugin-egg";
|
|
136224
|
+
exports.SERVER_PLUGIN_KOA = "@modern-js/plugin-koa";
|
|
136225
|
+
exports.SERVER_PLUGIN_NEST = "@modern-js/plugin-nest";
|
|
136226
|
+
exports.SERVER_PLUGIN_SERVER = "@modern-js/plugin-server";
|
|
136227
|
+
exports.SERVER_PLUGIN_POLYFILL = "@modern-js/plugin-polyfill";
|
|
136219
136228
|
exports.INTERNAL_SERVER_PLUGINS = {
|
|
136220
|
-
|
|
136221
|
-
|
|
136222
|
-
|
|
136223
|
-
|
|
136224
|
-
|
|
136225
|
-
|
|
136226
|
-
|
|
136229
|
+
[exports.SERVER_PLUGIN_BFF]: "@modern-js/plugin-bff/server",
|
|
136230
|
+
[exports.SERVER_PLUGIN_EXPRESS]: "@modern-js/plugin-express/server",
|
|
136231
|
+
[exports.SERVER_PLUGIN_EGG]: "@modern-js/plugin-egg/server",
|
|
136232
|
+
[exports.SERVER_PLUGIN_KOA]: "@modern-js/plugin-koa/server",
|
|
136233
|
+
[exports.SERVER_PLUGIN_NEST]: "@modern-js/plugin-nest/server",
|
|
136234
|
+
[exports.SERVER_PLUGIN_SERVER]: "@modern-js/plugin-server/server",
|
|
136235
|
+
[exports.SERVER_PLUGIN_POLYFILL]: "@modern-js/plugin-polyfill/server"
|
|
136227
136236
|
};
|
|
136228
136237
|
exports.PLUGIN_SCHEMAS = {
|
|
136229
136238
|
"@modern-js/runtime": [
|
|
@@ -138752,7 +138761,7 @@ var I18n = class {
|
|
|
138752
138761
|
}
|
|
138753
138762
|
format(msg, vars) {
|
|
138754
138763
|
return msg.replace(
|
|
138755
|
-
/\{(
|
|
138764
|
+
/\{(\w+)\}/g,
|
|
138756
138765
|
(_match, capture) => Object.prototype.hasOwnProperty.call(vars, capture) ? vars[capture] : capture
|
|
138757
138766
|
);
|
|
138758
138767
|
}
|
|
@@ -139250,6 +139259,13 @@ var MonorepoDefaultConfig = {
|
|
|
139250
139259
|
packageManager: PackageManager.Pnpm
|
|
139251
139260
|
};
|
|
139252
139261
|
|
|
139262
|
+
// ../../generator-common/dist/js/modern/mwa/common.js
|
|
139263
|
+
var Framework = /* @__PURE__ */ ((Framework2) => {
|
|
139264
|
+
Framework2["Express"] = "express";
|
|
139265
|
+
Framework2["Koa"] = "koa";
|
|
139266
|
+
return Framework2;
|
|
139267
|
+
})(Framework || {});
|
|
139268
|
+
|
|
139253
139269
|
// ../../generator-common/dist/js/modern/mwa/project.js
|
|
139254
139270
|
var getMWASchemaProperties = (extra) => {
|
|
139255
139271
|
return {
|
|
@@ -139435,7 +139451,6 @@ var getMWANewActionSchema = (extra = {}) => {
|
|
|
139435
139451
|
var MWAActionFunctionsDevDependencies = {
|
|
139436
139452
|
[ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
139437
139453
|
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
139438
|
-
[ActionFunction.E2ETest]: "@modern-js/plugin-e2e",
|
|
139439
139454
|
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
139440
139455
|
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
139441
139456
|
[ActionFunction.TailwindCSS]: "tailwindcss",
|
|
@@ -139444,7 +139459,6 @@ var MWAActionFunctionsDevDependencies = {
|
|
|
139444
139459
|
var MWAActionFunctionsDependencies = {
|
|
139445
139460
|
[ActionFunction.BFF]: "@modern-js/plugin-bff",
|
|
139446
139461
|
[ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
|
|
139447
|
-
[ActionFunction.I18n]: "@modern-js/plugin-i18n",
|
|
139448
139462
|
[ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
|
|
139449
139463
|
[ActionFunction.Polyfill]: "@modern-js/plugin-polyfill"
|
|
139450
139464
|
};
|
|
@@ -139453,10 +139467,10 @@ var MWAActionFunctionsAppendTypeContent = {
|
|
|
139453
139467
|
[ActionFunction.Test]: `/// <reference types='@modern-js/plugin-testing/types' />`
|
|
139454
139468
|
};
|
|
139455
139469
|
var MWAActionRefactorDependencies = {
|
|
139456
|
-
[ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-
|
|
139470
|
+
[ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-v5"
|
|
139457
139471
|
};
|
|
139458
139472
|
var MWAActionReactorAppendTypeContent = {
|
|
139459
|
-
[ActionRefactor.ReactRouter5]: `/// <reference types='@modern-js/plugin-router-
|
|
139473
|
+
[ActionRefactor.ReactRouter5]: `/// <reference types='@modern-js/plugin-router-v5/types' />`
|
|
139460
139474
|
};
|
|
139461
139475
|
var MWANewActionGenerators = {
|
|
139462
139476
|
[ActionType.Element]: {
|
|
@@ -139467,20 +139481,63 @@ var MWANewActionGenerators = {
|
|
|
139467
139481
|
[ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
|
|
139468
139482
|
[ActionFunction.BFF]: "@modern-js/bff-generator",
|
|
139469
139483
|
[ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
|
|
139470
|
-
[ActionFunction.I18n]: "@modern-js/dependence-generator",
|
|
139471
139484
|
[ActionFunction.Test]: "@modern-js/test-generator",
|
|
139472
|
-
[ActionFunction.E2ETest]: "@modern-js/dependence-generator",
|
|
139473
|
-
[ActionFunction.Doc]: "@modern-js/dependence-generator",
|
|
139474
139485
|
[ActionFunction.Storybook]: "@modern-js/dependence-generator",
|
|
139475
|
-
[ActionFunction.SSG]: "@modern-js/
|
|
139486
|
+
[ActionFunction.SSG]: "@modern-js/dependence-generator",
|
|
139476
139487
|
[ActionFunction.Polyfill]: "@modern-js/dependence-generator",
|
|
139477
139488
|
[ActionFunction.Proxy]: "@modern-js/dependence-generator",
|
|
139478
139489
|
[ActionFunction.SWC]: "@modern-js/dependence-generator"
|
|
139479
139490
|
},
|
|
139480
139491
|
[ActionType.Refactor]: {
|
|
139481
|
-
[ActionRefactor.ReactRouter5]: "@modern-js/router-
|
|
139492
|
+
[ActionRefactor.ReactRouter5]: "@modern-js/router-v5-generator"
|
|
139493
|
+
}
|
|
139494
|
+
};
|
|
139495
|
+
var MWANewActionPluginName = {
|
|
139496
|
+
[ActionType.Element]: {
|
|
139497
|
+
[ActionElement.Server]: "ServerPlugin"
|
|
139498
|
+
},
|
|
139499
|
+
[ActionType.Function]: {
|
|
139500
|
+
[ActionFunction.TailwindCSS]: "TailwindCSSPlugin",
|
|
139501
|
+
[ActionFunction.BFF]: "BFFPlugin",
|
|
139502
|
+
[ActionFunction.MicroFrontend]: "GarfishPlugin",
|
|
139503
|
+
[ActionFunction.Test]: "TestPlugin",
|
|
139504
|
+
[ActionFunction.Storybook]: "StorybookPlugin",
|
|
139505
|
+
[ActionFunction.SSG]: "SSGPlugin",
|
|
139506
|
+
[ActionFunction.Polyfill]: "PolyfillPlugin",
|
|
139507
|
+
[ActionFunction.Proxy]: "ProxyPlugin",
|
|
139508
|
+
[ActionFunction.SWC]: "SWCPlugin"
|
|
139509
|
+
},
|
|
139510
|
+
[ActionType.Refactor]: {
|
|
139511
|
+
[ActionRefactor.ReactRouter5]: "ReactRouter5Plugin"
|
|
139512
|
+
}
|
|
139513
|
+
};
|
|
139514
|
+
var MWANewActionPluginDependence = {
|
|
139515
|
+
[ActionType.Element]: {
|
|
139516
|
+
[ActionElement.Server]: "@modern-js/plugin-server"
|
|
139517
|
+
},
|
|
139518
|
+
[ActionType.Function]: {
|
|
139519
|
+
[ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
|
|
139520
|
+
[ActionFunction.BFF]: "@modern-js/plugin-bff",
|
|
139521
|
+
[ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
|
|
139522
|
+
[ActionFunction.Test]: "@modern-js/plugin-testing",
|
|
139523
|
+
[ActionFunction.Storybook]: "@modern-js/plugin-storybook",
|
|
139524
|
+
[ActionFunction.SSG]: "@modern-js/plugin-ssg",
|
|
139525
|
+
[ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
|
|
139526
|
+
[ActionFunction.Proxy]: "@modern-js/plugin-proxy",
|
|
139527
|
+
[ActionFunction.SWC]: "@modern-js/plugin-swc"
|
|
139528
|
+
},
|
|
139529
|
+
[ActionType.Refactor]: {
|
|
139530
|
+
[ActionRefactor.ReactRouter5]: "@modern-js/plugin-router-v5"
|
|
139482
139531
|
}
|
|
139483
139532
|
};
|
|
139533
|
+
var BFFPluginName = {
|
|
139534
|
+
[Framework.Express]: "ExpressBFFPlugin",
|
|
139535
|
+
[Framework.Koa]: "KoaBFFPlugin"
|
|
139536
|
+
};
|
|
139537
|
+
var BFFPluginDependence = {
|
|
139538
|
+
[Framework.Express]: "@modern-js/plugin-express",
|
|
139539
|
+
[Framework.Koa]: "@modern-js/plugin-koa"
|
|
139540
|
+
};
|
|
139484
139541
|
|
|
139485
139542
|
// ../../generator-common/dist/js/modern/newAction/module/index.js
|
|
139486
139543
|
var ModuleActionTypes = [ActionType.Function];
|
|
@@ -139539,19 +139596,27 @@ var ModuleActionFunctionsPeerDependencies = {
|
|
|
139539
139596
|
[ActionFunction.TailwindCSS]: "tailwindcss"
|
|
139540
139597
|
};
|
|
139541
139598
|
var ModuleActionFunctionsDependencies = {
|
|
139542
|
-
[ActionFunction.I18n]: "@modern-js/plugin-i18n",
|
|
139543
139599
|
[ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss"
|
|
139544
139600
|
};
|
|
139545
139601
|
var ModuleNewActionGenerators = {
|
|
139546
139602
|
[ActionType.Function]: {
|
|
139547
139603
|
[ActionFunction.TailwindCSS]: "@modern-js/tailwindcss-generator",
|
|
139548
|
-
[ActionFunction.I18n]: "@modern-js/dependence-generator",
|
|
139549
|
-
[ActionFunction.Test]: "@modern-js/dependence-generator",
|
|
139550
|
-
[ActionFunction.Doc]: "@modern-js/dependence-generator",
|
|
139551
139604
|
[ActionFunction.Storybook]: "@modern-js/storybook-generator",
|
|
139552
139605
|
[ActionFunction.RuntimeApi]: "@modern-js/dependence-generator"
|
|
139553
139606
|
}
|
|
139554
139607
|
};
|
|
139608
|
+
var ModuleNewActionPluginName = {
|
|
139609
|
+
[ActionType.Function]: {
|
|
139610
|
+
[ActionFunction.TailwindCSS]: "TailwindCSSPlugin",
|
|
139611
|
+
[ActionFunction.Storybook]: "StoryBookPlugin"
|
|
139612
|
+
}
|
|
139613
|
+
};
|
|
139614
|
+
var ModuleNewActionPluginDependence = {
|
|
139615
|
+
[ActionType.Function]: {
|
|
139616
|
+
[ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
|
|
139617
|
+
[ActionFunction.Storybook]: "@modern-js/plugin-storybook"
|
|
139618
|
+
}
|
|
139619
|
+
};
|
|
139555
139620
|
|
|
139556
139621
|
// ../../generator-common/dist/js/modern/newAction/monorepo/index.js
|
|
139557
139622
|
var getMonorepoNewActionSchema = (extra = {}) => {
|
|
@@ -142148,7 +142213,9 @@ var MWANewAction = (options) => __async3(void 0, null, function* () {
|
|
|
142148
142213
|
dependencies: dependency ? {
|
|
142149
142214
|
[dependency]: `${yield getMwaPluginVersion(dependency)}`
|
|
142150
142215
|
} : {},
|
|
142151
|
-
appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2]
|
|
142216
|
+
appendTypeContent: MWAActionFunctionsAppendTypeContent[action2] || MWAActionReactorAppendTypeContent[action2],
|
|
142217
|
+
pluginName: MWANewActionPluginName[actionType][action2],
|
|
142218
|
+
pluginDependence: MWANewActionPluginDependence[actionType][action2]
|
|
142152
142219
|
}
|
|
142153
142220
|
);
|
|
142154
142221
|
const task = [
|
|
@@ -142291,7 +142358,9 @@ var ModuleNewAction = (options) => __async4(void 0, null, function* () {
|
|
|
142291
142358
|
dependencies: dependency ? { [dependency]: `${yield getModulePluginVersion(dependency)}` } : {},
|
|
142292
142359
|
peerDependencies: peerDependency ? {
|
|
142293
142360
|
[peerDependency]: `${yield getModulePluginVersion(peerDependency)}`
|
|
142294
|
-
} : {}
|
|
142361
|
+
} : {},
|
|
142362
|
+
pluginName: ModuleNewActionPluginName[actionType][action2],
|
|
142363
|
+
pluginDependence: ModuleNewActionPluginDependence[actionType][action2]
|
|
142295
142364
|
}
|
|
142296
142365
|
);
|
|
142297
142366
|
const task = [
|
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-20221220043320",
|
|
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-plugin": "0.0.0-next-
|
|
32
|
-
"@modern-js/generator-utils": "0.0.0-next-
|
|
33
|
-
"@modern-js/module-generator": "0.0.0-next-
|
|
34
|
-
"@modern-js/monorepo-generator": "0.0.0-next-
|
|
35
|
-
"@modern-js/mwa-generator": "0.0.0-next-
|
|
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-20221220043320",
|
|
30
|
+
"@modern-js/generator-common": "0.0.0-next-20221220043320",
|
|
31
|
+
"@modern-js/generator-plugin": "0.0.0-next-20221220043320",
|
|
32
|
+
"@modern-js/generator-utils": "0.0.0-next-20221220043320",
|
|
33
|
+
"@modern-js/module-generator": "0.0.0-next-20221220043320",
|
|
34
|
+
"@modern-js/monorepo-generator": "0.0.0-next-20221220043320",
|
|
35
|
+
"@modern-js/mwa-generator": "0.0.0-next-20221220043320",
|
|
36
|
+
"@modern-js/utils": "0.0.0-next-20221220043320",
|
|
37
|
+
"@scripts/build": "0.0.0-next-20221220043320",
|
|
38
|
+
"@scripts/jest-config": "0.0.0-next-20221220043320"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|