@modern-js/repo-generator 1.1.1 → 1.1.2
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 +20 -26
- package/package.json +7 -17
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
|
|
@@ -5580,7 +5580,7 @@ exports.pointer = pointer;
|
|
5580
5580
|
|
5581
5581
|
/***/ }),
|
5582
5582
|
|
5583
|
-
/***/
|
5583
|
+
/***/ 98368:
|
5584
5584
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
5585
5585
|
|
5586
5586
|
"use strict";
|
@@ -5593,7 +5593,7 @@ exports.I18n = void 0;
|
|
5593
5593
|
|
5594
5594
|
var _get2 = _interopRequireDefault(__webpack_require__(71189));
|
5595
5595
|
|
5596
|
-
var _index = __webpack_require__(
|
5596
|
+
var _index = __webpack_require__(24033);
|
5597
5597
|
|
5598
5598
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
5599
5599
|
|
@@ -5654,7 +5654,7 @@ exports.I18n = I18n;
|
|
5654
5654
|
|
5655
5655
|
/***/ }),
|
5656
5656
|
|
5657
|
-
/***/
|
5657
|
+
/***/ 24033:
|
5658
5658
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
5659
5659
|
|
5660
5660
|
"use strict";
|
@@ -17376,7 +17376,7 @@ module.exports = resolveCommand;
|
|
17376
17376
|
|
17377
17377
|
/***/ }),
|
17378
17378
|
|
17379
|
-
/***/
|
17379
|
+
/***/ 88351:
|
17380
17380
|
/***/ ((module, exports, __webpack_require__) => {
|
17381
17381
|
|
17382
17382
|
/* eslint-env browser */
|
@@ -17633,7 +17633,7 @@ function localstorage() {
|
|
17633
17633
|
}
|
17634
17634
|
}
|
17635
17635
|
|
17636
|
-
module.exports = __webpack_require__(
|
17636
|
+
module.exports = __webpack_require__(19507)(exports);
|
17637
17637
|
|
17638
17638
|
const {formatters} = module.exports;
|
17639
17639
|
|
@@ -17652,7 +17652,7 @@ formatters.j = function (v) {
|
|
17652
17652
|
|
17653
17653
|
/***/ }),
|
17654
17654
|
|
17655
|
-
/***/
|
17655
|
+
/***/ 19507:
|
17656
17656
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
17657
17657
|
|
17658
17658
|
|
@@ -17691,7 +17691,7 @@ function setup(env) {
|
|
17691
17691
|
|
17692
17692
|
/**
|
17693
17693
|
* Selects a color for a debug namespace
|
17694
|
-
* @param {String} namespace The namespace string for the
|
17694
|
+
* @param {String} namespace The namespace string for the debug instance to be colored
|
17695
17695
|
* @return {Number|String} An ANSI color code for the given namespace
|
17696
17696
|
* @api private
|
17697
17697
|
*/
|
@@ -17933,7 +17933,7 @@ module.exports = setup;
|
|
17933
17933
|
|
17934
17934
|
/***/ }),
|
17935
17935
|
|
17936
|
-
/***/
|
17936
|
+
/***/ 68919:
|
17937
17937
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
17938
17938
|
|
17939
17939
|
/**
|
@@ -17942,15 +17942,15 @@ module.exports = setup;
|
|
17942
17942
|
*/
|
17943
17943
|
|
17944
17944
|
if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {
|
17945
|
-
module.exports = __webpack_require__(
|
17945
|
+
module.exports = __webpack_require__(88351);
|
17946
17946
|
} else {
|
17947
|
-
module.exports = __webpack_require__(
|
17947
|
+
module.exports = __webpack_require__(89534);
|
17948
17948
|
}
|
17949
17949
|
|
17950
17950
|
|
17951
17951
|
/***/ }),
|
17952
17952
|
|
17953
|
-
/***/
|
17953
|
+
/***/ 89534:
|
17954
17954
|
/***/ ((module, exports, __webpack_require__) => {
|
17955
17955
|
|
17956
17956
|
/**
|
@@ -18192,7 +18192,7 @@ function init(debug) {
|
|
18192
18192
|
}
|
18193
18193
|
}
|
18194
18194
|
|
18195
|
-
module.exports = __webpack_require__(
|
18195
|
+
module.exports = __webpack_require__(19507)(exports);
|
18196
18196
|
|
18197
18197
|
const {formatters} = module.exports;
|
18198
18198
|
|
@@ -26692,7 +26692,7 @@ module.exports = function () {
|
|
26692
26692
|
if (!debug) {
|
26693
26693
|
try {
|
26694
26694
|
/* eslint global-require: off */
|
26695
|
-
debug = __webpack_require__(
|
26695
|
+
debug = __webpack_require__(68919)("follow-redirects");
|
26696
26696
|
}
|
26697
26697
|
catch (error) { /* */ }
|
26698
26698
|
if (typeof debug !== "function") {
|
@@ -89406,7 +89406,7 @@ exports.I18n = void 0;
|
|
89406
89406
|
|
89407
89407
|
var _get2 = _interopRequireDefault(__webpack_require__(71189));
|
89408
89408
|
|
89409
|
-
var
|
89409
|
+
var _utils = __webpack_require__(84032);
|
89410
89410
|
|
89411
89411
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
89412
89412
|
|
@@ -89444,7 +89444,7 @@ class I18n {
|
|
89444
89444
|
this.languageMap = languageMap;
|
89445
89445
|
}
|
89446
89446
|
|
89447
|
-
return (0,
|
89447
|
+
return (0, _utils.getObjKeyMap)(this.languageMap[this.language]);
|
89448
89448
|
}
|
89449
89449
|
|
89450
89450
|
changeLanguage(config) {
|
@@ -90222,8 +90222,7 @@ const EN_LOCALE = {
|
|
90222
90222
|
element: {
|
90223
90223
|
self: 'Create project element',
|
90224
90224
|
entry: 'New "entry"',
|
90225
|
-
server: 'New "Server Custom" source code directory'
|
90226
|
-
env: 'Generate ".env" file'
|
90225
|
+
server: 'New "Server Custom" source code directory'
|
90227
90226
|
},
|
90228
90227
|
refactor: {
|
90229
90228
|
self: 'Automatic refactor',
|
@@ -90383,8 +90382,7 @@ const ZH_LOCALE = {
|
|
90383
90382
|
element: {
|
90384
90383
|
self: '创建工程元素',
|
90385
90384
|
entry: '新建「应用入口」',
|
90386
|
-
server: '新建「Server 自定义」源码目录'
|
90387
|
-
env: '生成「.env」文件'
|
90385
|
+
server: '新建「Server 自定义」源码目录'
|
90388
90386
|
},
|
90389
90387
|
refactor: {
|
90390
90388
|
self: '自动重构',
|
@@ -91130,7 +91128,6 @@ exports.ActionElement = ActionElement;
|
|
91130
91128
|
(function (ActionElement) {
|
91131
91129
|
ActionElement["Entry"] = "entry";
|
91132
91130
|
ActionElement["Server"] = "server";
|
91133
|
-
ActionElement["Env"] = "env";
|
91134
91131
|
})(ActionElement || (exports.ActionElement = ActionElement = {}));
|
91135
91132
|
|
91136
91133
|
let ActionFunction;
|
@@ -91169,8 +91166,7 @@ const ActionTypeText = {
|
|
91169
91166
|
exports.ActionTypeText = ActionTypeText;
|
91170
91167
|
const ActionElementText = {
|
91171
91168
|
[ActionElement.Entry]: () => _locale.i18n.t(_locale.localeKeys.action.element.entry),
|
91172
|
-
[ActionElement.Server]: () => _locale.i18n.t(_locale.localeKeys.action.element.server)
|
91173
|
-
[ActionElement.Env]: () => _locale.i18n.t(_locale.localeKeys.action.element.env)
|
91169
|
+
[ActionElement.Server]: () => _locale.i18n.t(_locale.localeKeys.action.element.server)
|
91174
91170
|
};
|
91175
91171
|
exports.ActionElementText = ActionElementText;
|
91176
91172
|
const ActionFunctionText = {
|
@@ -91415,8 +91411,7 @@ _common.ActionFunction.Test, _common.ActionFunction.Storybook, // ActionFunction
|
|
91415
91411
|
// ActionFunction.Doc,
|
91416
91412
|
_common.ActionFunction.Deploy];
|
91417
91413
|
exports.MWAActionFunctions = MWAActionFunctions;
|
91418
|
-
const MWAActionElements = [_common.ActionElement.Entry, _common.ActionElement.Server
|
91419
|
-
];
|
91414
|
+
const MWAActionElements = [_common.ActionElement.Entry, _common.ActionElement.Server];
|
91420
91415
|
exports.MWAActionElements = MWAActionElements;
|
91421
91416
|
const MWAActionReactors = [_common.ActionRefactor.BFFToApp];
|
91422
91417
|
exports.MWAActionReactors = MWAActionReactors;
|
@@ -91476,7 +91471,6 @@ exports.MWAActionFunctionsDependencies = MWAActionFunctionsDependencies;
|
|
91476
91471
|
const MWANewActionGenerators = {
|
91477
91472
|
[_common.ActionType.Element]: {
|
91478
91473
|
[_common.ActionElement.Entry]: '@modern-js/entry-generator',
|
91479
|
-
[_common.ActionElement.Env]: '@modern-js/env-generator',
|
91480
91474
|
[_common.ActionElement.Server]: '@modern-js/server-generator'
|
91481
91475
|
},
|
91482
91476
|
[_common.ActionType.Function]: {
|
package/package.json
CHANGED
@@ -11,40 +11,30 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.1.
|
14
|
+
"version": "1.1.2",
|
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
23
|
"@modern-js/codesmith": "^1.0.0",
|
34
24
|
"@modern-js/codesmith-api-app": "^1.0.0",
|
35
25
|
"@modern-js/codesmith-tools": "^1.0.0",
|
36
|
-
"@modern-js/generator-common": "^1.1.
|
26
|
+
"@modern-js/generator-common": "^1.1.3",
|
37
27
|
"@modern-js/generator-utils": "^1.1.1",
|
38
|
-
"@modern-js/module-generator": "^1.1.
|
39
|
-
"@modern-js/monorepo-generator": "^1.1.
|
40
|
-
"@modern-js/mwa-generator": "^1.1.
|
28
|
+
"@modern-js/module-generator": "^1.1.3",
|
29
|
+
"@modern-js/monorepo-generator": "^1.1.3",
|
30
|
+
"@modern-js/mwa-generator": "^1.1.2",
|
41
31
|
"@types/jest": "^26",
|
42
32
|
"@types/lodash": "^4.14.168",
|
43
33
|
"@types/node": "^14",
|
44
34
|
"lodash": "^4.17.21",
|
45
35
|
"typescript": "^4",
|
46
|
-
"@modern-js/module-tools": "^1.1.
|
47
|
-
"@modern-js/plugin-testing": "^1.1.
|
36
|
+
"@modern-js/module-tools": "^1.1.1",
|
37
|
+
"@modern-js/plugin-testing": "^1.1.1"
|
48
38
|
},
|
49
39
|
"sideEffects": false,
|
50
40
|
"modernConfig": {
|