@modern-js/monorepo-generator 1.1.2 → 1.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 +23 -29
- package/package.json +6 -16
package/dist/js/node/main.js
CHANGED
@@ -465,7 +465,7 @@ Object.defineProperty(exports, "I18n", ({
|
|
465
465
|
}));
|
466
466
|
exports.localeKeys = exports.i18n = void 0;
|
467
467
|
|
468
|
-
var _pluginI18n = __webpack_require__(
|
468
|
+
var _pluginI18n = __webpack_require__(98368);
|
469
469
|
|
470
470
|
var _zh = __webpack_require__(88218);
|
471
471
|
|
@@ -5688,7 +5688,7 @@ exports.pointer = pointer;
|
|
5688
5688
|
|
5689
5689
|
/***/ }),
|
5690
5690
|
|
5691
|
-
/***/
|
5691
|
+
/***/ 98368:
|
5692
5692
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
5693
5693
|
|
5694
5694
|
"use strict";
|
@@ -5701,7 +5701,7 @@ exports.I18n = void 0;
|
|
5701
5701
|
|
5702
5702
|
var _get2 = _interopRequireDefault(__webpack_require__(71189));
|
5703
5703
|
|
5704
|
-
var _index = __webpack_require__(
|
5704
|
+
var _index = __webpack_require__(24033);
|
5705
5705
|
|
5706
5706
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
5707
5707
|
|
@@ -5762,7 +5762,7 @@ exports.I18n = I18n;
|
|
5762
5762
|
|
5763
5763
|
/***/ }),
|
5764
5764
|
|
5765
|
-
/***/
|
5765
|
+
/***/ 24033:
|
5766
5766
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
5767
5767
|
|
5768
5768
|
"use strict";
|
@@ -17484,7 +17484,7 @@ module.exports = resolveCommand;
|
|
17484
17484
|
|
17485
17485
|
/***/ }),
|
17486
17486
|
|
17487
|
-
/***/
|
17487
|
+
/***/ 88351:
|
17488
17488
|
/***/ ((module, exports, __webpack_require__) => {
|
17489
17489
|
|
17490
17490
|
/* eslint-env browser */
|
@@ -17741,7 +17741,7 @@ function localstorage() {
|
|
17741
17741
|
}
|
17742
17742
|
}
|
17743
17743
|
|
17744
|
-
module.exports = __webpack_require__(
|
17744
|
+
module.exports = __webpack_require__(19507)(exports);
|
17745
17745
|
|
17746
17746
|
const {formatters} = module.exports;
|
17747
17747
|
|
@@ -17760,7 +17760,7 @@ formatters.j = function (v) {
|
|
17760
17760
|
|
17761
17761
|
/***/ }),
|
17762
17762
|
|
17763
|
-
/***/
|
17763
|
+
/***/ 19507:
|
17764
17764
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
17765
17765
|
|
17766
17766
|
|
@@ -17799,7 +17799,7 @@ function setup(env) {
|
|
17799
17799
|
|
17800
17800
|
/**
|
17801
17801
|
* Selects a color for a debug namespace
|
17802
|
-
* @param {String} namespace The namespace string for the
|
17802
|
+
* @param {String} namespace The namespace string for the debug instance to be colored
|
17803
17803
|
* @return {Number|String} An ANSI color code for the given namespace
|
17804
17804
|
* @api private
|
17805
17805
|
*/
|
@@ -18041,7 +18041,7 @@ module.exports = setup;
|
|
18041
18041
|
|
18042
18042
|
/***/ }),
|
18043
18043
|
|
18044
|
-
/***/
|
18044
|
+
/***/ 68919:
|
18045
18045
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
18046
18046
|
|
18047
18047
|
/**
|
@@ -18050,15 +18050,15 @@ module.exports = setup;
|
|
18050
18050
|
*/
|
18051
18051
|
|
18052
18052
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
18053
|
-
module.exports = __webpack_require__(
|
18053
|
+
module.exports = __webpack_require__(88351);
|
18054
18054
|
} else {
|
18055
|
-
module.exports = __webpack_require__(
|
18055
|
+
module.exports = __webpack_require__(89534);
|
18056
18056
|
}
|
18057
18057
|
|
18058
18058
|
|
18059
18059
|
/***/ }),
|
18060
18060
|
|
18061
|
-
/***/
|
18061
|
+
/***/ 89534:
|
18062
18062
|
/***/ ((module, exports, __webpack_require__) => {
|
18063
18063
|
|
18064
18064
|
/**
|
@@ -18300,7 +18300,7 @@ function init(debug) {
|
|
18300
18300
|
}
|
18301
18301
|
}
|
18302
18302
|
|
18303
|
-
module.exports = __webpack_require__(
|
18303
|
+
module.exports = __webpack_require__(19507)(exports);
|
18304
18304
|
|
18305
18305
|
const {formatters} = module.exports;
|
18306
18306
|
|
@@ -18341,7 +18341,7 @@ var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
18341
18341
|
return r;
|
18342
18342
|
};
|
18343
18343
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
18344
|
-
var debug_1 = __webpack_require__(
|
18344
|
+
var debug_1 = __webpack_require__(68919);
|
18345
18345
|
var mongo_eql_1 = __webpack_require__(11418);
|
18346
18346
|
var ops = __webpack_require__(98402);
|
18347
18347
|
var get_type_1 = __webpack_require__(66692);
|
@@ -18495,7 +18495,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18495
18495
|
/**
|
18496
18496
|
* Module dependencies.
|
18497
18497
|
*/
|
18498
|
-
var debug_1 = __webpack_require__(
|
18498
|
+
var debug_1 = __webpack_require__(68919);
|
18499
18499
|
var mongoDot = __webpack_require__(18266);
|
18500
18500
|
var mongo_eql_1 = __webpack_require__(11418);
|
18501
18501
|
var get_type_1 = __webpack_require__(66692);
|
@@ -19320,7 +19320,7 @@ exports.$size = function (matcher, val) {
|
|
19320
19320
|
"use strict";
|
19321
19321
|
|
19322
19322
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
19323
|
-
var debug_1 = __webpack_require__(
|
19323
|
+
var debug_1 = __webpack_require__(68919);
|
19324
19324
|
var filter_1 = __webpack_require__(32889);
|
19325
19325
|
var mods = __webpack_require__(88708);
|
19326
19326
|
var mongoDot = __webpack_require__(18266);
|
@@ -27922,7 +27922,7 @@ module.exports = function () {
|
|
27922
27922
|
if (!debug) {
|
27923
27923
|
try {
|
27924
27924
|
/* eslint global-require: off */
|
27925
|
-
debug = __webpack_require__(
|
27925
|
+
debug = __webpack_require__(68919)("follow-redirects");
|
27926
27926
|
}
|
27927
27927
|
catch (error) { /* */ }
|
27928
27928
|
if (typeof debug !== "function") {
|
@@ -90636,7 +90636,7 @@ exports.I18n = void 0;
|
|
90636
90636
|
|
90637
90637
|
var _get2 = _interopRequireDefault(__webpack_require__(71189));
|
90638
90638
|
|
90639
|
-
var
|
90639
|
+
var _utils = __webpack_require__(84032);
|
90640
90640
|
|
90641
90641
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
90642
90642
|
|
@@ -90674,7 +90674,7 @@ class I18n {
|
|
90674
90674
|
this.languageMap = languageMap;
|
90675
90675
|
}
|
90676
90676
|
|
90677
|
-
return (0,
|
90677
|
+
return (0, _utils.getObjKeyMap)(this.languageMap[this.language]);
|
90678
90678
|
}
|
90679
90679
|
|
90680
90680
|
changeLanguage(config) {
|
@@ -91452,8 +91452,7 @@ const EN_LOCALE = {
|
|
91452
91452
|
element: {
|
91453
91453
|
self: 'Create project element',
|
91454
91454
|
entry: 'New "entry"',
|
91455
|
-
server: 'New "Server Custom" source code directory'
|
91456
|
-
env: 'Generate ".env" file'
|
91455
|
+
server: 'New "Server Custom" source code directory'
|
91457
91456
|
},
|
91458
91457
|
refactor: {
|
91459
91458
|
self: 'Automatic refactor',
|
@@ -91613,8 +91612,7 @@ const ZH_LOCALE = {
|
|
91613
91612
|
element: {
|
91614
91613
|
self: '创建工程元素',
|
91615
91614
|
entry: '新建「应用入口」',
|
91616
|
-
server: '新建「Server 自定义」源码目录'
|
91617
|
-
env: '生成「.env」文件'
|
91615
|
+
server: '新建「Server 自定义」源码目录'
|
91618
91616
|
},
|
91619
91617
|
refactor: {
|
91620
91618
|
self: '自动重构',
|
@@ -92360,7 +92358,6 @@ exports.ActionElement = ActionElement;
|
|
92360
92358
|
(function (ActionElement) {
|
92361
92359
|
ActionElement["Entry"] = "entry";
|
92362
92360
|
ActionElement["Server"] = "server";
|
92363
|
-
ActionElement["Env"] = "env";
|
92364
92361
|
})(ActionElement || (exports.ActionElement = ActionElement = {}));
|
92365
92362
|
|
92366
92363
|
let ActionFunction;
|
@@ -92399,8 +92396,7 @@ const ActionTypeText = {
|
|
92399
92396
|
exports.ActionTypeText = ActionTypeText;
|
92400
92397
|
const ActionElementText = {
|
92401
92398
|
[ActionElement.Entry]: () => _locale.i18n.t(_locale.localeKeys.action.element.entry),
|
92402
|
-
[ActionElement.Server]: () => _locale.i18n.t(_locale.localeKeys.action.element.server)
|
92403
|
-
[ActionElement.Env]: () => _locale.i18n.t(_locale.localeKeys.action.element.env)
|
92399
|
+
[ActionElement.Server]: () => _locale.i18n.t(_locale.localeKeys.action.element.server)
|
92404
92400
|
};
|
92405
92401
|
exports.ActionElementText = ActionElementText;
|
92406
92402
|
const ActionFunctionText = {
|
@@ -92645,8 +92641,7 @@ _common.ActionFunction.Test, _common.ActionFunction.Storybook, // ActionFunction
|
|
92645
92641
|
// ActionFunction.Doc,
|
92646
92642
|
_common.ActionFunction.Deploy];
|
92647
92643
|
exports.MWAActionFunctions = MWAActionFunctions;
|
92648
|
-
const MWAActionElements = [_common.ActionElement.Entry, _common.ActionElement.Server
|
92649
|
-
];
|
92644
|
+
const MWAActionElements = [_common.ActionElement.Entry, _common.ActionElement.Server];
|
92650
92645
|
exports.MWAActionElements = MWAActionElements;
|
92651
92646
|
const MWAActionReactors = [_common.ActionRefactor.BFFToApp];
|
92652
92647
|
exports.MWAActionReactors = MWAActionReactors;
|
@@ -92706,7 +92701,6 @@ exports.MWAActionFunctionsDependencies = MWAActionFunctionsDependencies;
|
|
92706
92701
|
const MWANewActionGenerators = {
|
92707
92702
|
[_common.ActionType.Element]: {
|
92708
92703
|
[_common.ActionElement.Entry]: '@modern-js/entry-generator',
|
92709
|
-
[_common.ActionElement.Env]: '@modern-js/env-generator',
|
92710
92704
|
[_common.ActionElement.Server]: '@modern-js/server-generator'
|
92711
92705
|
},
|
92712
92706
|
[_common.ActionType.Function]: {
|
package/package.json
CHANGED
@@ -11,35 +11,25 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.1.
|
14
|
+
"version": "1.1.3",
|
15
15
|
"jsnext:source": "./src/index.ts",
|
16
|
-
"types": "./dist/types/index.d.ts",
|
17
16
|
"main": "./dist/js/node/main.js",
|
18
17
|
"files": [
|
19
18
|
"/templates",
|
20
19
|
"/dist/js/node/main.js"
|
21
20
|
],
|
22
|
-
"exports": {
|
23
|
-
".": {
|
24
|
-
"node": {
|
25
|
-
"import": "./dist/js/modern/index.js",
|
26
|
-
"require": "./dist/js/node/index.js"
|
27
|
-
},
|
28
|
-
"default": "./dist/js/treeshaking/index.js"
|
29
|
-
}
|
30
|
-
},
|
31
21
|
"devDependencies": {
|
32
22
|
"@babel/runtime": "^7",
|
33
|
-
"@modern-js/base-generator": "^1.1.
|
34
|
-
"@modern-js/changeset-generator": "^1.1.
|
23
|
+
"@modern-js/base-generator": "^1.1.2",
|
24
|
+
"@modern-js/changeset-generator": "^1.1.2",
|
35
25
|
"@modern-js/codesmith": "^1.0.0",
|
36
26
|
"@modern-js/codesmith-api-app": "^1.0.0",
|
37
27
|
"@modern-js/codesmith-tools": "^1.0.0",
|
38
28
|
"@modern-js/codesmith-api-json": "^1.0.0",
|
39
|
-
"@modern-js/generator-common": "^1.1.
|
29
|
+
"@modern-js/generator-common": "^1.1.3",
|
40
30
|
"@modern-js/generator-utils": "^1.1.1",
|
41
|
-
"@modern-js/module-tools": "^1.1.
|
42
|
-
"@modern-js/plugin-testing": "^1.1.
|
31
|
+
"@modern-js/module-tools": "^1.1.1",
|
32
|
+
"@modern-js/plugin-testing": "^1.1.1",
|
43
33
|
"@types/jest": "^26",
|
44
34
|
"@types/node": "^14",
|
45
35
|
"typescript": "^4"
|