@modern-js/bff-generator 3.3.11 → 3.3.13

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 +25 -44
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -52663,15 +52663,6 @@ var import_path6 = __toESM(require("path"));
52663
52663
  var import_path = __toESM(require("path"));
52664
52664
  var import_utils4 = require("@modern-js/utils");
52665
52665
 
52666
- // ../../../../node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js
52667
- function _define_property(obj, key, value) {
52668
- if (key in obj) {
52669
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
52670
- } else
52671
- obj[key] = value;
52672
- return obj;
52673
- }
52674
-
52675
52666
  // ../../../cli/plugin-i18n/dist/esm-node/index.js
52676
52667
  var import_lodash2 = require("@modern-js/utils/lodash");
52677
52668
 
@@ -52730,8 +52721,8 @@ var I18n = class {
52730
52721
  };
52731
52722
  }
52732
52723
  constructor() {
52733
- _define_property(this, "language", "en");
52734
- _define_property(this, "languageMap", {});
52724
+ this.language = "en";
52725
+ this.languageMap = {};
52735
52726
  }
52736
52727
  };
52737
52728
 
@@ -52764,10 +52755,8 @@ var ZH_LOCALE = {
52764
52755
  i18n: "启用「国际化(i18n)」功能",
52765
52756
  test: "启用「单元测试 / 集成测试」功能",
52766
52757
  e2e_test: "启用「E2E 测试」功能",
52767
- storybook: "启用「Storybook」",
52768
52758
  storybookV7: "启用「Storybook」V7",
52769
52759
  runtime_api: "启用「Runtime API」",
52770
- mwa_storybook: "启用「Visual Testing (Storybook)」模式",
52771
52760
  ssg: "启用「SSG」功能",
52772
52761
  polyfill: "启用「基于 UA 的 Polyfill」功能",
52773
52762
  proxy: "启用「全局代理」",
@@ -52862,10 +52851,8 @@ var EN_LOCALE = {
52862
52851
  i18n: "Enable Internationalization (i18n)",
52863
52852
  test: "Enable Unit Test / Integration Test",
52864
52853
  e2e_test: "Enable E2E Test",
52865
- storybook: "Enable Storybook",
52866
52854
  storybookV7: "Enable Storybook V7",
52867
52855
  runtime_api: "Enable Runtime API",
52868
- mwa_storybook: "Enable Visual Testing (Storybook)",
52869
52856
  ssg: "Enable SSG",
52870
52857
  polyfill: "Enable UA-based Polyfill Feature",
52871
52858
  proxy: "Enable Global Proxy",
@@ -53041,7 +53028,6 @@ var ActionFunction;
53041
53028
  ActionFunction2["I18n"] = "i18n";
53042
53029
  ActionFunction2["Test"] = "test";
53043
53030
  ActionFunction2["E2ETest"] = "e2e_test";
53044
- ActionFunction2["Storybook"] = "storybook";
53045
53031
  ActionFunction2["StorybookV7"] = "storybookV7";
53046
53032
  ActionFunction2["RuntimeApi"] = "runtimeApi";
53047
53033
  ActionFunction2["SSG"] = "ssg";
@@ -53070,7 +53056,6 @@ var MWAActionFunctions = [
53070
53056
  ActionFunction.Test,
53071
53057
  ActionFunction.Polyfill,
53072
53058
  ActionFunction.Proxy,
53073
- ActionFunction.Storybook,
53074
53059
  ActionFunction.StorybookV7
53075
53060
  ];
53076
53061
  var MWAActionElements = [
@@ -53088,7 +53073,6 @@ var MWAActionTypesMap = {
53088
53073
  var MWAActionFunctionsDevDependencies = {
53089
53074
  [ActionFunction.SSG]: "@modern-js/plugin-ssg",
53090
53075
  [ActionFunction.Test]: "@modern-js/plugin-testing",
53091
- [ActionFunction.Storybook]: "@modern-js/plugin-storybook",
53092
53076
  [ActionFunction.StorybookV7]: "@modern-js/storybook",
53093
53077
  [ActionFunction.Proxy]: "@modern-js/plugin-proxy",
53094
53078
  [ActionFunction.TailwindCSS]: "tailwindcss",
@@ -53120,7 +53104,6 @@ var MWANewActionGenerators = {
53120
53104
  [ActionFunction.BFF]: "@modern-js/bff-generator",
53121
53105
  [ActionFunction.MicroFrontend]: "@modern-js/dependence-generator",
53122
53106
  [ActionFunction.Test]: "@modern-js/test-generator",
53123
- [ActionFunction.Storybook]: "@modern-js/dependence-generator",
53124
53107
  [ActionFunction.StorybookV7]: "@modern-js/storybook-next-generator",
53125
53108
  [ActionFunction.SSG]: "@modern-js/ssg-generator",
53126
53109
  [ActionFunction.Polyfill]: "@modern-js/dependence-generator",
@@ -53140,7 +53123,6 @@ var MWANewActionPluginName = {
53140
53123
  [ActionFunction.BFF]: "bffPlugin",
53141
53124
  [ActionFunction.MicroFrontend]: "garfishPlugin",
53142
53125
  [ActionFunction.Test]: "testingPlugin",
53143
- [ActionFunction.Storybook]: "storybookPlugin",
53144
53126
  [ActionFunction.SSG]: "ssgPlugin",
53145
53127
  [ActionFunction.Polyfill]: "polyfillPlugin",
53146
53128
  [ActionFunction.Proxy]: "proxyPlugin",
@@ -53159,7 +53141,6 @@ var MWANewActionPluginDependence = {
53159
53141
  [ActionFunction.BFF]: "@modern-js/plugin-bff",
53160
53142
  [ActionFunction.MicroFrontend]: "@modern-js/plugin-garfish",
53161
53143
  [ActionFunction.Test]: "@modern-js/plugin-testing",
53162
- [ActionFunction.Storybook]: "@modern-js/plugin-storybook",
53163
53144
  [ActionFunction.SSG]: "@modern-js/plugin-ssg",
53164
53145
  [ActionFunction.Polyfill]: "@modern-js/plugin-polyfill",
53165
53146
  [ActionFunction.Proxy]: "@modern-js/plugin-proxy",
@@ -53372,7 +53353,7 @@ async function getModernConfigFile(appDir) {
53372
53353
  }
53373
53354
 
53374
53355
  // ../../../../node_modules/.pnpm/@swc+helpers@0.5.1/node_modules/@swc/helpers/esm/_define_property.js
53375
- function _define_property2(obj, key, value) {
53356
+ function _define_property(obj, key, value) {
53376
53357
  if (key in obj) {
53377
53358
  Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
53378
53359
  } else
@@ -53555,7 +53536,7 @@ var NpmAPI = class {
53555
53536
  });
53556
53537
  }
53557
53538
  constructor(generatorCore) {
53558
- _define_property2(this, "generatorCore", void 0);
53539
+ _define_property(this, "generatorCore", void 0);
53559
53540
  this.generatorCore = generatorCore;
53560
53541
  }
53561
53542
  };
@@ -53680,8 +53661,8 @@ var GitAPI = class {
53680
53661
  }
53681
53662
  }
53682
53663
  constructor(generatorCore, generatorContext) {
53683
- _define_property2(this, "generatorCore", void 0);
53684
- _define_property2(this, "generatorContext", void 0);
53664
+ _define_property(this, "generatorCore", void 0);
53665
+ _define_property(this, "generatorContext", void 0);
53685
53666
  this.generatorCore = generatorCore;
53686
53667
  this.generatorContext = generatorContext;
53687
53668
  }
@@ -53757,8 +53738,8 @@ var HandlebarsAPI = class {
53757
53738
  );
53758
53739
  }
53759
53740
  constructor(generatorCore, registers) {
53760
- _define_property2(this, "generatorCore", void 0);
53761
- _define_property2(this, "registers", void 0);
53741
+ _define_property(this, "generatorCore", void 0);
53742
+ _define_property(this, "registers", void 0);
53762
53743
  this.generatorCore = generatorCore;
53763
53744
  this.registers = registers || {
53764
53745
  helpers: {},
@@ -53801,7 +53782,7 @@ var EjsAPI = class {
53801
53782
  );
53802
53783
  }
53803
53784
  constructor(generatorCore) {
53804
- _define_property2(this, "generatorCore", void 0);
53785
+ _define_property(this, "generatorCore", void 0);
53805
53786
  this.generatorCore = generatorCore;
53806
53787
  }
53807
53788
  };
@@ -53829,7 +53810,7 @@ var FsAPI = class {
53829
53810
  }));
53830
53811
  }
53831
53812
  constructor(generatorCore) {
53832
- _define_property2(this, "generatorCore", void 0);
53813
+ _define_property(this, "generatorCore", void 0);
53833
53814
  this.generatorCore = generatorCore;
53834
53815
  }
53835
53816
  };
@@ -63609,10 +63590,10 @@ var CLIReader = class {
63609
63590
  return answers;
63610
63591
  }
63611
63592
  constructor(options) {
63612
- _define_property2(this, "schema", null);
63613
- _define_property2(this, "validateMap", void 0);
63614
- _define_property2(this, "initValue", void 0);
63615
- _define_property2(this, "answers", {});
63593
+ _define_property(this, "schema", null);
63594
+ _define_property(this, "validateMap", void 0);
63595
+ _define_property(this, "initValue", void 0);
63596
+ _define_property(this, "answers", {});
63616
63597
  const { schema, validateMap, initValue } = options;
63617
63598
  this.schema = schema;
63618
63599
  this.validateMap = validateMap || {};
@@ -63681,8 +63662,8 @@ var I18n2 = class {
63681
63662
  };
63682
63663
  }
63683
63664
  constructor() {
63684
- _define_property2(this, "language", "en");
63685
- _define_property2(this, "languageMap", {});
63665
+ _define_property(this, "language", "en");
63666
+ _define_property(this, "languageMap", {});
63686
63667
  }
63687
63668
  };
63688
63669
 
@@ -64045,14 +64026,14 @@ var AppAPI = class {
64045
64026
  }
64046
64027
  }
64047
64028
  constructor(generatorContext, generatorCore) {
64048
- _define_property2(this, "i18n", i18n2);
64049
- _define_property2(this, "npmApi", void 0);
64050
- _define_property2(this, "gitApi", void 0);
64051
- _define_property2(this, "handlebarsAPI", void 0);
64052
- _define_property2(this, "ejsAPI", void 0);
64053
- _define_property2(this, "fsAPI", void 0);
64054
- _define_property2(this, "generatorCore", void 0);
64055
- _define_property2(this, "generatorContext", void 0);
64029
+ _define_property(this, "i18n", i18n2);
64030
+ _define_property(this, "npmApi", void 0);
64031
+ _define_property(this, "gitApi", void 0);
64032
+ _define_property(this, "handlebarsAPI", void 0);
64033
+ _define_property(this, "ejsAPI", void 0);
64034
+ _define_property(this, "fsAPI", void 0);
64035
+ _define_property(this, "generatorCore", void 0);
64036
+ _define_property(this, "generatorContext", void 0);
64056
64037
  this.generatorCore = generatorCore;
64057
64038
  this.generatorContext = generatorContext;
64058
64039
  this.npmApi = new NpmAPI(generatorCore);
@@ -64120,7 +64101,7 @@ var JsonAPI = class {
64120
64101
  });
64121
64102
  }
64122
64103
  constructor(generatorCore) {
64123
- _define_property2(this, "generatorCore", void 0);
64104
+ _define_property(this, "generatorCore", void 0);
64124
64105
  this.generatorCore = generatorCore;
64125
64106
  }
64126
64107
  };
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.3.11",
18
+ "version": "3.3.13",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./src/index.ts",
21
21
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "/dist/index.js"
25
25
  ],
26
26
  "dependencies": {
27
- "@modern-js/utils": "2.48.0"
27
+ "@modern-js/utils": "2.48.2"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@modern-js/codesmith": "2.3.5",
@@ -34,11 +34,11 @@
34
34
  "@types/node": "^14",
35
35
  "jest": "^29",
36
36
  "typescript": "^5",
37
- "@modern-js/generator-common": "3.3.11",
38
- "@modern-js/generator-utils": "3.3.11",
39
- "@modern-js/plugin-i18n": "2.48.0",
40
- "@scripts/build": "2.48.0",
41
- "@scripts/jest-config": "2.48.0"
37
+ "@modern-js/generator-common": "3.3.13",
38
+ "@modern-js/plugin-i18n": "2.48.2",
39
+ "@modern-js/generator-utils": "3.3.13",
40
+ "@scripts/build": "2.48.2",
41
+ "@scripts/jest-config": "2.48.2"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "publishConfig": {