@modern-js/entry-generator 3.0.5 → 3.0.6

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 (3) hide show
  1. package/README.md +14 -18
  2. package/dist/index.js +107 -96
  3. package/package.json +8 -8
package/README.md CHANGED
@@ -1,30 +1,26 @@
1
-
2
1
  <p align="center">
3
2
  <a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png" width="300" alt="Modern.js Logo" /></a>
4
3
  </p>
4
+
5
+ <h1 align="center">Modern.js</h1>
6
+
5
7
  <p align="center">
6
- 现代 Web 工程体系
7
- <br/>
8
- <a href="https://modernjs.dev" target="blank">
9
- modernjs.dev
10
- </a>
11
- </p>
12
- <p align="center">
13
- The meta-framework suite designed from scratch for frontend-focused modern web development
8
+ A Progressive React Framework for modern web development.
14
9
  </p>
15
10
 
16
- # Introduction
17
-
18
- > The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.
11
+ ## Getting Started
19
12
 
20
- - [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)
13
+ Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-start) to get started with Modern.js.
21
14
 
22
- ## Getting Started
15
+ ## Documentation
23
16
 
24
- - [Quick Start](https://modernjs.dev/docs/start)
25
- - [Guides](https://modernjs.dev/docs/guides)
26
- - [API References](https://modernjs.dev/docs/apis)
17
+ - [English Documentation](https://modernjs.dev/en/)
18
+ - [中文文档](https://modernjs.dev)
27
19
 
28
20
  ## Contributing
29
21
 
30
- - [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)
22
+ Please read the [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md).
23
+
24
+ ## License
25
+
26
+ Modern.js is [MIT licensed](https://github.com/modern-js-dev/modern.js/blob/main/LICENSE).
package/dist/index.js CHANGED
@@ -35109,12 +35109,14 @@ var require_node_env = __commonJS({
35109
35109
  "../../../toolkit/utils/dist/is/node-env.js"(exports) {
35110
35110
  "use strict";
35111
35111
  Object.defineProperty(exports, "__esModule", { value: true });
35112
- exports.isProdProfile = exports.isTest = exports.isProd = exports.isDev = void 0;
35113
- var isDev = () => process.env.NODE_ENV === "development";
35112
+ exports.isProdProfile = exports.isTest = exports.isProd = exports.isDev = exports.getNodeEnv = void 0;
35113
+ var getNodeEnv = () => process.env.NODE_ENV || "development";
35114
+ exports.getNodeEnv = getNodeEnv;
35115
+ var isDev = () => (0, exports.getNodeEnv)() === "development";
35114
35116
  exports.isDev = isDev;
35115
- var isProd = () => process.env.NODE_ENV === "production";
35117
+ var isProd = () => (0, exports.getNodeEnv)() === "production";
35116
35118
  exports.isProd = isProd;
35117
- var isTest = () => process.env.NODE_ENV === "test";
35119
+ var isTest = () => (0, exports.getNodeEnv)() === "test";
35118
35120
  exports.isTest = isTest;
35119
35121
  var isProdProfile = () => (0, exports.isProd)() && process.argv.includes("--profile");
35120
35122
  exports.isProdProfile = isProdProfile;
@@ -35257,10 +35259,10 @@ var require_is = __commonJS({
35257
35259
 
35258
35260
  // ../../../toolkit/utils/dist/compatRequire.js
35259
35261
  var require_compatRequire = __commonJS({
35260
- "../../../toolkit/utils/dist/compatRequire.js"(exports) {
35262
+ "../../../toolkit/utils/dist/compatRequire.js"(exports, module2) {
35261
35263
  "use strict";
35262
35264
  Object.defineProperty(exports, "__esModule", { value: true });
35263
- exports.cleanRequireCache = exports.requireExistModule = exports.dynamicImport = exports.compatRequire = void 0;
35265
+ exports.deleteRequireCache = exports.cleanRequireCache = exports.requireExistModule = exports.dynamicImport = exports.compatRequire = void 0;
35264
35266
  var findExists_1 = require_findExists();
35265
35267
  var compatRequire = (filePath, interop = true) => {
35266
35268
  const mod = require(filePath);
@@ -35287,6 +35289,15 @@ var require_compatRequire = __commonJS({
35287
35289
  });
35288
35290
  };
35289
35291
  exports.cleanRequireCache = cleanRequireCache;
35292
+ function deleteRequireCache(path4) {
35293
+ if (require.cache[path4]) {
35294
+ delete require.cache[path4];
35295
+ }
35296
+ if (module2.children) {
35297
+ module2.children = module2.children.filter((item) => item.filename !== path4);
35298
+ }
35299
+ }
35300
+ exports.deleteRequireCache = deleteRequireCache;
35290
35301
  }
35291
35302
  });
35292
35303
 
@@ -102025,12 +102036,12 @@ var require_figures = __commonJS({
102025
102036
  var require_separator = __commonJS({
102026
102037
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/objects/separator.js"(exports, module2) {
102027
102038
  "use strict";
102028
- var chalk = require_chalk2();
102039
+ var chalk2 = require_chalk2();
102029
102040
  var figures = require_figures();
102030
102041
  var Separator = class {
102031
102042
  constructor(line) {
102032
102043
  this.type = "separator";
102033
- this.line = chalk.dim(line || new Array(15).join(figures.line));
102044
+ this.line = chalk2.dim(line || new Array(15).join(figures.line));
102034
102045
  }
102035
102046
  toString() {
102036
102047
  return this.line;
@@ -121448,7 +121459,7 @@ var require_ora3 = __commonJS({
121448
121459
  "../../../../node_modules/.pnpm/ora@5.4.1/node_modules/ora/index.js"(exports, module2) {
121449
121460
  "use strict";
121450
121461
  var readline = require("readline");
121451
- var chalk = require_chalk2();
121462
+ var chalk2 = require_chalk2();
121452
121463
  var cliCursor = require_cli_cursor();
121453
121464
  var cliSpinners = require_cli_spinners();
121454
121465
  var logSymbols = require_browser2();
@@ -121644,7 +121655,7 @@ var require_ora3 = __commonJS({
121644
121655
  const { frames } = this.spinner;
121645
121656
  let frame = frames[this.frameIndex];
121646
121657
  if (this.color) {
121647
- frame = chalk[this.color](frame);
121658
+ frame = chalk2[this.color](frame);
121648
121659
  }
121649
121660
  this.frameIndex = ++this.frameIndex % frames.length;
121650
121661
  const fullPrefixText = typeof this.prefixText === "string" && this.prefixText !== "" ? this.prefixText + " " : "";
@@ -121893,7 +121904,7 @@ var require_base3 = __commonJS({
121893
121904
  defaults: require_defaults2(),
121894
121905
  clone: require_clone()
121895
121906
  };
121896
- var chalk = require_chalk2();
121907
+ var chalk2 = require_chalk2();
121897
121908
  var runAsync = require_run_async();
121898
121909
  var { filter, flatMap, share, take, takeUntil } = require_operators();
121899
121910
  var Choices = require_choices();
@@ -121911,7 +121922,7 @@ var require_base3 = __commonJS({
121911
121922
  filteringText: "",
121912
121923
  when: () => true,
121913
121924
  suffix: "",
121914
- prefix: chalk.green("?")
121925
+ prefix: chalk2.green("?")
121915
121926
  });
121916
121927
  if (!this.opt.name) {
121917
121928
  this.throwParamError("name");
@@ -121984,12 +121995,12 @@ var require_base3 = __commonJS({
121984
121995
  return value;
121985
121996
  }
121986
121997
  getQuestion() {
121987
- let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk.bold(this.opt.message) + this.opt.suffix + chalk.reset(" ");
121998
+ let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk2.bold(this.opt.message) + this.opt.suffix + chalk2.reset(" ");
121988
121999
  if (this.opt.default != null && this.status !== "touched" && this.status !== "answered") {
121989
122000
  if (this.opt.type === "password") {
121990
- message += chalk.italic.dim("[hidden] ");
122001
+ message += chalk2.italic.dim("[hidden] ");
121991
122002
  } else {
121992
- message += chalk.dim("(" + this.opt.default + ") ");
122003
+ message += chalk2.dim("(" + this.opt.default + ") ");
121993
122004
  }
121994
122005
  }
121995
122006
  return message;
@@ -122051,7 +122062,7 @@ var require_events = __commonJS({
122051
122062
  var require_paginator = __commonJS({
122052
122063
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/utils/paginator.js"(exports, module2) {
122053
122064
  "use strict";
122054
- var chalk = require_chalk2();
122065
+ var chalk2 = require_chalk2();
122055
122066
  var Paginator = class {
122056
122067
  constructor(screen, options = {}) {
122057
122068
  const { isInfinite = true } = options;
@@ -122072,7 +122083,7 @@ var require_paginator = __commonJS({
122072
122083
  }
122073
122084
  const visibleLines = this.isInfinite ? this.getInfiniteLines(lines, active, pageSize) : this.getFiniteLines(lines, active, pageSize);
122074
122085
  this.lastIndex = active;
122075
- return visibleLines.join("\n") + "\n" + chalk.dim("(Move up and down to reveal more choices)");
122086
+ return visibleLines.join("\n") + "\n" + chalk2.dim("(Move up and down to reveal more choices)");
122076
122087
  }
122077
122088
  getInfiniteLines(lines, active, pageSize) {
122078
122089
  if (this.pointer === void 0) {
@@ -122128,7 +122139,7 @@ var require_incrementListIndex = __commonJS({
122128
122139
  var require_list2 = __commonJS({
122129
122140
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/prompts/list.js"(exports, module2) {
122130
122141
  "use strict";
122131
- var chalk = require_chalk2();
122142
+ var chalk2 = require_chalk2();
122132
122143
  var figures = require_figures();
122133
122144
  var cliCursor = require_cli_cursor();
122134
122145
  var runAsync = require_run_async();
@@ -122177,10 +122188,10 @@ var require_list2 = __commonJS({
122177
122188
  render() {
122178
122189
  let message = this.getQuestion();
122179
122190
  if (this.firstRender) {
122180
- message += chalk.dim("(Use arrow keys)");
122191
+ message += chalk2.dim("(Use arrow keys)");
122181
122192
  }
122182
122193
  if (this.status === "answered") {
122183
- message += chalk.cyan(this.opt.choices.getChoice(this.selected).short);
122194
+ message += chalk2.cyan(this.opt.choices.getChoice(this.selected).short);
122184
122195
  } else {
122185
122196
  const choicesStr = listRender(this.opt.choices, this.selected);
122186
122197
  const indexPosition = this.opt.choices.indexOf(
@@ -122249,7 +122260,7 @@ var require_list2 = __commonJS({
122249
122260
  const isSelected = i - separatorOffset === pointer;
122250
122261
  let line = (isSelected ? figures.pointer + " " : " ") + choice.name;
122251
122262
  if (isSelected) {
122252
- line = chalk.cyan(line);
122263
+ line = chalk2.cyan(line);
122253
122264
  }
122254
122265
  output2 += line + " \n";
122255
122266
  });
@@ -122263,7 +122274,7 @@ var require_list2 = __commonJS({
122263
122274
  var require_input = __commonJS({
122264
122275
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/prompts/input.js"(exports, module2) {
122265
122276
  "use strict";
122266
- var chalk = require_chalk2();
122277
+ var chalk2 = require_chalk2();
122267
122278
  var { map: map2, takeUntil } = require_operators();
122268
122279
  var Base = require_base3();
122269
122280
  var observe2 = require_events();
@@ -122293,10 +122304,10 @@ var require_input = __commonJS({
122293
122304
  if (transformer) {
122294
122305
  message += transformer(appendContent, this.answers, { isFinal });
122295
122306
  } else {
122296
- message += isFinal ? chalk.cyan(appendContent) : appendContent;
122307
+ message += isFinal ? chalk2.cyan(appendContent) : appendContent;
122297
122308
  }
122298
122309
  if (error) {
122299
- bottomContent = chalk.red(">> ") + error;
122310
+ bottomContent = chalk2.red(">> ") + error;
122300
122311
  }
122301
122312
  this.screen.render(message, bottomContent);
122302
122313
  }
@@ -122352,7 +122363,7 @@ var require_number = __commonJS({
122352
122363
  var require_confirm = __commonJS({
122353
122364
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/prompts/confirm.js"(exports, module2) {
122354
122365
  "use strict";
122355
- var chalk = require_chalk2();
122366
+ var chalk2 = require_chalk2();
122356
122367
  var { take, takeUntil } = require_operators();
122357
122368
  var Base = require_base3();
122358
122369
  var observe2 = require_events();
@@ -122385,7 +122396,7 @@ var require_confirm = __commonJS({
122385
122396
  render(answer) {
122386
122397
  let message = this.getQuestion();
122387
122398
  if (typeof answer === "boolean") {
122388
- message += chalk.cyan(answer ? "Yes" : "No");
122399
+ message += chalk2.cyan(answer ? "Yes" : "No");
122389
122400
  } else {
122390
122401
  message += this.rl.line;
122391
122402
  }
@@ -122411,7 +122422,7 @@ var require_confirm = __commonJS({
122411
122422
  var require_rawlist = __commonJS({
122412
122423
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/prompts/rawlist.js"(exports, module2) {
122413
122424
  "use strict";
122414
- var chalk = require_chalk2();
122425
+ var chalk2 = require_chalk2();
122415
122426
  var { map: map2, takeUntil } = require_operators();
122416
122427
  var Base = require_base3();
122417
122428
  var Separator = require_separator();
@@ -122465,7 +122476,7 @@ var require_rawlist = __commonJS({
122465
122476
  let message = this.getQuestion();
122466
122477
  let bottomContent = "";
122467
122478
  if (this.status === "answered") {
122468
- message += chalk.cyan(this.opt.choices.getChoice(this.selected).short);
122479
+ message += chalk2.cyan(this.opt.choices.getChoice(this.selected).short);
122469
122480
  } else {
122470
122481
  const choicesStr = renderChoices(this.opt.choices, this.selected);
122471
122482
  message += "\n" + this.paginator.paginate(choicesStr, this.selected, this.opt.pageSize);
@@ -122473,7 +122484,7 @@ var require_rawlist = __commonJS({
122473
122484
  }
122474
122485
  message += this.rl.line;
122475
122486
  if (error) {
122476
- bottomContent = "\n" + chalk.red(">> ") + error;
122487
+ bottomContent = "\n" + chalk2.red(">> ") + error;
122477
122488
  }
122478
122489
  this.screen.render(message, bottomContent);
122479
122490
  }
@@ -122540,7 +122551,7 @@ var require_rawlist = __commonJS({
122540
122551
  const index = i - separatorOffset;
122541
122552
  let display = index + 1 + ") " + choice.name;
122542
122553
  if (index === pointer) {
122543
- display = chalk.cyan(display);
122554
+ display = chalk2.cyan(display);
122544
122555
  }
122545
122556
  output2 += display;
122546
122557
  });
@@ -122554,7 +122565,7 @@ var require_rawlist = __commonJS({
122554
122565
  var require_expand2 = __commonJS({
122555
122566
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/prompts/expand.js"(exports, module2) {
122556
122567
  "use strict";
122557
- var chalk = require_chalk2();
122568
+ var chalk2 = require_chalk2();
122558
122569
  var { map: map2, takeUntil } = require_operators();
122559
122570
  var Base = require_base3();
122560
122571
  var Separator = require_separator();
@@ -122597,7 +122608,7 @@ var require_expand2 = __commonJS({
122597
122608
  let message = this.getQuestion();
122598
122609
  let bottomContent = "";
122599
122610
  if (this.status === "answered") {
122600
- message += chalk.cyan(this.answer);
122611
+ message += chalk2.cyan(this.answer);
122601
122612
  } else if (this.status === "expanded") {
122602
122613
  const choicesStr = renderChoices(this.opt.choices, this.selectedKey);
122603
122614
  message += this.paginator.paginate(choicesStr, this.selectedKey, this.opt.pageSize);
@@ -122605,10 +122616,10 @@ var require_expand2 = __commonJS({
122605
122616
  }
122606
122617
  message += this.rl.line;
122607
122618
  if (error) {
122608
- bottomContent = chalk.red(">> ") + error;
122619
+ bottomContent = chalk2.red(">> ") + error;
122609
122620
  }
122610
122621
  if (hint) {
122611
- bottomContent = chalk.cyan(">> ") + hint;
122622
+ bottomContent = chalk2.cyan(">> ") + hint;
122612
122623
  }
122613
122624
  this.screen.render(message, bottomContent);
122614
122625
  }
@@ -122632,7 +122643,7 @@ var require_expand2 = __commonJS({
122632
122643
  }
122633
122644
  let choiceStr = choice.key + ") " + choice.name;
122634
122645
  if (this.selectedKey === choice.key) {
122635
- choiceStr = chalk.cyan(choiceStr);
122646
+ choiceStr = chalk2.cyan(choiceStr);
122636
122647
  }
122637
122648
  output2 += choiceStr;
122638
122649
  });
@@ -122718,7 +122729,7 @@ var require_expand2 = __commonJS({
122718
122729
  }
122719
122730
  let choiceStr = choice.key + ") " + choice.name;
122720
122731
  if (pointer === choice.key) {
122721
- choiceStr = chalk.cyan(choiceStr);
122732
+ choiceStr = chalk2.cyan(choiceStr);
122722
122733
  }
122723
122734
  output2 += choiceStr;
122724
122735
  });
@@ -122732,7 +122743,7 @@ var require_expand2 = __commonJS({
122732
122743
  var require_checkbox = __commonJS({
122733
122744
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/prompts/checkbox.js"(exports, module2) {
122734
122745
  "use strict";
122735
- var chalk = require_chalk2();
122746
+ var chalk2 = require_chalk2();
122736
122747
  var cliCursor = require_cli_cursor();
122737
122748
  var figures = require_figures();
122738
122749
  var { map: map2, takeUntil } = require_operators();
@@ -122781,10 +122792,10 @@ var require_checkbox = __commonJS({
122781
122792
  let message = this.getQuestion();
122782
122793
  let bottomContent = "";
122783
122794
  if (!this.dontShowHints) {
122784
- message += "(Press " + chalk.cyan.bold("<space>") + " to select, " + chalk.cyan.bold("<a>") + " to toggle all, " + chalk.cyan.bold("<i>") + " to invert selection, and " + chalk.cyan.bold("<enter>") + " to proceed)";
122795
+ message += "(Press " + chalk2.cyan.bold("<space>") + " to select, " + chalk2.cyan.bold("<a>") + " to toggle all, " + chalk2.cyan.bold("<i>") + " to invert selection, and " + chalk2.cyan.bold("<enter>") + " to proceed)";
122785
122796
  }
122786
122797
  if (this.status === "answered") {
122787
- message += chalk.cyan(this.selection.join(", "));
122798
+ message += chalk2.cyan(this.selection.join(", "));
122788
122799
  } else {
122789
122800
  const choicesStr = renderChoices(this.opt.choices, this.pointer);
122790
122801
  const indexPosition = this.opt.choices.indexOf(
@@ -122807,7 +122818,7 @@ var require_checkbox = __commonJS({
122807
122818
  message += "\n" + this.paginator.paginate(choicesStr, realIndexPosition, this.opt.pageSize);
122808
122819
  }
122809
122820
  if (error) {
122810
- bottomContent = chalk.red(">> ") + error;
122821
+ bottomContent = chalk2.red(">> ") + error;
122811
122822
  }
122812
122823
  this.screen.render(message, bottomContent);
122813
122824
  }
@@ -122890,7 +122901,7 @@ var require_checkbox = __commonJS({
122890
122901
  } else {
122891
122902
  const line = getCheckbox(choice.checked) + " " + choice.name;
122892
122903
  if (i - separatorOffset === pointer) {
122893
- output2 += chalk.cyan(figures.pointer + line);
122904
+ output2 += chalk2.cyan(figures.pointer + line);
122894
122905
  } else {
122895
122906
  output2 += " " + line;
122896
122907
  }
@@ -122900,7 +122911,7 @@ var require_checkbox = __commonJS({
122900
122911
  return output2.replace(/\n$/, "");
122901
122912
  }
122902
122913
  function getCheckbox(checked) {
122903
- return checked ? chalk.green(figures.radioOn) : figures.radioOff;
122914
+ return checked ? chalk2.green(figures.radioOn) : figures.radioOff;
122904
122915
  }
122905
122916
  module2.exports = CheckboxPrompt;
122906
122917
  }
@@ -122910,7 +122921,7 @@ var require_checkbox = __commonJS({
122910
122921
  var require_password = __commonJS({
122911
122922
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/prompts/password.js"(exports, module2) {
122912
122923
  "use strict";
122913
- var chalk = require_chalk2();
122924
+ var chalk2 = require_chalk2();
122914
122925
  var { map: map2, takeUntil } = require_operators();
122915
122926
  var Base = require_base3();
122916
122927
  var observe2 = require_events();
@@ -122943,15 +122954,15 @@ var require_password = __commonJS({
122943
122954
  message += this.getMaskedValue(this.rl.line || "");
122944
122955
  }
122945
122956
  if (error) {
122946
- bottomContent = "\n" + chalk.red(">> ") + error;
122957
+ bottomContent = "\n" + chalk2.red(">> ") + error;
122947
122958
  }
122948
122959
  this.screen.render(message, bottomContent);
122949
122960
  }
122950
122961
  getMaskedValue(value) {
122951
122962
  if (this.status === "answered") {
122952
- return this.opt.mask ? chalk.cyan(mask(value, this.opt.mask)) : chalk.italic.dim("[hidden]");
122963
+ return this.opt.mask ? chalk2.cyan(mask(value, this.opt.mask)) : chalk2.italic.dim("[hidden]");
122953
122964
  }
122954
- return this.opt.mask ? mask(value, this.opt.mask) : chalk.italic.dim("[input is hidden] ");
122965
+ return this.opt.mask ? mask(value, this.opt.mask) : chalk2.italic.dim("[input is hidden] ");
122955
122966
  }
122956
122967
  getSpinningValue(value) {
122957
122968
  return this.getMaskedValue(value);
@@ -132459,7 +132470,7 @@ var require_main = __commonJS({
132459
132470
  var require_editor = __commonJS({
132460
132471
  "../../../../node_modules/.pnpm/inquirer@8.2.2/node_modules/inquirer/lib/prompts/editor.js"(exports, module2) {
132461
132472
  "use strict";
132462
- var chalk = require_chalk2();
132473
+ var chalk2 = require_chalk2();
132463
132474
  var { editAsync } = require_main();
132464
132475
  var Base = require_base3();
132465
132476
  var observe2 = require_events();
@@ -132482,12 +132493,12 @@ var require_editor = __commonJS({
132482
132493
  let bottomContent = "";
132483
132494
  let message = this.getQuestion();
132484
132495
  if (this.status === "answered") {
132485
- message += chalk.dim("Received");
132496
+ message += chalk2.dim("Received");
132486
132497
  } else {
132487
- message += chalk.dim("Press <enter> to launch your preferred editor.");
132498
+ message += chalk2.dim("Press <enter> to launch your preferred editor.");
132488
132499
  }
132489
132500
  if (error) {
132490
- bottomContent = chalk.red(">> ") + error;
132501
+ bottomContent = chalk2.red(">> ") + error;
132491
132502
  }
132492
132503
  this.screen.render(message, bottomContent);
132493
132504
  }
@@ -133031,12 +133042,12 @@ var require_node7 = __commonJS({
133031
133042
  var require_separator2 = __commonJS({
133032
133043
  "../../../../node_modules/.pnpm/inquirer@8.1.3/node_modules/inquirer/lib/objects/separator.js"(exports, module2) {
133033
133044
  "use strict";
133034
- var chalk = require_chalk2();
133045
+ var chalk2 = require_chalk2();
133035
133046
  var figures = require_figures();
133036
133047
  var Separator = class {
133037
133048
  constructor(line) {
133038
133049
  this.type = "separator";
133039
- this.line = chalk.dim(line || new Array(15).join(figures.line));
133050
+ this.line = chalk2.dim(line || new Array(15).join(figures.line));
133040
133051
  }
133041
133052
  toString() {
133042
133053
  return this.line;
@@ -134025,7 +134036,7 @@ var require_base4 = __commonJS({
134025
134036
  defaults: require_defaults2(),
134026
134037
  clone: require_clone()
134027
134038
  };
134028
- var chalk = require_chalk2();
134039
+ var chalk2 = require_chalk2();
134029
134040
  var runAsync = require_run_async();
134030
134041
  var { filter, flatMap, share, take, takeUntil } = require_operators();
134031
134042
  var Choices = require_choices2();
@@ -134043,7 +134054,7 @@ var require_base4 = __commonJS({
134043
134054
  filteringText: "",
134044
134055
  when: () => true,
134045
134056
  suffix: "",
134046
- prefix: chalk.green("?")
134057
+ prefix: chalk2.green("?")
134047
134058
  });
134048
134059
  if (!this.opt.name) {
134049
134060
  this.throwParamError("name");
@@ -134116,12 +134127,12 @@ var require_base4 = __commonJS({
134116
134127
  return value;
134117
134128
  }
134118
134129
  getQuestion() {
134119
- let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk.bold(this.opt.message) + this.opt.suffix + chalk.reset(" ");
134130
+ let message = (this.opt.prefix ? this.opt.prefix + " " : "") + chalk2.bold(this.opt.message) + this.opt.suffix + chalk2.reset(" ");
134120
134131
  if (this.opt.default != null && this.status !== "touched" && this.status !== "answered") {
134121
134132
  if (this.opt.type === "password") {
134122
- message += chalk.italic.dim("[hidden] ");
134133
+ message += chalk2.italic.dim("[hidden] ");
134123
134134
  } else {
134124
- message += chalk.dim("(" + this.opt.default + ") ");
134135
+ message += chalk2.dim("(" + this.opt.default + ") ");
134125
134136
  }
134126
134137
  }
134127
134138
  return message;
@@ -134216,7 +134227,7 @@ var require_paginator2 = __commonJS({
134216
134227
  sum: require_sum(),
134217
134228
  flatten: require_flatten()
134218
134229
  };
134219
- var chalk = require_chalk2();
134230
+ var chalk2 = require_chalk2();
134220
134231
  var Paginator = class {
134221
134232
  constructor(screen, options = {}) {
134222
134233
  const { isInfinite = true } = options;
@@ -134237,7 +134248,7 @@ var require_paginator2 = __commonJS({
134237
134248
  }
134238
134249
  const visibleLines = this.isInfinite ? this.getInfiniteLines(lines, active, pageSize) : this.getFiniteLines(lines, active, pageSize);
134239
134250
  this.lastIndex = active;
134240
- return visibleLines.join("\n") + "\n" + chalk.dim("(Move up and down to reveal more choices)");
134251
+ return visibleLines.join("\n") + "\n" + chalk2.dim("(Move up and down to reveal more choices)");
134241
134252
  }
134242
134253
  getInfiniteLines(lines, active, pageSize) {
134243
134254
  if (this.pointer === void 0) {
@@ -134298,7 +134309,7 @@ var require_list3 = __commonJS({
134298
134309
  findIndex: require_findIndex2(),
134299
134310
  isString: require_isString()
134300
134311
  };
134301
- var chalk = require_chalk2();
134312
+ var chalk2 = require_chalk2();
134302
134313
  var figures = require_figures();
134303
134314
  var cliCursor = require_cli_cursor();
134304
134315
  var runAsync = require_run_async();
@@ -134350,10 +134361,10 @@ var require_list3 = __commonJS({
134350
134361
  render() {
134351
134362
  let message = this.getQuestion();
134352
134363
  if (this.firstRender) {
134353
- message += chalk.dim("(Use arrow keys)");
134364
+ message += chalk2.dim("(Use arrow keys)");
134354
134365
  }
134355
134366
  if (this.status === "answered") {
134356
- message += chalk.cyan(this.opt.choices.getChoice(this.selected).short);
134367
+ message += chalk2.cyan(this.opt.choices.getChoice(this.selected).short);
134357
134368
  } else {
134358
134369
  const choicesStr = listRender(this.opt.choices, this.selected);
134359
134370
  const indexPosition = this.opt.choices.indexOf(
@@ -134422,7 +134433,7 @@ var require_list3 = __commonJS({
134422
134433
  const isSelected = i - separatorOffset === pointer;
134423
134434
  let line = (isSelected ? figures.pointer + " " : " ") + choice.name;
134424
134435
  if (isSelected) {
134425
- line = chalk.cyan(line);
134436
+ line = chalk2.cyan(line);
134426
134437
  }
134427
134438
  output2 += line + " \n";
134428
134439
  });
@@ -134436,7 +134447,7 @@ var require_list3 = __commonJS({
134436
134447
  var require_input2 = __commonJS({
134437
134448
  "../../../../node_modules/.pnpm/inquirer@8.1.3/node_modules/inquirer/lib/prompts/input.js"(exports, module2) {
134438
134449
  "use strict";
134439
- var chalk = require_chalk2();
134450
+ var chalk2 = require_chalk2();
134440
134451
  var { map: map2, takeUntil } = require_operators();
134441
134452
  var Base = require_base4();
134442
134453
  var observe2 = require_events2();
@@ -134466,10 +134477,10 @@ var require_input2 = __commonJS({
134466
134477
  if (transformer) {
134467
134478
  message += transformer(appendContent, this.answers, { isFinal });
134468
134479
  } else {
134469
- message += isFinal ? chalk.cyan(appendContent) : appendContent;
134480
+ message += isFinal ? chalk2.cyan(appendContent) : appendContent;
134470
134481
  }
134471
134482
  if (error) {
134472
- bottomContent = chalk.red(">> ") + error;
134483
+ bottomContent = chalk2.red(">> ") + error;
134473
134484
  }
134474
134485
  this.screen.render(message, bottomContent);
134475
134486
  }
@@ -134542,7 +134553,7 @@ var require_confirm2 = __commonJS({
134542
134553
  extend: require_extend(),
134543
134554
  isBoolean: require_isBoolean()
134544
134555
  };
134545
- var chalk = require_chalk2();
134556
+ var chalk2 = require_chalk2();
134546
134557
  var { take, takeUntil } = require_operators();
134547
134558
  var Base = require_base4();
134548
134559
  var observe2 = require_events2();
@@ -134575,7 +134586,7 @@ var require_confirm2 = __commonJS({
134575
134586
  render(answer) {
134576
134587
  let message = this.getQuestion();
134577
134588
  if (typeof answer === "boolean") {
134578
- message += chalk.cyan(answer ? "Yes" : "No");
134589
+ message += chalk2.cyan(answer ? "Yes" : "No");
134579
134590
  } else {
134580
134591
  message += this.rl.line;
134581
134592
  }
@@ -134606,7 +134617,7 @@ var require_rawlist2 = __commonJS({
134606
134617
  isNumber: require_isNumber(),
134607
134618
  findIndex: require_findIndex2()
134608
134619
  };
134609
- var chalk = require_chalk2();
134620
+ var chalk2 = require_chalk2();
134610
134621
  var { map: map2, takeUntil } = require_operators();
134611
134622
  var Base = require_base4();
134612
134623
  var Separator = require_separator2();
@@ -134661,7 +134672,7 @@ var require_rawlist2 = __commonJS({
134661
134672
  let message = this.getQuestion();
134662
134673
  let bottomContent = "";
134663
134674
  if (this.status === "answered") {
134664
- message += chalk.cyan(this.opt.choices.getChoice(this.selected).short);
134675
+ message += chalk2.cyan(this.opt.choices.getChoice(this.selected).short);
134665
134676
  } else {
134666
134677
  const choicesStr = renderChoices(this.opt.choices, this.selected);
134667
134678
  message += "\n" + this.paginator.paginate(choicesStr, this.selected, this.opt.pageSize);
@@ -134669,7 +134680,7 @@ var require_rawlist2 = __commonJS({
134669
134680
  }
134670
134681
  message += this.rl.line;
134671
134682
  if (error) {
134672
- bottomContent = "\n" + chalk.red(">> ") + error;
134683
+ bottomContent = "\n" + chalk2.red(">> ") + error;
134673
134684
  }
134674
134685
  this.screen.render(message, bottomContent);
134675
134686
  }
@@ -134727,7 +134738,7 @@ var require_rawlist2 = __commonJS({
134727
134738
  const index = i - separatorOffset;
134728
134739
  let display = index + 1 + ") " + choice.name;
134729
134740
  if (index === pointer) {
134730
- display = chalk.cyan(display);
134741
+ display = chalk2.cyan(display);
134731
134742
  }
134732
134743
  output2 += display;
134733
134744
  });
@@ -134902,7 +134913,7 @@ var require_expand3 = __commonJS({
134902
134913
  isNumber: require_isNumber(),
134903
134914
  findIndex: require_findIndex2()
134904
134915
  };
134905
- var chalk = require_chalk2();
134916
+ var chalk2 = require_chalk2();
134906
134917
  var { map: map2, takeUntil } = require_operators();
134907
134918
  var Base = require_base4();
134908
134919
  var Separator = require_separator2();
@@ -134945,7 +134956,7 @@ var require_expand3 = __commonJS({
134945
134956
  let message = this.getQuestion();
134946
134957
  let bottomContent = "";
134947
134958
  if (this.status === "answered") {
134948
- message += chalk.cyan(this.answer);
134959
+ message += chalk2.cyan(this.answer);
134949
134960
  } else if (this.status === "expanded") {
134950
134961
  const choicesStr = renderChoices(this.opt.choices, this.selectedKey);
134951
134962
  message += this.paginator.paginate(choicesStr, this.selectedKey, this.opt.pageSize);
@@ -134953,10 +134964,10 @@ var require_expand3 = __commonJS({
134953
134964
  }
134954
134965
  message += this.rl.line;
134955
134966
  if (error) {
134956
- bottomContent = chalk.red(">> ") + error;
134967
+ bottomContent = chalk2.red(">> ") + error;
134957
134968
  }
134958
134969
  if (hint) {
134959
- bottomContent = chalk.cyan(">> ") + hint;
134970
+ bottomContent = chalk2.cyan(">> ") + hint;
134960
134971
  }
134961
134972
  this.screen.render(message, bottomContent);
134962
134973
  }
@@ -134980,7 +134991,7 @@ var require_expand3 = __commonJS({
134980
134991
  }
134981
134992
  let choiceStr = choice.key + ") " + choice.name;
134982
134993
  if (this.selectedKey === choice.key) {
134983
- choiceStr = chalk.cyan(choiceStr);
134994
+ choiceStr = chalk2.cyan(choiceStr);
134984
134995
  }
134985
134996
  output2 += choiceStr;
134986
134997
  });
@@ -135069,7 +135080,7 @@ var require_expand3 = __commonJS({
135069
135080
  }
135070
135081
  let choiceStr = choice.key + ") " + choice.name;
135071
135082
  if (pointer === choice.key) {
135072
- choiceStr = chalk.cyan(choiceStr);
135083
+ choiceStr = chalk2.cyan(choiceStr);
135073
135084
  }
135074
135085
  output2 += choiceStr;
135075
135086
  });
@@ -135088,7 +135099,7 @@ var require_checkbox2 = __commonJS({
135088
135099
  map: require_map2(),
135089
135100
  isString: require_isString()
135090
135101
  };
135091
- var chalk = require_chalk2();
135102
+ var chalk2 = require_chalk2();
135092
135103
  var cliCursor = require_cli_cursor();
135093
135104
  var figures = require_figures();
135094
135105
  var { map: map2, takeUntil } = require_operators();
@@ -135137,10 +135148,10 @@ var require_checkbox2 = __commonJS({
135137
135148
  let message = this.getQuestion();
135138
135149
  let bottomContent = "";
135139
135150
  if (!this.spaceKeyPressed) {
135140
- message += "(Press " + chalk.cyan.bold("<space>") + " to select, " + chalk.cyan.bold("<a>") + " to toggle all, " + chalk.cyan.bold("<i>") + " to invert selection)";
135151
+ message += "(Press " + chalk2.cyan.bold("<space>") + " to select, " + chalk2.cyan.bold("<a>") + " to toggle all, " + chalk2.cyan.bold("<i>") + " to invert selection)";
135141
135152
  }
135142
135153
  if (this.status === "answered") {
135143
- message += chalk.cyan(this.selection.join(", "));
135154
+ message += chalk2.cyan(this.selection.join(", "));
135144
135155
  } else {
135145
135156
  const choicesStr = renderChoices(this.opt.choices, this.pointer);
135146
135157
  const indexPosition = this.opt.choices.indexOf(
@@ -135163,7 +135174,7 @@ var require_checkbox2 = __commonJS({
135163
135174
  message += "\n" + this.paginator.paginate(choicesStr, realIndexPosition, this.opt.pageSize);
135164
135175
  }
135165
135176
  if (error) {
135166
- bottomContent = chalk.red(">> ") + error;
135177
+ bottomContent = chalk2.red(">> ") + error;
135167
135178
  }
135168
135179
  this.screen.render(message, bottomContent);
135169
135180
  }
@@ -135247,7 +135258,7 @@ var require_checkbox2 = __commonJS({
135247
135258
  } else {
135248
135259
  const line = getCheckbox(choice.checked) + " " + choice.name;
135249
135260
  if (i - separatorOffset === pointer) {
135250
- output2 += chalk.cyan(figures.pointer + line);
135261
+ output2 += chalk2.cyan(figures.pointer + line);
135251
135262
  } else {
135252
135263
  output2 += " " + line;
135253
135264
  }
@@ -135257,7 +135268,7 @@ var require_checkbox2 = __commonJS({
135257
135268
  return output2.replace(/\n$/, "");
135258
135269
  }
135259
135270
  function getCheckbox(checked) {
135260
- return checked ? chalk.green(figures.radioOn) : figures.radioOff;
135271
+ return checked ? chalk2.green(figures.radioOn) : figures.radioOff;
135261
135272
  }
135262
135273
  module2.exports = CheckboxPrompt;
135263
135274
  }
@@ -135267,7 +135278,7 @@ var require_checkbox2 = __commonJS({
135267
135278
  var require_password2 = __commonJS({
135268
135279
  "../../../../node_modules/.pnpm/inquirer@8.1.3/node_modules/inquirer/lib/prompts/password.js"(exports, module2) {
135269
135280
  "use strict";
135270
- var chalk = require_chalk2();
135281
+ var chalk2 = require_chalk2();
135271
135282
  var { map: map2, takeUntil } = require_operators();
135272
135283
  var Base = require_base4();
135273
135284
  var observe2 = require_events2();
@@ -135300,15 +135311,15 @@ var require_password2 = __commonJS({
135300
135311
  message += this.getMaskedValue(this.rl.line || "");
135301
135312
  }
135302
135313
  if (error) {
135303
- bottomContent = "\n" + chalk.red(">> ") + error;
135314
+ bottomContent = "\n" + chalk2.red(">> ") + error;
135304
135315
  }
135305
135316
  this.screen.render(message, bottomContent);
135306
135317
  }
135307
135318
  getMaskedValue(value) {
135308
135319
  if (this.status === "answered") {
135309
- return this.opt.mask ? chalk.cyan(mask(value, this.opt.mask)) : chalk.italic.dim("[hidden]");
135320
+ return this.opt.mask ? chalk2.cyan(mask(value, this.opt.mask)) : chalk2.italic.dim("[hidden]");
135310
135321
  }
135311
- return this.opt.mask ? mask(value, this.opt.mask) : chalk.italic.dim("[input is hidden] ");
135322
+ return this.opt.mask ? mask(value, this.opt.mask) : chalk2.italic.dim("[input is hidden] ");
135312
135323
  }
135313
135324
  getSpinningValue(value) {
135314
135325
  return this.getMaskedValue(value);
@@ -135344,7 +135355,7 @@ var require_password2 = __commonJS({
135344
135355
  var require_editor2 = __commonJS({
135345
135356
  "../../../../node_modules/.pnpm/inquirer@8.1.3/node_modules/inquirer/lib/prompts/editor.js"(exports, module2) {
135346
135357
  "use strict";
135347
- var chalk = require_chalk2();
135358
+ var chalk2 = require_chalk2();
135348
135359
  var { editAsync } = require_main();
135349
135360
  var Base = require_base4();
135350
135361
  var observe2 = require_events2();
@@ -135367,12 +135378,12 @@ var require_editor2 = __commonJS({
135367
135378
  let bottomContent = "";
135368
135379
  let message = this.getQuestion();
135369
135380
  if (this.status === "answered") {
135370
- message += chalk.dim("Received");
135381
+ message += chalk2.dim("Received");
135371
135382
  } else {
135372
- message += chalk.dim("Press <enter> to launch your preferred editor.");
135383
+ message += chalk2.dim("Press <enter> to launch your preferred editor.");
135373
135384
  }
135374
135385
  if (error) {
135375
- bottomContent = chalk.red(">> ") + error;
135386
+ bottomContent = chalk2.red(">> ") + error;
135376
135387
  }
135377
135388
  this.screen.render(message, bottomContent);
135378
135389
  }
@@ -136214,7 +136225,7 @@ var ZH_LOCALE = {
136214
136225
  var EN_LOCALE = {
136215
136226
  solution: {
136216
136227
  self: "Please select the solution you want to create",
136217
- mwa: "MWA Solution",
136228
+ mwa: "Web App Solution",
136218
136229
  module: "Module Solution",
136219
136230
  monorepo: "Monorepo Solution",
136220
136231
  custom: "Custom Solution",
@@ -136225,10 +136236,10 @@ var EN_LOCALE = {
136225
136236
  },
136226
136237
  sub_solution: {
136227
136238
  self: "Please select the solution you want to create",
136228
- mwa: "MWA Solution",
136229
- mwa_test: "MWA Solution(Test)",
136239
+ mwa: "Web App Solution",
136240
+ mwa_test: "Web App Solution (Test)",
136230
136241
  module: "Module Solution",
136231
- inner_module: "Module Solution(Inner)",
136242
+ inner_module: "Module Solution (Inner)",
136232
136243
  monorepo: "Monorepo Solution"
136233
136244
  },
136234
136245
  action: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/entry-generator",
3
- "description": "The meta-framework suite designed from scratch for frontend-focused modern web development.",
3
+ "description": "A Progressive React Framework for modern web development.",
4
4
  "homepage": "https://modernjs.dev",
5
5
  "bugs": "https://github.com/modern-js-dev/modern.js/issues",
6
6
  "repository": "modern-js-dev/modern.js",
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "3.0.5",
14
+ "version": "3.0.6",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -27,12 +27,12 @@
27
27
  "@types/node": "^14",
28
28
  "jest": "^27",
29
29
  "typescript": "^4",
30
- "@modern-js/generator-utils": "3.0.5",
31
- "@modern-js/generator-common": "3.0.5",
32
- "@modern-js/utils": "2.3.0",
33
- "@modern-js/plugin-i18n": "2.3.0",
34
- "@scripts/build": "2.3.0",
35
- "@scripts/jest-config": "2.3.0"
30
+ "@modern-js/generator-utils": "3.0.6",
31
+ "@modern-js/plugin-i18n": "2.4.0",
32
+ "@modern-js/utils": "2.4.0",
33
+ "@modern-js/generator-common": "3.0.6",
34
+ "@scripts/jest-config": "2.4.0",
35
+ "@scripts/build": "2.4.0"
36
36
  },
37
37
  "sideEffects": false,
38
38
  "publishConfig": {