@modern-js/repo-generator 3.0.1 → 3.0.3

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 +50 -17
  2. package/package.json +11 -11
package/dist/index.js CHANGED
@@ -135539,7 +135539,8 @@ var require_chainId2 = __commonJS({
135539
135539
  ASSETS_RETRY: "ASSETS_RETRY",
135540
135540
  AUTO_SET_ROOT_SIZE: "auto-set-root-size",
135541
135541
  HTML_ASYNC_CHUNK: "html-async-chunk",
135542
- SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
135542
+ SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin",
135543
+ HTML_TAGS: "html-tags"
135543
135544
  },
135544
135545
  MINIMIZER: {
135545
135546
  JS: "js",
@@ -135720,6 +135721,36 @@ var require_getCoreJsVersion = __commonJS({
135720
135721
  }
135721
135722
  });
135722
135723
 
135724
+ // ../../../toolkit/utils/dist/react.js
135725
+ var require_react = __commonJS({
135726
+ "../../../toolkit/utils/dist/react.js"(exports) {
135727
+ "use strict";
135728
+ var __importDefault = exports && exports.__importDefault || function(mod) {
135729
+ return mod && mod.__esModule ? mod : { "default": mod };
135730
+ };
135731
+ Object.defineProperty(exports, "__esModule", { value: true });
135732
+ exports.isBeyondReact17 = void 0;
135733
+ var path_1 = __importDefault(require("path"));
135734
+ var _1 = require_dist2();
135735
+ var isBeyondReact17 = (cwd) => {
135736
+ const pkgPath = path_1.default.join(cwd, "package.json");
135737
+ if (!_1.fs.existsSync(pkgPath)) {
135738
+ return false;
135739
+ }
135740
+ const pkgInfo = JSON.parse(_1.fs.readFileSync(pkgPath, "utf8"));
135741
+ const deps = {
135742
+ ...pkgInfo.devDependencies,
135743
+ ...pkgInfo.dependencies
135744
+ };
135745
+ if (typeof deps.react !== "string") {
135746
+ return false;
135747
+ }
135748
+ return _1.semver.satisfies(_1.semver.minVersion(deps.react), ">=17.0.0");
135749
+ };
135750
+ exports.isBeyondReact17 = isBeyondReact17;
135751
+ }
135752
+ });
135753
+
135723
135754
  // ../../../toolkit/utils/dist/index.js
135724
135755
  var require_dist2 = __commonJS({
135725
135756
  "../../../toolkit/utils/dist/index.js"(exports) {
@@ -135787,6 +135818,7 @@ var require_dist2 = __commonJS({
135787
135818
  __exportStar(require_routes(), exports);
135788
135819
  __exportStar(require_test_utils(), exports);
135789
135820
  __exportStar(require_getCoreJsVersion(), exports);
135821
+ __exportStar(require_react(), exports);
135790
135822
  }
135791
135823
  });
135792
135824
 
@@ -137544,21 +137576,21 @@ var MWANewActionGenerators = {
137544
137576
  };
137545
137577
  var MWANewActionPluginName = {
137546
137578
  [ActionType.Element]: {
137547
- [ActionElement.Server]: "ServerPlugin"
137579
+ [ActionElement.Server]: "serverPlugin"
137548
137580
  },
137549
137581
  [ActionType.Function]: {
137550
- [ActionFunction.TailwindCSS]: "TailwindCSSPlugin",
137551
- [ActionFunction.BFF]: "BFFPlugin",
137552
- [ActionFunction.MicroFrontend]: "GarfishPlugin",
137553
- [ActionFunction.Test]: "TestPlugin",
137554
- [ActionFunction.Storybook]: "StorybookPlugin",
137555
- [ActionFunction.SSG]: "SSGPlugin",
137556
- [ActionFunction.Polyfill]: "PolyfillPlugin",
137557
- [ActionFunction.Proxy]: "ProxyPlugin",
137558
- [ActionFunction.SWC]: "SWCPlugin"
137582
+ [ActionFunction.TailwindCSS]: "tailwindCSSPlugin",
137583
+ [ActionFunction.BFF]: "bffPlugin",
137584
+ [ActionFunction.MicroFrontend]: "garfishPlugin",
137585
+ [ActionFunction.Test]: "testPlugin",
137586
+ [ActionFunction.Storybook]: "storybookPlugin",
137587
+ [ActionFunction.SSG]: "ssgPlugin",
137588
+ [ActionFunction.Polyfill]: "polyfillPlugin",
137589
+ [ActionFunction.Proxy]: "proxyPlugin",
137590
+ [ActionFunction.SWC]: "swcPlugin"
137559
137591
  },
137560
137592
  [ActionType.Refactor]: {
137561
- [ActionRefactor.ReactRouter5]: "ReactRouter5Plugin"
137593
+ [ActionRefactor.ReactRouter5]: "reactRouter5Plugin"
137562
137594
  }
137563
137595
  };
137564
137596
  var MWANewActionPluginDependence = {
@@ -137581,8 +137613,8 @@ var MWANewActionPluginDependence = {
137581
137613
  }
137582
137614
  };
137583
137615
  var BFFPluginName = {
137584
- [Framework.Express]: "ExpressBFFPlugin",
137585
- [Framework.Koa]: "KoaBFFPlugin"
137616
+ [Framework.Express]: "expressPlugin",
137617
+ [Framework.Koa]: "koaPlugin"
137586
137618
  };
137587
137619
  var BFFPluginDependence = {
137588
137620
  [Framework.Express]: "@modern-js/plugin-express",
@@ -137660,13 +137692,14 @@ var ModuleNewActionGenerators = {
137660
137692
  };
137661
137693
  var ModuleNewActionPluginName = {
137662
137694
  [ActionType.Function]: {
137663
- [ActionFunction.TailwindCSS]: "TailwindCSSPlugin",
137664
- [ActionFunction.Storybook]: "StoryBookPlugin",
137665
- [ActionFunction.Test]: "TestPlugin"
137695
+ [ActionFunction.TailwindCSS]: "tailwindCSSPlugin",
137696
+ [ActionFunction.Storybook]: "storybookPlugin",
137697
+ [ActionFunction.Test]: "testPlugin"
137666
137698
  }
137667
137699
  };
137668
137700
  var ModuleNewActionPluginDependence = {
137669
137701
  [ActionType.Function]: {
137702
+ [ActionFunction.Test]: "@modern-js/plugin-testing",
137670
137703
  [ActionFunction.TailwindCSS]: "@modern-js/plugin-tailwindcss",
137671
137704
  [ActionFunction.Storybook]: "@modern-js/plugin-storybook"
137672
137705
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "3.0.1",
14
+ "version": "3.0.3",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -26,16 +26,16 @@
26
26
  "@types/node": "^14",
27
27
  "jest": "^27",
28
28
  "typescript": "^4",
29
- "@modern-js/generator-plugin": "3.0.1",
30
- "@modern-js/generator-common": "3.0.1",
31
- "@modern-js/generator-utils": "3.0.1",
32
- "@modern-js/mwa-generator": "3.0.1",
33
- "@modern-js/utils": "2.0.1",
34
- "@modern-js/module-generator": "3.0.1",
35
- "@modern-js/monorepo-generator": "3.0.1",
36
- "@modern-js/base-generator": "3.0.1",
37
- "@scripts/jest-config": "2.0.1",
38
- "@scripts/build": "2.0.1"
29
+ "@modern-js/generator-common": "3.0.3",
30
+ "@modern-js/generator-utils": "3.0.3",
31
+ "@modern-js/module-generator": "3.0.3",
32
+ "@modern-js/mwa-generator": "3.0.3",
33
+ "@modern-js/monorepo-generator": "3.0.3",
34
+ "@modern-js/utils": "2.1.0",
35
+ "@modern-js/generator-plugin": "3.0.3",
36
+ "@modern-js/base-generator": "3.0.3",
37
+ "@scripts/jest-config": "2.1.0",
38
+ "@scripts/build": "2.1.0"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {