@modern-js/repo-generator 3.1.22 → 3.1.24
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 +20 -46
- package/package.json +12 -12
package/dist/index.js
CHANGED
@@ -122652,10 +122652,14 @@ var require_chainId = __commonJS({
|
|
122652
122652
|
SVG: "svg",
|
122653
122653
|
/** Rule for pug */
|
122654
122654
|
PUG: "pug",
|
122655
|
+
/** Rule for Vue */
|
122656
|
+
VUE: "vue",
|
122655
122657
|
/** Rule for toml */
|
122656
122658
|
TOML: "toml",
|
122657
122659
|
/** Rule for yaml */
|
122658
122660
|
YAML: "yaml",
|
122661
|
+
/** Rule for wasm */
|
122662
|
+
WASM: "wasm",
|
122659
122663
|
/** Rule for bff */
|
122660
122664
|
JS_BFF_API: "js-bff-api"
|
122661
122665
|
},
|
@@ -122682,6 +122686,8 @@ var require_chainId = __commonJS({
|
|
122682
122686
|
URL: "url",
|
122683
122687
|
/** pug-loader */
|
122684
122688
|
PUG: "pug",
|
122689
|
+
/** vue-loader */
|
122690
|
+
VUE: "vue",
|
122685
122691
|
/** file-loader */
|
122686
122692
|
FILE: "file",
|
122687
122693
|
/** @svgr/webpack */
|
@@ -122751,12 +122757,16 @@ var require_chainId = __commonJS({
|
|
122751
122757
|
BUNDLE_ANALYZER: "bundle-analyze",
|
122752
122758
|
/** BottomTemplatePlugin */
|
122753
122759
|
BOTTOM_TEMPLATE: "bottom-template",
|
122754
|
-
/**
|
122755
|
-
|
122760
|
+
/** HtmlTagsPlugin */
|
122761
|
+
HTML_TAGS: "html-tags",
|
122756
122762
|
/** HtmlNoncePlugin */
|
122757
122763
|
HTML_NONCE: "html-nonce",
|
122764
|
+
/** HtmlCrossOriginPlugin */
|
122765
|
+
HTML_CROSS_ORIGIN: "html-cross-origin",
|
122758
122766
|
/** MiniCssExtractPlugin */
|
122759
122767
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
122768
|
+
/** VueLoaderPlugin */
|
122769
|
+
VUE_LOADER_PLUGIN: "vue-loader-plugin",
|
122760
122770
|
/** ReactFastRefreshPlugin */
|
122761
122771
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
122762
122772
|
/** ProvidePlugin for node polyfill */
|
@@ -122770,9 +122780,7 @@ var require_chainId = __commonJS({
|
|
122770
122780
|
/** HtmlAsyncChunkPlugin */
|
122771
122781
|
HTML_ASYNC_CHUNK: "html-async-chunk",
|
122772
122782
|
/** SWC_POLYFILL_CHECKER */
|
122773
|
-
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
122774
|
-
/** HtmlTagsPlugin */
|
122775
|
-
HTML_TAGS: "html-tags"
|
122783
|
+
SWC_POLYFILL_CHECKER: "swc-polyfill-checker-plugin"
|
122776
122784
|
},
|
122777
122785
|
/** Predefined minimizers */
|
122778
122786
|
MINIMIZER: {
|
@@ -123429,6 +123437,7 @@ var require_project = __commonJS({
|
|
123429
123437
|
});
|
123430
123438
|
var _interop_require_default = require_interop_require_default();
|
123431
123439
|
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
123440
|
+
var _pkgup = /* @__PURE__ */ _interop_require_default._(require_pkg_up2());
|
123432
123441
|
var _commands = require_commands();
|
123433
123442
|
var _compiled = require_compiled();
|
123434
123443
|
var _common = require_common3();
|
@@ -123468,8 +123477,10 @@ var require_project = __commonJS({
|
|
123468
123477
|
return Boolean(options["web-only"]);
|
123469
123478
|
});
|
123470
123479
|
var isBeyondReact17 = (cwd) => {
|
123471
|
-
const pkgPath =
|
123472
|
-
|
123480
|
+
const pkgPath = _pkgup.default.sync({
|
123481
|
+
cwd
|
123482
|
+
});
|
123483
|
+
if (!pkgPath) {
|
123473
123484
|
return false;
|
123474
123485
|
}
|
123475
123486
|
const pkgInfo = JSON.parse(_compiled.fs.readFileSync(pkgPath, "utf8"));
|
@@ -123739,11 +123750,10 @@ var require_config3 = __commonJS({
|
|
123739
123750
|
}
|
123740
123751
|
});
|
123741
123752
|
var _is = require_is();
|
123742
|
-
var
|
123743
|
-
var getEntryOptions = (name, baseOptions, optionsByEntries, packageName) => {
|
123753
|
+
var getEntryOptions = (name, isMainEntry, baseOptions, optionsByEntries, packageName) => {
|
123744
123754
|
if (optionsByEntries) {
|
123745
123755
|
let optionsByEntry = getOptionsByEntryName(name, optionsByEntries);
|
123746
|
-
if (optionsByEntry === void 0 &&
|
123756
|
+
if (optionsByEntry === void 0 && isMainEntry && packageName) {
|
123747
123757
|
optionsByEntry = getOptionsByEntryName(packageName, optionsByEntries);
|
123748
123758
|
}
|
123749
123759
|
return optionsByEntry !== void 0 ? (0, _is.isPlainObject)(optionsByEntry) && (0, _is.isPlainObject)(baseOptions) ? __spreadValues(__spreadValues({}, baseOptions), optionsByEntry) : optionsByEntry : baseOptions;
|
@@ -124744,41 +124754,6 @@ var require_require = __commonJS({
|
|
124744
124754
|
}
|
124745
124755
|
});
|
124746
124756
|
|
124747
|
-
// ../../../toolkit/utils/dist/cjs/cli/routes.js
|
124748
|
-
var require_routes = __commonJS({
|
124749
|
-
"../../../toolkit/utils/dist/cjs/cli/routes.js"(exports) {
|
124750
|
-
"use strict";
|
124751
|
-
Object.defineProperty(exports, "__esModule", {
|
124752
|
-
value: true
|
124753
|
-
});
|
124754
|
-
Object.defineProperty(exports, "getRouteId", {
|
124755
|
-
enumerable: true,
|
124756
|
-
get: function() {
|
124757
|
-
return getRouteId;
|
124758
|
-
}
|
124759
|
-
});
|
124760
|
-
var _interop_require_default = require_interop_require_default();
|
124761
|
-
var _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
124762
|
-
var _constants = require_constants2();
|
124763
|
-
var _path1 = require_path();
|
124764
|
-
var getPathWithoutExt = (filename) => {
|
124765
|
-
const extname = _path.default.extname(filename);
|
124766
|
-
return filename.slice(0, -extname.length);
|
124767
|
-
};
|
124768
|
-
var getRouteId = (componentPath, routesDir, entryName) => {
|
124769
|
-
const relativePath = (0, _path1.normalizeToPosixPath)(_path.default.relative(routesDir, componentPath));
|
124770
|
-
const pathWithoutExt = getPathWithoutExt(relativePath);
|
124771
|
-
let id = ``;
|
124772
|
-
if (entryName === _constants.MAIN_ENTRY_NAME) {
|
124773
|
-
id = pathWithoutExt;
|
124774
|
-
} else {
|
124775
|
-
id = `${entryName}_${pathWithoutExt}`;
|
124776
|
-
}
|
124777
|
-
return id.replace(/\[(.*?)\]/g, "($1)");
|
124778
|
-
};
|
124779
|
-
}
|
124780
|
-
});
|
124781
|
-
|
124782
124757
|
// ../../../toolkit/utils/dist/cjs/cli/runtimeExports.js
|
124783
124758
|
var require_runtimeExports = __commonJS({
|
124784
124759
|
"../../../toolkit/utils/dist/cjs/cli/runtimeExports.js"(exports) {
|
@@ -124925,7 +124900,6 @@ var require_cli = __commonJS({
|
|
124925
124900
|
_export_star._(require_prettyInstructions(), exports);
|
124926
124901
|
_export_star._(require_print(), exports);
|
124927
124902
|
_export_star._(require_require(), exports);
|
124928
|
-
_export_star._(require_routes(), exports);
|
124929
124903
|
_export_star._(require_runtimeExports(), exports);
|
124930
124904
|
_export_star._(require_watch(), exports);
|
124931
124905
|
}
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "3.1.
|
18
|
+
"version": "3.1.24",
|
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/generator-common": "3.1.
|
33
|
-
"@modern-js/
|
34
|
-
"@modern-js/
|
35
|
-
"@modern-js/
|
36
|
-
"@modern-js/
|
37
|
-
"@modern-js/utils": "2.
|
38
|
-
"@modern-js/generator
|
39
|
-
"@modern-js/base-generator": "3.1.
|
40
|
-
"@modern-js/generator-utils": "3.1.
|
41
|
-
"@scripts/
|
42
|
-
"@scripts/
|
32
|
+
"@modern-js/generator-common": "3.1.24",
|
33
|
+
"@modern-js/generator-plugin": "3.1.24",
|
34
|
+
"@modern-js/module-generator": "3.1.24",
|
35
|
+
"@modern-js/monorepo-generator": "3.1.24",
|
36
|
+
"@modern-js/mwa-generator": "3.1.24",
|
37
|
+
"@modern-js/utils": "2.24.0",
|
38
|
+
"@modern-js/doc-generator": "3.1.24",
|
39
|
+
"@modern-js/base-generator": "3.1.24",
|
40
|
+
"@modern-js/generator-utils": "3.1.24",
|
41
|
+
"@scripts/build": "2.24.0",
|
42
|
+
"@scripts/jest-config": "2.24.0"
|
43
43
|
},
|
44
44
|
"sideEffects": false,
|
45
45
|
"publishConfig": {
|