@modern-js/repo-generator 0.0.0-next-1685383616364 → 0.0.0-next-1685436485731

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.
Files changed (2) hide show
  1. package/dist/index.js +207 -538
  2. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -93402,12 +93402,8 @@ var require_import = __commonJS({
93402
93402
  });
93403
93403
  }
93404
93404
  _export(exports, {
93405
- lazyImport: function() {
93406
- return lazy2;
93407
- },
93408
- Import: function() {
93409
- return Import2;
93410
- }
93405
+ lazyImport: () => lazy2,
93406
+ Import: () => Import2
93411
93407
  });
93412
93408
  var lazy2 = (moduleName, requireFn) => {
93413
93409
  const importLazyLocal = require_import_lazy2()(requireFn);
@@ -122460,105 +122456,39 @@ var require_compiled = __commonJS({
122460
122456
  });
122461
122457
  }
122462
122458
  _export(exports, {
122463
- fs: function() {
122464
- return _fsextra.default;
122465
- },
122466
- ora: function() {
122467
- return _ora.default;
122468
- },
122469
- glob: function() {
122470
- return _glob.default;
122471
- },
122472
- yaml: function() {
122473
- return _jsyaml.default;
122474
- },
122475
- chalk: function() {
122476
- return _chalk.default;
122477
- },
122478
- debug: function() {
122479
- return _debug.default;
122480
- },
122481
- slash: function() {
122482
- return _slash.default;
122483
- },
122484
- execa: function() {
122485
- return _execa.default;
122486
- },
122487
- json5: function() {
122488
- return _json5.default;
122489
- },
122490
- upath: function() {
122491
- return _upath.default;
122492
- },
122493
- pkgUp: function() {
122494
- return _pkgup.default;
122495
- },
122496
- nanoid: function() {
122497
- return _nanoid.nanoid;
122498
- },
122499
- semver: function() {
122500
- return _semver.default;
122501
- },
122502
- dotenv: function() {
122503
- return _dotenv.default;
122504
- },
122505
- lodash: function() {
122506
- return _lodash.default;
122507
- },
122508
- globby: function() {
122509
- return _globby.default;
122510
- },
122511
- address: function() {
122512
- return _address.default;
122513
- },
122514
- signale: function() {
122515
- return _signale.default;
122516
- },
122517
- urlJoin: function() {
122518
- return _urljoin.default;
122519
- },
122520
- minimist: function() {
122521
- return _minimist.default;
122522
- },
122523
- fastGlob: function() {
122524
- return _fastglob.default;
122525
- },
122526
- filesize: function() {
122527
- return _filesize.default;
122528
- },
122529
- gzipSize: function() {
122530
- return _gzipsize.default;
122531
- },
122532
- stripAnsi: function() {
122533
- return _stripansi.default;
122534
- },
122535
- dotenvExpand: function() {
122536
- return _dotenvexpand.default;
122537
- },
122538
- browserslist: function() {
122539
- return _browserslist.default;
122540
- },
122541
- recursiveReaddir: function() {
122542
- return _recursivereaddir.default;
122543
- },
122544
- program: function() {
122545
- return _commander.program;
122546
- },
122547
- Command: function() {
122548
- return _commander.Command;
122549
- },
122550
- Signale: function() {
122551
- return _signale.Signale;
122552
- },
122553
- mime: function() {
122554
- return mime2;
122555
- },
122556
- chokidar: function() {
122557
- return chokidar2;
122558
- },
122559
- inquirer: function() {
122560
- return inquirer4;
122561
- }
122459
+ fs: () => _fsextra.default,
122460
+ ora: () => _ora.default,
122461
+ glob: () => _glob.default,
122462
+ yaml: () => _jsyaml.default,
122463
+ chalk: () => _chalk.default,
122464
+ debug: () => _debug.default,
122465
+ slash: () => _slash.default,
122466
+ execa: () => _execa.default,
122467
+ json5: () => _json5.default,
122468
+ upath: () => _upath.default,
122469
+ pkgUp: () => _pkgup.default,
122470
+ nanoid: () => _nanoid.nanoid,
122471
+ semver: () => _semver.default,
122472
+ dotenv: () => _dotenv.default,
122473
+ lodash: () => _lodash.default,
122474
+ globby: () => _globby.default,
122475
+ address: () => _address.default,
122476
+ signale: () => _signale.default,
122477
+ urlJoin: () => _urljoin.default,
122478
+ minimist: () => _minimist.default,
122479
+ fastGlob: () => _fastglob.default,
122480
+ filesize: () => _filesize.default,
122481
+ gzipSize: () => _gzipsize.default,
122482
+ stripAnsi: () => _stripansi.default,
122483
+ dotenvExpand: () => _dotenvexpand.default,
122484
+ browserslist: () => _browserslist.default,
122485
+ recursiveReaddir: () => _recursivereaddir.default,
122486
+ program: () => _commander.program,
122487
+ Command: () => _commander.Command,
122488
+ Signale: () => _signale.Signale,
122489
+ mime: () => mime2,
122490
+ chokidar: () => chokidar2,
122491
+ inquirer: () => inquirer4
122562
122492
  });
122563
122493
  var _interop_require_default = require_interop_require_default();
122564
122494
  var _interop_require_wildcard = require_interop_require_wildcard();
@@ -122606,9 +122536,7 @@ var require_chainId = __commonJS({
122606
122536
  });
122607
122537
  Object.defineProperty(exports, "CHAIN_ID", {
122608
122538
  enumerable: true,
122609
- get: function() {
122610
- return CHAIN_ID;
122611
- }
122539
+ get: () => CHAIN_ID
122612
122540
  });
122613
122541
  var CHAIN_ID = {
122614
122542
  /** Predefined rules */
@@ -122800,99 +122728,37 @@ var require_constants2 = __commonJS({
122800
122728
  });
122801
122729
  }
122802
122730
  _export(exports, {
122803
- ROUTE_SPEC_FILE: function() {
122804
- return ROUTE_SPEC_FILE;
122805
- },
122806
- MAIN_ENTRY_NAME: function() {
122807
- return MAIN_ENTRY_NAME;
122808
- },
122809
- SERVER_BUNDLE_DIRECTORY: function() {
122810
- return SERVER_BUNDLE_DIRECTORY;
122811
- },
122812
- SERVER_WORKER_BUNDLE_DIRECTORY: function() {
122813
- return SERVER_WORKER_BUNDLE_DIRECTORY;
122814
- },
122815
- ENTRY_NAME_PATTERN: function() {
122816
- return ENTRY_NAME_PATTERN;
122817
- },
122818
- SERVER_RENDER_FUNCTION_NAME: function() {
122819
- return SERVER_RENDER_FUNCTION_NAME;
122820
- },
122821
- LOADABLE_STATS_FILE: function() {
122822
- return LOADABLE_STATS_FILE;
122823
- },
122824
- API_DIR: function() {
122825
- return API_DIR;
122826
- },
122827
- SERVER_DIR: function() {
122828
- return SERVER_DIR;
122829
- },
122830
- SHARED_DIR: function() {
122831
- return SHARED_DIR;
122832
- },
122833
- CONFIG_CACHE_DIR: function() {
122834
- return CONFIG_CACHE_DIR;
122835
- },
122836
- CONFIG_FILE_EXTENSIONS: function() {
122837
- return CONFIG_FILE_EXTENSIONS;
122838
- },
122839
- OUTPUT_CONFIG_FILE: function() {
122840
- return OUTPUT_CONFIG_FILE;
122841
- },
122842
- DEFAULT_SERVER_CONFIG: function() {
122843
- return DEFAULT_SERVER_CONFIG;
122844
- },
122845
- ROUTE_MANIFEST_FILE: function() {
122846
- return ROUTE_MANIFEST_FILE;
122847
- },
122848
- LOADER_ROUTES_DIR: function() {
122849
- return LOADER_ROUTES_DIR;
122850
- },
122851
- DEFAULT_DEV_HOST: function() {
122852
- return DEFAULT_DEV_HOST;
122853
- },
122854
- INTERNAL_APP_TOOLS_PLUGINS: function() {
122855
- return INTERNAL_APP_TOOLS_PLUGINS;
122856
- },
122857
- INTERNAL_APP_TOOLS_RUNTIME_PLUGINS: function() {
122858
- return INTERNAL_APP_TOOLS_RUNTIME_PLUGINS;
122859
- },
122860
- INTERNAL_MODULE_TOOLS_PLUGINS: function() {
122861
- return INTERNAL_MODULE_TOOLS_PLUGINS;
122862
- },
122863
- INTERNAL_MONOREPO_TOOLS_PLUGINS: function() {
122864
- return INTERNAL_MONOREPO_TOOLS_PLUGINS;
122865
- },
122866
- INTERNAL_DOC_TOOLS_PLUGINS: function() {
122867
- return INTERNAL_DOC_TOOLS_PLUGINS;
122868
- },
122869
- INTERNAL_CLI_PLUGINS: function() {
122870
- return INTERNAL_CLI_PLUGINS;
122871
- },
122872
- SERVER_PLUGIN_BFF: function() {
122873
- return SERVER_PLUGIN_BFF;
122874
- },
122875
- SERVER_PLUGIN_EXPRESS: function() {
122876
- return SERVER_PLUGIN_EXPRESS;
122877
- },
122878
- SERVER_PLUGIN_KOA: function() {
122879
- return SERVER_PLUGIN_KOA;
122880
- },
122881
- SERVER_PLUGIN_SERVER: function() {
122882
- return SERVER_PLUGIN_SERVER;
122883
- },
122884
- SERVER_PLUGIN_POLYFILL: function() {
122885
- return SERVER_PLUGIN_POLYFILL;
122886
- },
122887
- INTERNAL_SERVER_PLUGINS: function() {
122888
- return INTERNAL_SERVER_PLUGINS;
122889
- },
122890
- PLUGIN_SCHEMAS: function() {
122891
- return PLUGIN_SCHEMAS;
122892
- },
122893
- DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: function() {
122894
- return DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS;
122895
- }
122731
+ ROUTE_SPEC_FILE: () => ROUTE_SPEC_FILE,
122732
+ MAIN_ENTRY_NAME: () => MAIN_ENTRY_NAME,
122733
+ SERVER_BUNDLE_DIRECTORY: () => SERVER_BUNDLE_DIRECTORY,
122734
+ SERVER_WORKER_BUNDLE_DIRECTORY: () => SERVER_WORKER_BUNDLE_DIRECTORY,
122735
+ ENTRY_NAME_PATTERN: () => ENTRY_NAME_PATTERN,
122736
+ SERVER_RENDER_FUNCTION_NAME: () => SERVER_RENDER_FUNCTION_NAME,
122737
+ LOADABLE_STATS_FILE: () => LOADABLE_STATS_FILE,
122738
+ API_DIR: () => API_DIR,
122739
+ SERVER_DIR: () => SERVER_DIR,
122740
+ SHARED_DIR: () => SHARED_DIR,
122741
+ CONFIG_CACHE_DIR: () => CONFIG_CACHE_DIR,
122742
+ CONFIG_FILE_EXTENSIONS: () => CONFIG_FILE_EXTENSIONS,
122743
+ OUTPUT_CONFIG_FILE: () => OUTPUT_CONFIG_FILE,
122744
+ DEFAULT_SERVER_CONFIG: () => DEFAULT_SERVER_CONFIG,
122745
+ ROUTE_MANIFEST_FILE: () => ROUTE_MANIFEST_FILE,
122746
+ LOADER_ROUTES_DIR: () => LOADER_ROUTES_DIR,
122747
+ DEFAULT_DEV_HOST: () => DEFAULT_DEV_HOST,
122748
+ INTERNAL_APP_TOOLS_PLUGINS: () => INTERNAL_APP_TOOLS_PLUGINS,
122749
+ INTERNAL_APP_TOOLS_RUNTIME_PLUGINS: () => INTERNAL_APP_TOOLS_RUNTIME_PLUGINS,
122750
+ INTERNAL_MODULE_TOOLS_PLUGINS: () => INTERNAL_MODULE_TOOLS_PLUGINS,
122751
+ INTERNAL_MONOREPO_TOOLS_PLUGINS: () => INTERNAL_MONOREPO_TOOLS_PLUGINS,
122752
+ INTERNAL_DOC_TOOLS_PLUGINS: () => INTERNAL_DOC_TOOLS_PLUGINS,
122753
+ INTERNAL_CLI_PLUGINS: () => INTERNAL_CLI_PLUGINS,
122754
+ SERVER_PLUGIN_BFF: () => SERVER_PLUGIN_BFF,
122755
+ SERVER_PLUGIN_EXPRESS: () => SERVER_PLUGIN_EXPRESS,
122756
+ SERVER_PLUGIN_KOA: () => SERVER_PLUGIN_KOA,
122757
+ SERVER_PLUGIN_SERVER: () => SERVER_PLUGIN_SERVER,
122758
+ SERVER_PLUGIN_POLYFILL: () => SERVER_PLUGIN_POLYFILL,
122759
+ INTERNAL_SERVER_PLUGINS: () => INTERNAL_SERVER_PLUGINS,
122760
+ PLUGIN_SCHEMAS: () => PLUGIN_SCHEMAS,
122761
+ DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS: () => DEFAULT_BABEL_PRESET_TYPESCRIPT_OPTIONS
122896
122762
  });
122897
122763
  var _export_star = require_export_star();
122898
122764
  _export_star._(require_chainId(), exports);
@@ -123227,12 +123093,8 @@ var require_fs = __commonJS({
123227
123093
  });
123228
123094
  }
123229
123095
  _export(exports, {
123230
- findExists: function() {
123231
- return findExists;
123232
- },
123233
- emptyDir: function() {
123234
- return emptyDir;
123235
- }
123096
+ findExists: () => findExists,
123097
+ emptyDir: () => emptyDir
123236
123098
  });
123237
123099
  var _compiled = require_compiled();
123238
123100
  var findExists = (files) => {
@@ -123266,24 +123128,12 @@ var require_env = __commonJS({
123266
123128
  });
123267
123129
  }
123268
123130
  _export(exports, {
123269
- getNodeEnv: function() {
123270
- return getNodeEnv;
123271
- },
123272
- isDev: function() {
123273
- return isDev;
123274
- },
123275
- isProd: function() {
123276
- return isProd;
123277
- },
123278
- isTest: function() {
123279
- return isTest;
123280
- },
123281
- isProdProfile: function() {
123282
- return isProdProfile;
123283
- },
123284
- isFastRefresh: function() {
123285
- return isFastRefresh;
123286
- }
123131
+ getNodeEnv: () => getNodeEnv,
123132
+ isDev: () => isDev,
123133
+ isProd: () => isProd,
123134
+ isTest: () => isTest,
123135
+ isProdProfile: () => isProdProfile,
123136
+ isFastRefresh: () => isFastRefresh
123287
123137
  });
123288
123138
  var getNodeEnv = () => process.env.NODE_ENV || "development";
123289
123139
  var isDev = () => getNodeEnv() === "development";
@@ -123309,12 +123159,8 @@ var require_platform = __commonJS({
123309
123159
  });
123310
123160
  }
123311
123161
  _export(exports, {
123312
- isNodeJS: function() {
123313
- return isNodeJS;
123314
- },
123315
- isBrowser: function() {
123316
- return isBrowser;
123317
- }
123162
+ isNodeJS: () => isNodeJS,
123163
+ isBrowser: () => isBrowser
123318
123164
  });
123319
123165
  var isNodeJS = () => typeof process !== "undefined" && process.versions != null && process.versions.node != null && process.versions.electron == null;
123320
123166
  var isBrowser = () => typeof window !== "undefined";
@@ -123336,33 +123182,15 @@ var require_type = __commonJS({
123336
123182
  });
123337
123183
  }
123338
123184
  _export(exports, {
123339
- isString: function() {
123340
- return isString4;
123341
- },
123342
- isUndefined: function() {
123343
- return isUndefined;
123344
- },
123345
- isArray: function() {
123346
- return isArray4;
123347
- },
123348
- isFunction: function() {
123349
- return isFunction4;
123350
- },
123351
- isObject: function() {
123352
- return isObject4;
123353
- },
123354
- isPlainObject: function() {
123355
- return isPlainObject;
123356
- },
123357
- isPromise: function() {
123358
- return isPromise;
123359
- },
123360
- isRegExp: function() {
123361
- return isRegExp3;
123362
- },
123363
- isEmpty: function() {
123364
- return isEmpty2;
123365
- }
123185
+ isString: () => isString4,
123186
+ isUndefined: () => isUndefined,
123187
+ isArray: () => isArray4,
123188
+ isFunction: () => isFunction4,
123189
+ isObject: () => isObject4,
123190
+ isPlainObject: () => isPlainObject,
123191
+ isPromise: () => isPromise,
123192
+ isRegExp: () => isRegExp3,
123193
+ isEmpty: () => isEmpty2
123366
123194
  });
123367
123195
  function isString4(str) {
123368
123196
  return typeof str === "string";
@@ -123407,24 +123235,12 @@ var require_config2 = __commonJS({
123407
123235
  });
123408
123236
  }
123409
123237
  _export(exports, {
123410
- isSSR: function() {
123411
- return isSSR;
123412
- },
123413
- isUseSSRBundle: function() {
123414
- return isUseSSRBundle;
123415
- },
123416
- isServiceWorker: function() {
123417
- return isServiceWorker;
123418
- },
123419
- isRouterV5: function() {
123420
- return isRouterV5;
123421
- },
123422
- isSSGEntry: function() {
123423
- return isSSGEntry;
123424
- },
123425
- isSingleEntry: function() {
123426
- return isSingleEntry;
123427
- }
123238
+ isSSR: () => isSSR,
123239
+ isUseSSRBundle: () => isUseSSRBundle,
123240
+ isServiceWorker: () => isServiceWorker,
123241
+ isRouterV5: () => isRouterV5,
123242
+ isSSGEntry: () => isSSGEntry,
123243
+ isSingleEntry: () => isSingleEntry
123428
123244
  });
123429
123245
  var _type = require_type();
123430
123246
  var isSSR = (config) => {
@@ -123484,18 +123300,10 @@ var require_commands = __commonJS({
123484
123300
  });
123485
123301
  }
123486
123302
  _export(exports, {
123487
- getFullArgv: function() {
123488
- return getFullArgv;
123489
- },
123490
- getArgv: function() {
123491
- return getArgv;
123492
- },
123493
- getCommand: function() {
123494
- return getCommand;
123495
- },
123496
- isDevCommand: function() {
123497
- return isDevCommand;
123498
- }
123303
+ getFullArgv: () => getFullArgv,
123304
+ getArgv: () => getArgv,
123305
+ getCommand: () => getCommand,
123306
+ isDevCommand: () => isDevCommand
123499
123307
  });
123500
123308
  var getFullArgv = () => {
123501
123309
  var _process_env_MODERN_ARGV;
@@ -123531,15 +123339,9 @@ var require_common3 = __commonJS({
123531
123339
  });
123532
123340
  }
123533
123341
  _export(exports, {
123534
- createDebugger: function() {
123535
- return createDebugger;
123536
- },
123537
- clearConsole: function() {
123538
- return clearConsole;
123539
- },
123540
- wait: function() {
123541
- return wait;
123542
- }
123342
+ createDebugger: () => createDebugger,
123343
+ clearConsole: () => clearConsole,
123344
+ wait: () => wait
123543
123345
  });
123544
123346
  var _debug = require_debug3();
123545
123347
  var createDebugger = (scope) => (0, _debug.debug)(`modern-js:${scope}`);
@@ -123569,12 +123371,8 @@ var require_ensure = __commonJS({
123569
123371
  });
123570
123372
  }
123571
123373
  _export(exports, {
123572
- ensureAbsolutePath: function() {
123573
- return ensureAbsolutePath;
123574
- },
123575
- ensureArray: function() {
123576
- return ensureArray;
123577
- }
123374
+ ensureAbsolutePath: () => ensureAbsolutePath,
123375
+ ensureArray: () => ensureArray
123578
123376
  });
123579
123377
  var _interop_require_default = require_interop_require_default();
123580
123378
  var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -123605,27 +123403,13 @@ var require_project = __commonJS({
123605
123403
  });
123606
123404
  }
123607
123405
  _export(exports, {
123608
- isDepExists: function() {
123609
- return isDepExists;
123610
- },
123611
- isPackageInstalled: function() {
123612
- return isPackageInstalled;
123613
- },
123614
- isApiOnly: function() {
123615
- return isApiOnly;
123616
- },
123617
- isWebOnly: function() {
123618
- return isWebOnly;
123619
- },
123620
- isBeyondReact17: function() {
123621
- return isBeyondReact17;
123622
- },
123623
- isReact18: function() {
123624
- return isReact182;
123625
- },
123626
- isTypescript: function() {
123627
- return isTypescript;
123628
- }
123406
+ isDepExists: () => isDepExists,
123407
+ isPackageInstalled: () => isPackageInstalled,
123408
+ isApiOnly: () => isApiOnly,
123409
+ isWebOnly: () => isWebOnly,
123410
+ isBeyondReact17: () => isBeyondReact17,
123411
+ isReact18: () => isReact182,
123412
+ isTypescript: () => isTypescript
123629
123413
  });
123630
123414
  var _interop_require_default = require_interop_require_default();
123631
123415
  var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -123723,18 +123507,10 @@ var require_package5 = __commonJS({
123723
123507
  });
123724
123508
  }
123725
123509
  _export(exports, {
123726
- getPnpmVersion: function() {
123727
- return getPnpmVersion;
123728
- },
123729
- canUseNpm: function() {
123730
- return canUseNpm5;
123731
- },
123732
- canUseYarn: function() {
123733
- return canUseYarn4;
123734
- },
123735
- canUsePnpm: function() {
123736
- return canUsePnpm5;
123737
- }
123510
+ getPnpmVersion: () => getPnpmVersion,
123511
+ canUseNpm: () => canUseNpm5,
123512
+ canUseYarn: () => canUseYarn4,
123513
+ canUsePnpm: () => canUsePnpm5
123738
123514
  });
123739
123515
  var _compiled = require_compiled();
123740
123516
  function getPnpmVersion() {
@@ -123805,30 +123581,14 @@ var require_data = __commonJS({
123805
123581
  });
123806
123582
  }
123807
123583
  _export(exports, {
123808
- getPackageManager: function() {
123809
- return getPackageManager2;
123810
- },
123811
- getCoreJsVersion: function() {
123812
- return getCoreJsVersion;
123813
- },
123814
- getAntdMajorVersion: function() {
123815
- return getAntdMajorVersion;
123816
- },
123817
- defaults: function() {
123818
- return defaults;
123819
- },
123820
- getBrowserslist: function() {
123821
- return getBrowserslist;
123822
- },
123823
- getInternalPlugins: function() {
123824
- return getInternalPlugins;
123825
- },
123826
- readTsConfig: function() {
123827
- return readTsConfig;
123828
- },
123829
- readTsConfigByFile: function() {
123830
- return readTsConfigByFile2;
123831
- }
123584
+ getPackageManager: () => getPackageManager2,
123585
+ getCoreJsVersion: () => getCoreJsVersion,
123586
+ getAntdMajorVersion: () => getAntdMajorVersion,
123587
+ defaults: () => defaults,
123588
+ getBrowserslist: () => getBrowserslist,
123589
+ getInternalPlugins: () => getInternalPlugins,
123590
+ readTsConfig: () => readTsConfig,
123591
+ readTsConfigByFile: () => readTsConfigByFile2
123832
123592
  });
123833
123593
  var _interop_require_default = require_interop_require_default();
123834
123594
  var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
@@ -123931,9 +123691,7 @@ var require_config3 = __commonJS({
123931
123691
  });
123932
123692
  Object.defineProperty(exports, "getEntryOptions", {
123933
123693
  enumerable: true,
123934
- get: function() {
123935
- return getEntryOptions;
123936
- }
123694
+ get: () => getEntryOptions
123937
123695
  });
123938
123696
  var _is = require_is();
123939
123697
  var _constants = require_constants2();
@@ -123967,12 +123725,8 @@ var require_get2 = __commonJS({
123967
123725
  });
123968
123726
  }
123969
123727
  _export(exports, {
123970
- getServerConfig: function() {
123971
- return getServerConfig;
123972
- },
123973
- getTargetDir: function() {
123974
- return getTargetDir;
123975
- }
123728
+ getServerConfig: () => getServerConfig,
123729
+ getTargetDir: () => getTargetDir
123976
123730
  });
123977
123731
  var _export_star = require_export_star();
123978
123732
  var _interop_require_default = require_interop_require_default();
@@ -124022,12 +123776,8 @@ var require_logger2 = __commonJS({
124022
123776
  });
124023
123777
  }
124024
123778
  _export(exports, {
124025
- Logger: function() {
124026
- return Logger2;
124027
- },
124028
- logger: function() {
124029
- return logger2;
124030
- }
123779
+ Logger: () => Logger2,
123780
+ logger: () => logger2
124031
123781
  });
124032
123782
  var _define_property22 = require_define_property();
124033
123783
  var _interop_require_default = require_interop_require_default();
@@ -124142,9 +123892,7 @@ var require_applyOptionsChain = __commonJS({
124142
123892
  });
124143
123893
  Object.defineProperty(exports, "applyOptionsChain", {
124144
123894
  enumerable: true,
124145
- get: function() {
124146
- return applyOptionsChain;
124147
- }
123895
+ get: () => applyOptionsChain
124148
123896
  });
124149
123897
  var _is = require_is();
124150
123898
  var _logger = require_logger2();
@@ -124188,18 +123936,10 @@ var require_alias = __commonJS({
124188
123936
  });
124189
123937
  }
124190
123938
  _export(exports, {
124191
- validAlias: function() {
124192
- return validAlias;
124193
- },
124194
- mergeAlias: function() {
124195
- return mergeAlias;
124196
- },
124197
- getAliasConfig: function() {
124198
- return getAliasConfig;
124199
- },
124200
- getUserAlias: function() {
124201
- return getUserAlias;
124202
- }
123939
+ validAlias: () => validAlias,
123940
+ mergeAlias: () => mergeAlias,
123941
+ getAliasConfig: () => getAliasConfig,
123942
+ getUserAlias: () => getUserAlias
124203
123943
  });
124204
123944
  var _interop_require_default = require_interop_require_default();
124205
123945
  var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
@@ -124268,45 +124008,19 @@ var require_path = __commonJS({
124268
124008
  });
124269
124009
  }
124270
124010
  _export(exports, {
124271
- isPathString: function() {
124272
- return isPathString;
124273
- },
124274
- isRelativePath: function() {
124275
- return isRelativePath;
124276
- },
124277
- normalizeOutputPath: function() {
124278
- return normalizeOutputPath;
124279
- },
124280
- normalizeToPosixPath: function() {
124281
- return normalizeToPosixPath;
124282
- },
124283
- getTemplatePath: function() {
124284
- return getTemplatePath;
124285
- },
124286
- compilePathMatcherRegExp: function() {
124287
- return compilePathMatcherRegExp;
124288
- },
124289
- _joinPathParts: function() {
124290
- return _joinPathParts;
124291
- },
124292
- upwardPaths: function() {
124293
- return upwardPaths;
124294
- },
124295
- getRealTemporaryDirectory: function() {
124296
- return getRealTemporaryDirectory;
124297
- },
124298
- splitPathString: function() {
124299
- return splitPathString;
124300
- },
124301
- removeLeadingSlash: function() {
124302
- return removeLeadingSlash;
124303
- },
124304
- removeTailSlash: function() {
124305
- return removeTailSlash;
124306
- },
124307
- removeSlash: function() {
124308
- return removeSlash;
124309
- }
124011
+ isPathString: () => isPathString,
124012
+ isRelativePath: () => isRelativePath,
124013
+ normalizeOutputPath: () => normalizeOutputPath,
124014
+ normalizeToPosixPath: () => normalizeToPosixPath,
124015
+ getTemplatePath: () => getTemplatePath,
124016
+ compilePathMatcherRegExp: () => compilePathMatcherRegExp,
124017
+ _joinPathParts: () => _joinPathParts,
124018
+ upwardPaths: () => upwardPaths,
124019
+ getRealTemporaryDirectory: () => getRealTemporaryDirectory,
124020
+ splitPathString: () => splitPathString,
124021
+ removeLeadingSlash: () => removeLeadingSlash,
124022
+ removeTailSlash: () => removeTailSlash,
124023
+ removeSlash: () => removeSlash
124310
124024
  });
124311
124025
  var _interop_require_default = require_interop_require_default();
124312
124026
  var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -124373,12 +124087,8 @@ var require_babel = __commonJS({
124373
124087
  });
124374
124088
  }
124375
124089
  _export(exports, {
124376
- getBabelUtils: function() {
124377
- return getBabelUtils;
124378
- },
124379
- applyUserBabelConfig: function() {
124380
- return applyUserBabelConfig;
124381
- }
124090
+ getBabelUtils: () => getBabelUtils,
124091
+ applyUserBabelConfig: () => applyUserBabelConfig
124382
124092
  });
124383
124093
  var _path = require("path");
124384
124094
  var _applyOptionsChain = require_applyOptionsChain();
@@ -124495,27 +124205,13 @@ var require_monorepo = __commonJS({
124495
124205
  });
124496
124206
  }
124497
124207
  _export(exports, {
124498
- isLerna: function() {
124499
- return isLerna;
124500
- },
124501
- isYarnWorkspaces: function() {
124502
- return isYarnWorkspaces;
124503
- },
124504
- isPnpmWorkspaces: function() {
124505
- return isPnpmWorkspaces;
124506
- },
124507
- isMonorepo: function() {
124508
- return isMonorepo;
124509
- },
124510
- isModernjsMonorepo: function() {
124511
- return isModernjsMonorepo;
124512
- },
124513
- findMonorepoRoot: function() {
124514
- return findMonorepoRoot;
124515
- },
124516
- getMonorepoPackages: function() {
124517
- return getMonorepoPackages2;
124518
- }
124208
+ isLerna: () => isLerna,
124209
+ isYarnWorkspaces: () => isYarnWorkspaces,
124210
+ isPnpmWorkspaces: () => isPnpmWorkspaces,
124211
+ isMonorepo: () => isMonorepo,
124212
+ isModernjsMonorepo: () => isModernjsMonorepo,
124213
+ findMonorepoRoot: () => findMonorepoRoot,
124214
+ getMonorepoPackages: () => getMonorepoPackages2
124519
124215
  });
124520
124216
  var _interop_require_default = require_interop_require_default();
124521
124217
  var _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
@@ -124603,18 +124299,10 @@ var require_pathSerializer = __commonJS({
124603
124299
  });
124604
124300
  }
124605
124301
  _export(exports, {
124606
- matchUpwardPathsAsUnknown: function() {
124607
- return matchUpwardPathsAsUnknown;
124608
- },
124609
- applyPathMatcher: function() {
124610
- return applyPathMatcher;
124611
- },
124612
- applyMatcherReplacement: function() {
124613
- return applyMatcherReplacement;
124614
- },
124615
- createDefaultPathMatchers: function() {
124616
- return createDefaultPathMatchers;
124617
- }
124302
+ matchUpwardPathsAsUnknown: () => matchUpwardPathsAsUnknown,
124303
+ applyPathMatcher: () => applyPathMatcher,
124304
+ applyMatcherReplacement: () => applyMatcherReplacement,
124305
+ createDefaultPathMatchers: () => createDefaultPathMatchers
124618
124306
  });
124619
124307
  var _interop_require_default = require_interop_require_default();
124620
124308
  var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
@@ -124675,9 +124363,7 @@ var require_port = __commonJS({
124675
124363
  });
124676
124364
  Object.defineProperty(exports, "getPort", {
124677
124365
  enumerable: true,
124678
- get: function() {
124679
- return getPort;
124680
- }
124366
+ get: () => getPort
124681
124367
  });
124682
124368
  var _interop_require_default = require_interop_require_default();
124683
124369
  var _net = /* @__PURE__ */ _interop_require_default._(require("net"));
@@ -124742,12 +124428,8 @@ var require_prettyInstructions = __commonJS({
124742
124428
  });
124743
124429
  }
124744
124430
  _export(exports, {
124745
- getAddressUrls: function() {
124746
- return getAddressUrls;
124747
- },
124748
- prettyInstructions: function() {
124749
- return prettyInstructions;
124750
- }
124431
+ getAddressUrls: () => getAddressUrls,
124432
+ prettyInstructions: () => prettyInstructions
124751
124433
  });
124752
124434
  var _interop_require_default = require_interop_require_default();
124753
124435
  var _os = /* @__PURE__ */ _interop_require_default._(require("os"));
@@ -124838,9 +124520,7 @@ var require_print = __commonJS({
124838
124520
  });
124839
124521
  Object.defineProperty(exports, "printBuildError", {
124840
124522
  enumerable: true,
124841
- get: function() {
124842
- return printBuildError;
124843
- }
124523
+ get: () => printBuildError
124844
124524
  });
124845
124525
  var _compiled = require_compiled();
124846
124526
  var _logger = require_logger2();
@@ -124887,24 +124567,12 @@ var require_require = __commonJS({
124887
124567
  });
124888
124568
  }
124889
124569
  _export(exports, {
124890
- compatRequire: function() {
124891
- return compatRequire;
124892
- },
124893
- dynamicImport: function() {
124894
- return dynamicImport;
124895
- },
124896
- requireExistModule: function() {
124897
- return requireExistModule;
124898
- },
124899
- cleanRequireCache: function() {
124900
- return cleanRequireCache;
124901
- },
124902
- deleteRequireCache: function() {
124903
- return deleteRequireCache;
124904
- },
124905
- tryResolve: function() {
124906
- return tryResolve;
124907
- }
124570
+ compatRequire: () => compatRequire,
124571
+ dynamicImport: () => dynamicImport,
124572
+ requireExistModule: () => requireExistModule,
124573
+ cleanRequireCache: () => cleanRequireCache,
124574
+ deleteRequireCache: () => deleteRequireCache,
124575
+ tryResolve: () => tryResolve
124908
124576
  });
124909
124577
  var _fs = require_fs();
124910
124578
  var compatRequire = (filePath, interop = true) => {
@@ -124969,9 +124637,7 @@ var require_routes = __commonJS({
124969
124637
  });
124970
124638
  Object.defineProperty(exports, "getRouteId", {
124971
124639
  enumerable: true,
124972
- get: function() {
124973
- return getRouteId;
124974
- }
124640
+ get: () => getRouteId
124975
124641
  });
124976
124642
  var _interop_require_default = require_interop_require_default();
124977
124643
  var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -125004,9 +124670,7 @@ var require_runtimeExports = __commonJS({
125004
124670
  });
125005
124671
  Object.defineProperty(exports, "createRuntimeExportsUtils", {
125006
124672
  enumerable: true,
125007
- get: function() {
125008
- return createRuntimeExportsUtils;
125009
- }
124673
+ get: () => createRuntimeExportsUtils
125010
124674
  });
125011
124675
  var _interop_require_default = require_interop_require_default();
125012
124676
  var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -125056,9 +124720,7 @@ var require_test = __commonJS({
125056
124720
  });
125057
124721
  Object.defineProperty(exports, "initSnapshotSerializer", {
125058
124722
  enumerable: true,
125059
- get: function() {
125060
- return initSnapshotSerializer;
125061
- }
124723
+ get: () => initSnapshotSerializer
125062
124724
  });
125063
124725
  var initSnapshotSerializer = (root) => {
125064
124726
  expect.addSnapshotSerializer({
@@ -125087,12 +124749,8 @@ var require_watch = __commonJS({
125087
124749
  });
125088
124750
  }
125089
124751
  _export(exports, {
125090
- WatchChangeType: function() {
125091
- return WatchChangeType;
125092
- },
125093
- watch: function() {
125094
- return watch;
125095
- }
124752
+ WatchChangeType: () => WatchChangeType,
124753
+ watch: () => watch
125096
124754
  });
125097
124755
  var _interop_require_default = require_interop_require_default();
125098
124756
  var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -144479,7 +144137,8 @@ var ZH_LOCALE2 = {
144479
144137
  self: "请选择你想要的操作",
144480
144138
  function: {
144481
144139
  self: "启用可选功能",
144482
- tailwindcss: "启用 Tailwind CSS 支持",
144140
+ question: "请选择功能名称",
144141
+ tailwindcss: "启用 「Tailwind CSS」 支持",
144483
144142
  bff: "启用「BFF」功能",
144484
144143
  micro_frontend: "启用「微前端」模式",
144485
144144
  i18n: "启用「国际化(i18n)」功能",
@@ -144497,11 +144156,13 @@ var ZH_LOCALE2 = {
144497
144156
  },
144498
144157
  element: {
144499
144158
  self: "创建工程元素",
144159
+ question: "请选择创建元素类型",
144500
144160
  entry: "新建「应用入口」",
144501
144161
  server: "新建「自定义 Web Server」源码目录"
144502
144162
  },
144503
144163
  refactor: {
144504
144164
  self: "自动重构",
144165
+ question: "请选择重构类型",
144505
144166
  react_router_5: "使用 React Router v5"
144506
144167
  }
144507
144168
  },
@@ -144554,7 +144215,7 @@ var ZH_LOCALE2 = {
144554
144215
  // ../../generator-common/dist/esm-node/locale/en.js
144555
144216
  var EN_LOCALE2 = {
144556
144217
  solution: {
144557
- self: "Please select the solution you want to create",
144218
+ self: "Please select the type of project you want to create:",
144558
144219
  mwa: "Web App",
144559
144220
  module: "Npm Module",
144560
144221
  doc: "Doc Site",
@@ -144563,10 +144224,10 @@ var EN_LOCALE2 = {
144563
144224
  default: "Default"
144564
144225
  },
144565
144226
  scenes: {
144566
- self: "Please select the scene you want to create"
144227
+ self: "Please select the project scenario:"
144567
144228
  },
144568
144229
  sub_solution: {
144569
- self: "Please select the solution you want to create",
144230
+ self: "Please select the type of project you want to create:",
144570
144231
  mwa: "Web App",
144571
144232
  mwa_test: "Web App (Test)",
144572
144233
  module: "Npm Module",
@@ -144574,9 +144235,10 @@ var EN_LOCALE2 = {
144574
144235
  monorepo: "Monorepo"
144575
144236
  },
144576
144237
  action: {
144577
- self: "Action",
144238
+ self: "Please select the operation you want:",
144578
144239
  function: {
144579
- self: "Enable features",
144240
+ self: "Enable Features",
144241
+ question: "Please select the feature name:",
144580
144242
  tailwindcss: "Enable Tailwind CSS",
144581
144243
  bff: "Enable BFF",
144582
144244
  micro_frontend: "Enable Micro Frontend",
@@ -144594,12 +144256,14 @@ var EN_LOCALE2 = {
144594
144256
  rspack: "Enable Rspack Build (experimental)"
144595
144257
  },
144596
144258
  element: {
144597
- self: "Create project element",
144259
+ self: "Create Element",
144260
+ question: "Please select the type of element to create:",
144598
144261
  entry: 'New "entry"',
144599
144262
  server: 'New "Custom Web Server" source code directory'
144600
144263
  },
144601
144264
  refactor: {
144602
- self: "Automatic refactor",
144265
+ self: "Automatic Refactor",
144266
+ question: "Please select the type of refactoring:",
144603
144267
  react_router_5: "Use React Router v5"
144604
144268
  }
144605
144269
  },
@@ -144608,28 +144272,28 @@ var EN_LOCALE2 = {
144608
144272
  no: "No"
144609
144273
  },
144610
144274
  language: {
144611
- self: "Development Language"
144275
+ self: "Please select the programming language:"
144612
144276
  },
144613
144277
  packageManager: {
144614
- self: "Package Manager"
144278
+ self: "Please select the package manager:"
144279
+ },
144280
+ entry: {
144281
+ name: "Please fill in the entry name:",
144282
+ no_empty: "The entry name cannot be empty!",
144283
+ no_pages: 'The entry name cannot be "pages"!'
144615
144284
  },
144616
144285
  packageName: {
144617
- self: "Package Name",
144618
- sub_name: "Package Name",
144286
+ self: "Please fill in the project name:",
144287
+ sub_name: "Please fill in the sub-project name:",
144619
144288
  no_empty: "The package name cannot be empty!"
144620
144289
  },
144621
144290
  packagePath: {
144622
- self: "Package Path",
144291
+ self: "Please fill in the sub-project directory name:",
144623
144292
  no_empty: "The package path cannot be empty!",
144624
144293
  format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
144625
144294
  },
144626
- entry: {
144627
- name: "Entry name",
144628
- no_empty: "The entry name cannot be empty!",
144629
- no_pages: 'The entry name cannot be "pages"!'
144630
- },
144631
144295
  framework: {
144632
- self: "Please select the framework you want to use",
144296
+ self: "Please select the framework:",
144633
144297
  egg: "Egg",
144634
144298
  express: "Express",
144635
144299
  koa: "Koa",
@@ -144637,13 +144301,13 @@ var EN_LOCALE2 = {
144637
144301
  },
144638
144302
  bff: {
144639
144303
  bffType: {
144640
- self: "BFF Type",
144304
+ self: "Please select the BFF type:",
144641
144305
  func: "Function",
144642
144306
  framework: "Framework"
144643
144307
  }
144644
144308
  },
144645
144309
  buildTools: {
144646
- self: "Bundler",
144310
+ self: "Please select the bundler:",
144647
144311
  webpack: "webpack",
144648
144312
  rspack: "Rspack (experimental)"
144649
144313
  }
@@ -145043,6 +144707,11 @@ var ActionTypeText = {
145043
144707
  [ActionType.Element]: () => i18n2.t(localeKeys2.action.element.self),
145044
144708
  [ActionType.Refactor]: () => i18n2.t(localeKeys2.action.refactor.self)
145045
144709
  };
144710
+ var ActionTypeQuestionText = {
144711
+ [ActionType.Function]: () => i18n2.t(localeKeys2.action.function.question),
144712
+ [ActionType.Element]: () => i18n2.t(localeKeys2.action.element.question),
144713
+ [ActionType.Refactor]: () => i18n2.t(localeKeys2.action.refactor.question)
144714
+ };
145046
144715
  var ActionElementText = {
145047
144716
  [ActionElement.Entry]: () => i18n2.t(localeKeys2.action.element.entry),
145048
144717
  [ActionElement.Server]: () => i18n2.t(localeKeys2.action.element.server)
@@ -145122,7 +144791,7 @@ var getMWANewActionSchema = (extra = {}) => {
145122
144791
  },
145123
144792
  [ActionType.Element]: {
145124
144793
  type: "string",
145125
- title: ActionTypeText[ActionType.Element](),
144794
+ title: ActionTypeQuestionText[ActionType.Element](),
145126
144795
  enum: MWAActionElements.map((element) => ({
145127
144796
  value: element,
145128
144797
  label: ActionElementText[element]()
@@ -145142,7 +144811,7 @@ var getMWANewActionSchema = (extra = {}) => {
145142
144811
  },
145143
144812
  [ActionType.Function]: {
145144
144813
  type: "string",
145145
- title: ActionTypeText[ActionType.Function](),
144814
+ title: ActionTypeQuestionText[ActionType.Function](),
145146
144815
  enum: funcs.map((func) => ({
145147
144816
  value: func,
145148
144817
  label: func === ActionFunction.Storybook ? i18n2.t(localeKeys2.action.function.mwa_storybook) : ActionFunctionText[func]()
@@ -145162,7 +144831,7 @@ var getMWANewActionSchema = (extra = {}) => {
145162
144831
  },
145163
144832
  [ActionType.Refactor]: {
145164
144833
  type: "string",
145165
- title: ActionTypeText[ActionType.Refactor](),
144834
+ title: ActionTypeQuestionText[ActionType.Refactor](),
145166
144835
  enum: refactors.map((refactor) => ({
145167
144836
  value: refactor,
145168
144837
  label: ActionRefactorText[refactor]()
@@ -145307,7 +144976,7 @@ var getModuleNewActionSchema = (extra = {}) => {
145307
144976
  },
145308
144977
  [ActionType.Function]: {
145309
144978
  type: "string",
145310
- title: ActionTypeText[ActionType.Function](),
144979
+ title: ActionTypeQuestionText[ActionType.Function](),
145311
144980
  enum: ModuleActionFunctions.filter((func) => !funcMap[func]).map((func) => ({
145312
144981
  value: func,
145313
144982
  label: ActionFunctionText[func]()
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1685383616364",
18
+ "version": "0.0.0-next-1685436485731",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "main": "./dist/index.js",
21
21
  "files": [
@@ -29,17 +29,17 @@
29
29
  "@types/node": "^14",
30
30
  "jest": "^29",
31
31
  "typescript": "^5",
32
- "@modern-js/base-generator": "0.0.0-next-1685383616364",
33
- "@modern-js/generator-common": "0.0.0-next-1685383616364",
34
- "@modern-js/generator-plugin": "0.0.0-next-1685383616364",
35
- "@modern-js/generator-utils": "0.0.0-next-1685383616364",
36
- "@modern-js/module-generator": "0.0.0-next-1685383616364",
37
- "@modern-js/monorepo-generator": "0.0.0-next-1685383616364",
38
- "@modern-js/doc-generator": "0.0.0-next-1685383616364",
39
- "@modern-js/mwa-generator": "0.0.0-next-1685383616364",
40
- "@scripts/build": "0.0.0-next-1685383616364",
41
- "@modern-js/utils": "0.0.0-next-1685383616364",
42
- "@scripts/jest-config": "0.0.0-next-1685383616364"
32
+ "@modern-js/base-generator": "0.0.0-next-1685436485731",
33
+ "@modern-js/generator-common": "0.0.0-next-1685436485731",
34
+ "@modern-js/generator-plugin": "0.0.0-next-1685436485731",
35
+ "@modern-js/generator-utils": "0.0.0-next-1685436485731",
36
+ "@modern-js/mwa-generator": "0.0.0-next-1685436485731",
37
+ "@modern-js/monorepo-generator": "0.0.0-next-1685436485731",
38
+ "@modern-js/module-generator": "0.0.0-next-1685436485731",
39
+ "@modern-js/doc-generator": "0.0.0-next-1685436485731",
40
+ "@scripts/build": "0.0.0-next-1685436485731",
41
+ "@modern-js/utils": "0.0.0-next-1685436485731",
42
+ "@scripts/jest-config": "0.0.0-next-1685436485731"
43
43
  },
44
44
  "sideEffects": false,
45
45
  "publishConfig": {