@modern-js/monorepo-generator 2.1.2 → 2.1.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/js/node/main.js +13 -13
- package/package.json +5 -5
package/dist/js/node/main.js
CHANGED
@@ -869,7 +869,7 @@ function renderString(template, fullData, registers) {
|
|
869
869
|
|
870
870
|
/***/ }),
|
871
871
|
|
872
|
-
/***/
|
872
|
+
/***/ 37860:
|
873
873
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
874
874
|
|
875
875
|
"use strict";
|
@@ -884,7 +884,7 @@ var _commentJson = _interopRequireDefault(__webpack_require__(13922));
|
|
884
884
|
|
885
885
|
var declarationUpdate = _interopRequireWildcard(__webpack_require__(8200));
|
886
886
|
|
887
|
-
var _utils = __webpack_require__(
|
887
|
+
var _utils = __webpack_require__(450);
|
888
888
|
|
889
889
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
890
890
|
|
@@ -953,7 +953,7 @@ exports.JsonAPI = JsonAPI;
|
|
953
953
|
|
954
954
|
/***/ }),
|
955
955
|
|
956
|
-
/***/
|
956
|
+
/***/ 450:
|
957
957
|
/***/ ((__unused_webpack_module, exports) => {
|
958
958
|
|
959
959
|
"use strict";
|
@@ -972,7 +972,7 @@ async function editJson(generatorCore, resource, getNewJsonValue) {
|
|
972
972
|
throw new Error('get new json string is undefined');
|
973
973
|
}
|
974
974
|
|
975
|
-
await generatorCore.output.fs(resource.
|
975
|
+
await generatorCore.output.fs(resource.filePath, newJsonString, {
|
976
976
|
encoding: 'utf-8'
|
977
977
|
});
|
978
978
|
return newJsonString;
|
@@ -94248,7 +94248,6 @@ const EN_LOCALE = {
|
|
94248
94248
|
self: 'Action',
|
94249
94249
|
function: {
|
94250
94250
|
self: 'Enable features',
|
94251
|
-
unbundle: 'Enable Unbundled Development',
|
94252
94251
|
tailwindcss: 'Enable Tailwind CSS',
|
94253
94252
|
less: 'Enable Less',
|
94254
94253
|
sass: 'Enable Sass',
|
@@ -94415,7 +94414,6 @@ const ZH_LOCALE = {
|
|
94415
94414
|
self: '请选择你想要的操作',
|
94416
94415
|
function: {
|
94417
94416
|
self: '启用可选功能',
|
94418
|
-
unbundle: '启用「Unbundled 开发」模式',
|
94419
94417
|
tailwindcss: '启用 Tailwind CSS 支持',
|
94420
94418
|
less: '启用 Less 支持',
|
94421
94419
|
sass: '启用 Sass 支持',
|
@@ -95205,7 +95203,6 @@ let ActionFunction;
|
|
95205
95203
|
exports.ActionFunction = ActionFunction;
|
95206
95204
|
|
95207
95205
|
(function (ActionFunction) {
|
95208
|
-
ActionFunction["UnBundle"] = "unbundle";
|
95209
95206
|
ActionFunction["TailwindCSS"] = "tailwindcss";
|
95210
95207
|
ActionFunction["Less"] = "less";
|
95211
95208
|
ActionFunction["Sass"] = "sass";
|
@@ -95243,7 +95240,6 @@ const ActionElementText = {
|
|
95243
95240
|
};
|
95244
95241
|
exports.ActionElementText = ActionElementText;
|
95245
95242
|
const ActionFunctionText = {
|
95246
|
-
[ActionFunction.UnBundle]: () => _locale.i18n.t(_locale.localeKeys.action.function.unbundle),
|
95247
95243
|
[ActionFunction.TailwindCSS]: () => _locale.i18n.t(_locale.localeKeys.action.function.tailwindcss),
|
95248
95244
|
[ActionFunction.Less]: () => _locale.i18n.t(_locale.localeKeys.action.function.less),
|
95249
95245
|
[ActionFunction.Sass]: () => _locale.i18n.t(_locale.localeKeys.action.function.sass),
|
@@ -95481,7 +95477,7 @@ var _locale = __webpack_require__(94646);
|
|
95481
95477
|
const MWAActionTypes = [_common.ActionType.Element, _common.ActionType.Function // ActionType.Refactor,
|
95482
95478
|
];
|
95483
95479
|
exports.MWAActionTypes = MWAActionTypes;
|
95484
|
-
const MWAActionFunctions = [_common.ActionFunction.
|
95480
|
+
const MWAActionFunctions = [_common.ActionFunction.TailwindCSS, _common.ActionFunction.Less, _common.ActionFunction.Sass, _common.ActionFunction.BFF, _common.ActionFunction.SSG, _common.ActionFunction.MicroFrontend, _common.ActionFunction.Electron, // ActionFunction.I18n,
|
95485
95481
|
_common.ActionFunction.Test, _common.ActionFunction.Storybook, // ActionFunction.E2ETest,
|
95486
95482
|
// ActionFunction.Doc,
|
95487
95483
|
_common.ActionFunction.Polyfill, _common.ActionFunction.Deploy, _common.ActionFunction.Proxy];
|
@@ -95525,7 +95521,6 @@ const MWANewActionSchema = {
|
|
95525
95521
|
};
|
95526
95522
|
exports.MWANewActionSchema = MWANewActionSchema;
|
95527
95523
|
const MWAActionFunctionsDevDependencies = {
|
95528
|
-
[_common.ActionFunction.UnBundle]: '@modern-js/plugin-unbundle',
|
95529
95524
|
[_common.ActionFunction.TailwindCSS]: '@modern-js/plugin-tailwindcss',
|
95530
95525
|
[_common.ActionFunction.Test]: '@modern-js/plugin-testing',
|
95531
95526
|
[_common.ActionFunction.E2ETest]: '@modern-js/plugin-e2e',
|
@@ -95556,7 +95551,6 @@ const MWANewActionGenerators = {
|
|
95556
95551
|
[_common.ActionElement.Server]: '@modern-js/server-generator'
|
95557
95552
|
},
|
95558
95553
|
[_common.ActionType.Function]: {
|
95559
|
-
[_common.ActionFunction.UnBundle]: '@modern-js/unbundle-generator',
|
95560
95554
|
[_common.ActionFunction.TailwindCSS]: '@modern-js/tailwindcss-generator',
|
95561
95555
|
[_common.ActionFunction.Less]: '@modern-js/dependence-generator',
|
95562
95556
|
[_common.ActionFunction.Sass]: '@modern-js/dependence-generator',
|
@@ -95601,6 +95595,7 @@ var _exportNames = {
|
|
95601
95595
|
getModuleProjectPath: true,
|
95602
95596
|
getMWAProjectPath: true,
|
95603
95597
|
fs: true,
|
95598
|
+
execa: true,
|
95604
95599
|
readTsConfigByFile: true,
|
95605
95600
|
getPackageManager: true,
|
95606
95601
|
canUseNpm: true,
|
@@ -95626,6 +95621,12 @@ Object.defineProperty(exports, "canUseYarn", ({
|
|
95626
95621
|
return _utils.canUseYarn;
|
95627
95622
|
}
|
95628
95623
|
}));
|
95624
|
+
Object.defineProperty(exports, "execa", ({
|
95625
|
+
enumerable: true,
|
95626
|
+
get: function () {
|
95627
|
+
return _utils.execa;
|
95628
|
+
}
|
95629
|
+
}));
|
95629
95630
|
Object.defineProperty(exports, "fs", ({
|
95630
95631
|
enumerable: true,
|
95631
95632
|
get: function () {
|
@@ -95958,7 +95959,7 @@ var _codesmith = __webpack_require__(96926);
|
|
95958
95959
|
|
95959
95960
|
var _codesmithApiApp = __webpack_require__(26046);
|
95960
95961
|
|
95961
|
-
var _codesmithApiJson = __webpack_require__(
|
95962
|
+
var _codesmithApiJson = __webpack_require__(37860);
|
95962
95963
|
|
95963
95964
|
var _generatorCommon = __webpack_require__(50828);
|
95964
95965
|
|
@@ -97136,7 +97137,6 @@ exports.INTERNAL_PLUGINS = {
|
|
97136
97137
|
server: '@modern-js/plugin-nest/server',
|
97137
97138
|
},
|
97138
97139
|
'@modern-js/plugin-unbundle': { cli: '@modern-js/plugin-unbundle' },
|
97139
|
-
'@modern-js/plugin-server-build': { cli: '@modern-js/plugin-server-build' },
|
97140
97140
|
'@modern-js/plugin-server': {
|
97141
97141
|
cli: '@modern-js/plugin-server/cli',
|
97142
97142
|
server: '@modern-js/plugin-server/server',
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "2.1.
|
14
|
+
"version": "2.1.3",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
16
|
"main": "./dist/js/node/main.js",
|
17
17
|
"files": [
|
@@ -22,13 +22,13 @@
|
|
22
22
|
"@babel/runtime": "^7.18.0",
|
23
23
|
"@modern-js/base-generator": "1.4.5",
|
24
24
|
"@modern-js/changeset-generator": "1.4.1",
|
25
|
-
"@modern-js/plugin-i18n": "1.
|
25
|
+
"@modern-js/plugin-i18n": "1.3.0",
|
26
26
|
"@modern-js/codesmith": "^1.3.0",
|
27
27
|
"@modern-js/codesmith-api-app": "^1.2.5",
|
28
28
|
"@modern-js/codesmith-tools": "^1.2.1",
|
29
|
-
"@modern-js/codesmith-api-json": "^1.2.
|
30
|
-
"@modern-js/generator-common": "1.
|
31
|
-
"@modern-js/generator-utils": "1.
|
29
|
+
"@modern-js/codesmith-api-json": "^1.2.2",
|
30
|
+
"@modern-js/generator-common": "1.5.0",
|
31
|
+
"@modern-js/generator-utils": "1.3.0",
|
32
32
|
"@scripts/build": "0.0.0",
|
33
33
|
"@types/jest": "^27",
|
34
34
|
"@types/node": "^14",
|