@modern-js/repo-generator 3.0.2 → 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.
- package/dist/index.js +49 -17
- 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]: "
|
137579
|
+
[ActionElement.Server]: "serverPlugin"
|
137548
137580
|
},
|
137549
137581
|
[ActionType.Function]: {
|
137550
|
-
[ActionFunction.TailwindCSS]: "
|
137551
|
-
[ActionFunction.BFF]: "
|
137552
|
-
[ActionFunction.MicroFrontend]: "
|
137553
|
-
[ActionFunction.Test]: "
|
137554
|
-
[ActionFunction.Storybook]: "
|
137555
|
-
[ActionFunction.SSG]: "
|
137556
|
-
[ActionFunction.Polyfill]: "
|
137557
|
-
[ActionFunction.Proxy]: "
|
137558
|
-
[ActionFunction.SWC]: "
|
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]: "
|
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]: "
|
137585
|
-
[Framework.Koa]: "
|
137616
|
+
[Framework.Express]: "expressPlugin",
|
137617
|
+
[Framework.Koa]: "koaPlugin"
|
137586
137618
|
};
|
137587
137619
|
var BFFPluginDependence = {
|
137588
137620
|
[Framework.Express]: "@modern-js/plugin-express",
|
@@ -137660,9 +137692,9 @@ var ModuleNewActionGenerators = {
|
|
137660
137692
|
};
|
137661
137693
|
var ModuleNewActionPluginName = {
|
137662
137694
|
[ActionType.Function]: {
|
137663
|
-
[ActionFunction.TailwindCSS]: "
|
137664
|
-
[ActionFunction.Storybook]: "
|
137665
|
-
[ActionFunction.Test]: "
|
137695
|
+
[ActionFunction.TailwindCSS]: "tailwindCSSPlugin",
|
137696
|
+
[ActionFunction.Storybook]: "storybookPlugin",
|
137697
|
+
[ActionFunction.Test]: "testPlugin"
|
137666
137698
|
}
|
137667
137699
|
};
|
137668
137700
|
var ModuleNewActionPluginDependence = {
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "3.0.
|
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/
|
30
|
-
"@modern-js/generator-
|
31
|
-
"@modern-js/generator
|
32
|
-
"@modern-js/
|
33
|
-
"@modern-js/
|
34
|
-
"@modern-js/
|
35
|
-
"@modern-js/
|
36
|
-
"@modern-js/generator
|
37
|
-
"@scripts/
|
38
|
-
"@scripts/
|
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": {
|