@modern-js/upgrade-generator 0.0.0-canary-20220907140535 → 2.3.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 +62 -164
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -35812,17 +35812,17 @@ var require_logger = __commonJSMin((exports) => {
|
|
|
35812
35812
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
|
35813
35813
|
return;
|
|
35814
35814
|
}
|
|
35815
|
-
let
|
|
35815
|
+
let label21 = "";
|
|
35816
35816
|
let text = "";
|
|
35817
35817
|
const logType = this.types[type];
|
|
35818
35818
|
if (this.config.displayLabel && logType.label) {
|
|
35819
|
-
|
|
35819
|
+
label21 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
|
35820
35820
|
if (this.config.underlineLabel) {
|
|
35821
|
-
|
|
35821
|
+
label21 = underline(label21).padEnd(this.longestUnderlinedLabel.length + 1);
|
|
35822
35822
|
} else {
|
|
35823
|
-
|
|
35823
|
+
label21 = label21.padEnd(this.longestLabel.length + 1);
|
|
35824
35824
|
}
|
|
35825
|
-
|
|
35825
|
+
label21 = logType.color ? chalk_1.default[logType.color](label21) : label21;
|
|
35826
35826
|
}
|
|
35827
35827
|
if (message instanceof Error) {
|
|
35828
35828
|
if (message.stack) {
|
|
@@ -35838,15 +35838,15 @@ ${grey(rest.join("\n"))}`;
|
|
|
35838
35838
|
if (logType.level === "warn" || logType.level === "error") {
|
|
35839
35839
|
this.retainLog(type, text);
|
|
35840
35840
|
}
|
|
35841
|
-
const log =
|
|
35841
|
+
const log = label21.length > 0 ? `${label21} ${text}` : text;
|
|
35842
35842
|
console.log(log, ...args);
|
|
35843
35843
|
}
|
|
35844
35844
|
getLongestLabel() {
|
|
35845
35845
|
let longestLabel = "";
|
|
35846
35846
|
Object.keys(this.types).forEach((type) => {
|
|
35847
|
-
const { label:
|
|
35848
|
-
if (
|
|
35849
|
-
longestLabel =
|
|
35847
|
+
const { label: label21 = "" } = this.types[type];
|
|
35848
|
+
if (label21.length > longestLabel.length) {
|
|
35849
|
+
longestLabel = label21;
|
|
35850
35850
|
}
|
|
35851
35851
|
});
|
|
35852
35852
|
return longestLabel;
|
|
@@ -38556,9 +38556,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
38556
38556
|
}();
|
|
38557
38557
|
exports2.BlockStatement = BlockStatement;
|
|
38558
38558
|
var BreakStatement = function() {
|
|
38559
|
-
function BreakStatement2(
|
|
38559
|
+
function BreakStatement2(label21) {
|
|
38560
38560
|
this.type = syntax_1.Syntax.BreakStatement;
|
|
38561
|
-
this.label =
|
|
38561
|
+
this.label = label21;
|
|
38562
38562
|
}
|
|
38563
38563
|
return BreakStatement2;
|
|
38564
38564
|
}();
|
|
@@ -38630,9 +38630,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
38630
38630
|
}();
|
|
38631
38631
|
exports2.ConditionalExpression = ConditionalExpression;
|
|
38632
38632
|
var ContinueStatement = function() {
|
|
38633
|
-
function ContinueStatement2(
|
|
38633
|
+
function ContinueStatement2(label21) {
|
|
38634
38634
|
this.type = syntax_1.Syntax.ContinueStatement;
|
|
38635
|
-
this.label =
|
|
38635
|
+
this.label = label21;
|
|
38636
38636
|
}
|
|
38637
38637
|
return ContinueStatement2;
|
|
38638
38638
|
}();
|
|
@@ -38823,9 +38823,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
38823
38823
|
}();
|
|
38824
38824
|
exports2.ImportSpecifier = ImportSpecifier;
|
|
38825
38825
|
var LabeledStatement = function() {
|
|
38826
|
-
function LabeledStatement2(
|
|
38826
|
+
function LabeledStatement2(label21, body) {
|
|
38827
38827
|
this.type = syntax_1.Syntax.LabeledStatement;
|
|
38828
|
-
this.label =
|
|
38828
|
+
this.label = label21;
|
|
38829
38829
|
this.body = body;
|
|
38830
38830
|
}
|
|
38831
38831
|
return LabeledStatement2;
|
|
@@ -40972,38 +40972,38 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
40972
40972
|
Parser2.prototype.parseContinueStatement = function() {
|
|
40973
40973
|
var node = this.createNode();
|
|
40974
40974
|
this.expectKeyword("continue");
|
|
40975
|
-
var
|
|
40975
|
+
var label21 = null;
|
|
40976
40976
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
|
40977
40977
|
var id = this.parseVariableIdentifier();
|
|
40978
|
-
|
|
40978
|
+
label21 = id;
|
|
40979
40979
|
var key = "$" + id.name;
|
|
40980
40980
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
|
40981
40981
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
|
40982
40982
|
}
|
|
40983
40983
|
}
|
|
40984
40984
|
this.consumeSemicolon();
|
|
40985
|
-
if (
|
|
40985
|
+
if (label21 === null && !this.context.inIteration) {
|
|
40986
40986
|
this.throwError(messages_1.Messages.IllegalContinue);
|
|
40987
40987
|
}
|
|
40988
|
-
return this.finalize(node, new Node.ContinueStatement(
|
|
40988
|
+
return this.finalize(node, new Node.ContinueStatement(label21));
|
|
40989
40989
|
};
|
|
40990
40990
|
Parser2.prototype.parseBreakStatement = function() {
|
|
40991
40991
|
var node = this.createNode();
|
|
40992
40992
|
this.expectKeyword("break");
|
|
40993
|
-
var
|
|
40993
|
+
var label21 = null;
|
|
40994
40994
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
|
40995
40995
|
var id = this.parseVariableIdentifier();
|
|
40996
40996
|
var key = "$" + id.name;
|
|
40997
40997
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
|
40998
40998
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
|
40999
40999
|
}
|
|
41000
|
-
|
|
41000
|
+
label21 = id;
|
|
41001
41001
|
}
|
|
41002
41002
|
this.consumeSemicolon();
|
|
41003
|
-
if (
|
|
41003
|
+
if (label21 === null && !this.context.inIteration && !this.context.inSwitch) {
|
|
41004
41004
|
this.throwError(messages_1.Messages.IllegalBreak);
|
|
41005
41005
|
}
|
|
41006
|
-
return this.finalize(node, new Node.BreakStatement(
|
|
41006
|
+
return this.finalize(node, new Node.BreakStatement(label21));
|
|
41007
41007
|
};
|
|
41008
41008
|
Parser2.prototype.parseReturnStatement = function() {
|
|
41009
41009
|
if (!this.context.inFunctionBody) {
|
|
@@ -129719,17 +129719,17 @@ var require_logger4 = __commonJSMin((exports) => {
|
|
|
129719
129719
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
|
129720
129720
|
return;
|
|
129721
129721
|
}
|
|
129722
|
-
let
|
|
129722
|
+
let label21 = "";
|
|
129723
129723
|
let text = "";
|
|
129724
129724
|
const logType = this.types[type];
|
|
129725
129725
|
if (this.config.displayLabel && logType.label) {
|
|
129726
|
-
|
|
129726
|
+
label21 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
|
129727
129727
|
if (this.config.underlineLabel) {
|
|
129728
|
-
|
|
129728
|
+
label21 = underline(label21).padEnd(this.longestUnderlinedLabel.length + 1);
|
|
129729
129729
|
} else {
|
|
129730
|
-
|
|
129730
|
+
label21 = label21.padEnd(this.longestLabel.length + 1);
|
|
129731
129731
|
}
|
|
129732
|
-
|
|
129732
|
+
label21 = logType.color ? chalk_1.default[logType.color](label21) : label21;
|
|
129733
129733
|
}
|
|
129734
129734
|
if (message instanceof Error) {
|
|
129735
129735
|
if (message.stack) {
|
|
@@ -129745,15 +129745,15 @@ ${grey(rest.join("\n"))}`;
|
|
|
129745
129745
|
if (logType.level === "warn" || logType.level === "error") {
|
|
129746
129746
|
this.retainLog(type, text);
|
|
129747
129747
|
}
|
|
129748
|
-
const log =
|
|
129748
|
+
const log = label21.length > 0 ? `${label21} ${text}` : text;
|
|
129749
129749
|
console.log(log, ...args);
|
|
129750
129750
|
}
|
|
129751
129751
|
getLongestLabel() {
|
|
129752
129752
|
let longestLabel = "";
|
|
129753
129753
|
Object.keys(this.types).forEach((type) => {
|
|
129754
|
-
const { label:
|
|
129755
|
-
if (
|
|
129756
|
-
longestLabel =
|
|
129754
|
+
const { label: label21 = "" } = this.types[type];
|
|
129755
|
+
if (label21.length > longestLabel.length) {
|
|
129756
|
+
longestLabel = label21;
|
|
129757
129757
|
}
|
|
129758
129758
|
});
|
|
129759
129759
|
return longestLabel;
|
|
@@ -131518,22 +131518,15 @@ var init_zh = __esmMin(() => {
|
|
|
131518
131518
|
no: "\u4E0D\u9700\u8981",
|
|
131519
131519
|
electron: "Electron"
|
|
131520
131520
|
},
|
|
131521
|
-
needModifyConfig: {
|
|
131522
|
-
self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
|
131523
|
-
enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
|
|
131524
|
-
enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
|
|
131525
|
-
},
|
|
131526
131521
|
entry: {
|
|
131527
131522
|
name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
|
|
131528
131523
|
no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
|
131529
131524
|
no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
|
|
131530
131525
|
needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
|
131531
|
-
disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
|
|
131532
131526
|
clientRoute: {
|
|
131533
131527
|
self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
|
|
131534
|
-
selfControlRoute: "\
|
|
131535
|
-
conventionalRoute: "\
|
|
131536
|
-
no: "\u4E0D\u542F\u7528"
|
|
131528
|
+
selfControlRoute: "\u81EA\u63A7\u8DEF\u7531",
|
|
131529
|
+
conventionalRoute: "\u7EA6\u5B9A\u5F0F\u8DEF\u7531"
|
|
131537
131530
|
}
|
|
131538
131531
|
},
|
|
131539
131532
|
packageName: {
|
|
@@ -131640,21 +131633,15 @@ var init_en = __esmMin(() => {
|
|
|
131640
131633
|
no: "Not Enabled",
|
|
131641
131634
|
electron: "Electron"
|
|
131642
131635
|
},
|
|
131643
|
-
needModifyConfig: {
|
|
131644
|
-
self: "Modify the Default Configuration?",
|
|
131645
|
-
enableLess: "Enable Less?",
|
|
131646
|
-
enableSass: "Enable Sass?"
|
|
131647
|
-
},
|
|
131648
131636
|
entry: {
|
|
131649
131637
|
name: "Entry name",
|
|
131650
131638
|
no_empty: "The entry name cannot be empty!",
|
|
131651
131639
|
no_pages: 'The entry name cannot be "pages"!',
|
|
131652
|
-
|
|
131640
|
+
needModifyConfig: "Modify the Default Configuration?",
|
|
131653
131641
|
clientRoute: {
|
|
131654
131642
|
self: "Client Routing",
|
|
131655
|
-
selfControlRoute: "
|
|
131656
|
-
conventionalRoute: "
|
|
131657
|
-
no: "Not Enabled"
|
|
131643
|
+
selfControlRoute: "Self Control Route",
|
|
131644
|
+
conventionalRoute: "Conventional Route"
|
|
131658
131645
|
}
|
|
131659
131646
|
},
|
|
131660
131647
|
framework: {
|
|
@@ -132016,63 +132003,10 @@ var init_project = __esmMin(() => {
|
|
|
132016
132003
|
var init_base = __esmMin(() => {
|
|
132017
132004
|
init_project();
|
|
132018
132005
|
});
|
|
132019
|
-
var
|
|
132020
|
-
var init_css = __esmMin(() => {
|
|
132021
|
-
init_locale();
|
|
132022
|
-
init_boolean();
|
|
132023
|
-
EnableLessSchema = {
|
|
132024
|
-
key: "enableLess",
|
|
132025
|
-
type: ["string"],
|
|
132026
|
-
label: function label9() {
|
|
132027
|
-
return i18n.t(localeKeys.needModifyConfig.enableLess);
|
|
132028
|
-
},
|
|
132029
|
-
mutualExclusion: true,
|
|
132030
|
-
state: {
|
|
132031
|
-
value: BooleanConfig.NO
|
|
132032
|
-
},
|
|
132033
|
-
items: BooleanSchemas
|
|
132034
|
-
};
|
|
132035
|
-
EnableSassSchema = {
|
|
132036
|
-
key: "enableSass",
|
|
132037
|
-
type: ["string"],
|
|
132038
|
-
label: function label10() {
|
|
132039
|
-
return i18n.t(localeKeys.needModifyConfig.enableSass);
|
|
132040
|
-
},
|
|
132041
|
-
mutualExclusion: true,
|
|
132042
|
-
state: {
|
|
132043
|
-
value: BooleanConfig.NO
|
|
132044
|
-
},
|
|
132045
|
-
items: BooleanSchemas
|
|
132046
|
-
};
|
|
132047
|
-
});
|
|
132048
|
-
var moduleConfigWhenFunc, EnableModuleLessSchema, EnableModuleSassSchema, NeedModifyModuleConfigSchema, ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
|
|
132006
|
+
var ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
|
|
132049
132007
|
var init_project2 = __esmMin(() => {
|
|
132050
|
-
init_objectSpread2();
|
|
132051
|
-
init_locale();
|
|
132052
132008
|
init_common();
|
|
132053
|
-
|
|
132054
|
-
moduleConfigWhenFunc = function moduleConfigWhenFunc2(values) {
|
|
132055
|
-
return values.needModifyModuleConfig === BooleanConfig.YES;
|
|
132056
|
-
};
|
|
132057
|
-
EnableModuleLessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
|
|
132058
|
-
when: moduleConfigWhenFunc
|
|
132059
|
-
});
|
|
132060
|
-
EnableModuleSassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
|
|
132061
|
-
when: moduleConfigWhenFunc
|
|
132062
|
-
});
|
|
132063
|
-
NeedModifyModuleConfigSchema = {
|
|
132064
|
-
key: "needModifyModuleConfig",
|
|
132065
|
-
label: function label11() {
|
|
132066
|
-
return i18n.t(localeKeys.needModifyConfig.self);
|
|
132067
|
-
},
|
|
132068
|
-
type: ["string"],
|
|
132069
|
-
mutualExclusion: true,
|
|
132070
|
-
state: {
|
|
132071
|
-
value: BooleanConfig.NO
|
|
132072
|
-
},
|
|
132073
|
-
items: BooleanSchemas
|
|
132074
|
-
};
|
|
132075
|
-
ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, NeedModifyModuleConfigSchema, EnableModuleLessSchema, EnableModuleSassSchema];
|
|
132009
|
+
ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema];
|
|
132076
132010
|
ModuleSchema = {
|
|
132077
132011
|
key: "module",
|
|
132078
132012
|
isObject: true,
|
|
@@ -132080,10 +132014,7 @@ var init_project2 = __esmMin(() => {
|
|
|
132080
132014
|
};
|
|
132081
132015
|
ModuleDefaultConfig = {
|
|
132082
132016
|
language: Language.TS,
|
|
132083
|
-
packageManager: PackageManager.Pnpm
|
|
132084
|
-
needModifyModuleConfig: BooleanConfig.NO,
|
|
132085
|
-
enableLess: BooleanConfig.NO,
|
|
132086
|
-
enableSass: BooleanConfig.NO
|
|
132017
|
+
packageManager: PackageManager.Pnpm
|
|
132087
132018
|
};
|
|
132088
132019
|
});
|
|
132089
132020
|
var init_module = __esmMin(() => {
|
|
@@ -132111,13 +132042,11 @@ var init_project3 = __esmMin(() => {
|
|
|
132111
132042
|
var init_monorepo = __esmMin(() => {
|
|
132112
132043
|
init_project3();
|
|
132113
132044
|
});
|
|
132114
|
-
var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema,
|
|
132045
|
+
var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema, NeedModifyMWAConfigSchema, Framework, FrameworkSchema, FrameworkAppendTypeContent;
|
|
132115
132046
|
var init_common2 = __esmMin(() => {
|
|
132116
132047
|
init_defineProperty();
|
|
132117
|
-
init_objectSpread2();
|
|
132118
132048
|
init_locale();
|
|
132119
132049
|
init_boolean();
|
|
132120
|
-
init_css();
|
|
132121
132050
|
mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
|
|
132122
132051
|
return values.needModifyMWAConfig === BooleanConfig.YES;
|
|
132123
132052
|
};
|
|
@@ -132128,7 +132057,7 @@ var init_common2 = __esmMin(() => {
|
|
|
132128
132057
|
RunWaySchema = {
|
|
132129
132058
|
key: "runWay",
|
|
132130
132059
|
type: ["string"],
|
|
132131
|
-
label: function
|
|
132060
|
+
label: function label9() {
|
|
132132
132061
|
return i18n.t(localeKeys.runWay.self);
|
|
132133
132062
|
},
|
|
132134
132063
|
mutualExclusion: true,
|
|
@@ -132141,7 +132070,7 @@ var init_common2 = __esmMin(() => {
|
|
|
132141
132070
|
items: Object.values(RunWay).map(function(runWay) {
|
|
132142
132071
|
return {
|
|
132143
132072
|
key: runWay,
|
|
132144
|
-
label: function
|
|
132073
|
+
label: function label21() {
|
|
132145
132074
|
return i18n.t(localeKeys.runWay[runWay]);
|
|
132146
132075
|
}
|
|
132147
132076
|
};
|
|
@@ -132150,12 +132079,11 @@ var init_common2 = __esmMin(() => {
|
|
|
132150
132079
|
(function(ClientRoute2) {
|
|
132151
132080
|
ClientRoute2["SelfControlRoute"] = "selfControlRoute";
|
|
132152
132081
|
ClientRoute2["ConventionalRoute"] = "conventionalRoute";
|
|
132153
|
-
ClientRoute2["No"] = "no";
|
|
132154
132082
|
})(ClientRoute || (ClientRoute = {}));
|
|
132155
132083
|
ClientRouteSchema = {
|
|
132156
132084
|
key: "clientRoute",
|
|
132157
132085
|
type: ["string"],
|
|
132158
|
-
label: function
|
|
132086
|
+
label: function label10() {
|
|
132159
132087
|
return i18n.t(localeKeys.entry.clientRoute.self);
|
|
132160
132088
|
},
|
|
132161
132089
|
mutualExclusion: true,
|
|
@@ -132166,35 +132094,16 @@ var init_common2 = __esmMin(() => {
|
|
|
132166
132094
|
items: Object.values(ClientRoute).map(function(clientRoute) {
|
|
132167
132095
|
return {
|
|
132168
132096
|
key: clientRoute,
|
|
132169
|
-
label: function
|
|
132097
|
+
label: function label21() {
|
|
132170
132098
|
return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
|
|
132171
132099
|
}
|
|
132172
132100
|
};
|
|
132173
132101
|
})
|
|
132174
132102
|
};
|
|
132175
|
-
DisableStateManagementSchema = {
|
|
132176
|
-
key: "disableStateManagement",
|
|
132177
|
-
type: ["string"],
|
|
132178
|
-
label: function label14() {
|
|
132179
|
-
return i18n.t(localeKeys.entry.disableStateManagement);
|
|
132180
|
-
},
|
|
132181
|
-
mutualExclusion: true,
|
|
132182
|
-
when: mwaConfigWhenFunc,
|
|
132183
|
-
state: {
|
|
132184
|
-
value: BooleanConfig.NO
|
|
132185
|
-
},
|
|
132186
|
-
items: BooleanSchemas
|
|
132187
|
-
};
|
|
132188
|
-
EnableMWALessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
|
|
132189
|
-
when: mwaConfigWhenFunc
|
|
132190
|
-
});
|
|
132191
|
-
EnableMWASassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
|
|
132192
|
-
when: mwaConfigWhenFunc
|
|
132193
|
-
});
|
|
132194
132103
|
NeedModifyMWAConfigSchema = {
|
|
132195
132104
|
key: "needModifyMWAConfig",
|
|
132196
|
-
label: function
|
|
132197
|
-
return i18n.t(localeKeys.needModifyConfig
|
|
132105
|
+
label: function label11() {
|
|
132106
|
+
return i18n.t(localeKeys.entry.needModifyConfig);
|
|
132198
132107
|
},
|
|
132199
132108
|
type: ["string"],
|
|
132200
132109
|
mutualExclusion: true,
|
|
@@ -132212,14 +132121,14 @@ var init_common2 = __esmMin(() => {
|
|
|
132212
132121
|
FrameworkSchema = {
|
|
132213
132122
|
key: "framework",
|
|
132214
132123
|
type: ["string"],
|
|
132215
|
-
label: function
|
|
132124
|
+
label: function label12() {
|
|
132216
132125
|
return i18n.t(localeKeys.framework.self);
|
|
132217
132126
|
},
|
|
132218
132127
|
mutualExclusion: true,
|
|
132219
132128
|
items: Object.values(Framework).map(function(framework) {
|
|
132220
132129
|
return {
|
|
132221
132130
|
key: framework,
|
|
132222
|
-
label: function
|
|
132131
|
+
label: function label21() {
|
|
132223
132132
|
return i18n.t(localeKeys.framework[framework]);
|
|
132224
132133
|
}
|
|
132225
132134
|
};
|
|
@@ -132235,7 +132144,7 @@ var init_entry = __esmMin(() => {
|
|
|
132235
132144
|
EntryNameSchema = {
|
|
132236
132145
|
key: "name",
|
|
132237
132146
|
type: ["string"],
|
|
132238
|
-
label: function
|
|
132147
|
+
label: function label13() {
|
|
132239
132148
|
return i18n.t(localeKeys.entry.name);
|
|
132240
132149
|
},
|
|
132241
132150
|
state: {
|
|
@@ -132265,10 +132174,10 @@ var init_entry = __esmMin(() => {
|
|
|
132265
132174
|
return true;
|
|
132266
132175
|
}
|
|
132267
132176
|
};
|
|
132268
|
-
EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema
|
|
132177
|
+
EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema];
|
|
132269
132178
|
EntrySchema = {
|
|
132270
132179
|
key: "entry",
|
|
132271
|
-
label: function
|
|
132180
|
+
label: function label14() {
|
|
132272
132181
|
return i18n.t(localeKeys.action.element.entry);
|
|
132273
132182
|
},
|
|
132274
132183
|
isObject: true,
|
|
@@ -132276,8 +132185,7 @@ var init_entry = __esmMin(() => {
|
|
|
132276
132185
|
};
|
|
132277
132186
|
MWADefaultEntryConfig = {
|
|
132278
132187
|
needModifyMWAConfig: BooleanConfig.NO,
|
|
132279
|
-
clientRoute: ClientRoute.SelfControlRoute
|
|
132280
|
-
disableStateManagement: BooleanConfig.NO
|
|
132188
|
+
clientRoute: ClientRoute.SelfControlRoute
|
|
132281
132189
|
};
|
|
132282
132190
|
});
|
|
132283
132191
|
var BFFType, BFFTypeSchema, BFFSchemas, BFFSchema, MWADefaultBffConfig;
|
|
@@ -132291,14 +132199,14 @@ var init_bff = __esmMin(() => {
|
|
|
132291
132199
|
BFFTypeSchema = {
|
|
132292
132200
|
key: "bffType",
|
|
132293
132201
|
type: ["string"],
|
|
132294
|
-
label: function
|
|
132202
|
+
label: function label15() {
|
|
132295
132203
|
return i18n.t(localeKeys.bff.bffType.self);
|
|
132296
132204
|
},
|
|
132297
132205
|
mutualExclusion: true,
|
|
132298
132206
|
items: Object.values(BFFType).map(function(bffType) {
|
|
132299
132207
|
return {
|
|
132300
132208
|
key: bffType,
|
|
132301
|
-
label: function
|
|
132209
|
+
label: function label21() {
|
|
132302
132210
|
return i18n.t(localeKeys.bff.bffType[bffType]);
|
|
132303
132211
|
}
|
|
132304
132212
|
};
|
|
@@ -132307,7 +132215,7 @@ var init_bff = __esmMin(() => {
|
|
|
132307
132215
|
BFFSchemas = [BFFTypeSchema, FrameworkSchema];
|
|
132308
132216
|
BFFSchema = {
|
|
132309
132217
|
key: "bff",
|
|
132310
|
-
label: function
|
|
132218
|
+
label: function label16() {
|
|
132311
132219
|
return i18n.t(localeKeys.action["function"].bff);
|
|
132312
132220
|
},
|
|
132313
132221
|
isObject: true,
|
|
@@ -132322,7 +132230,7 @@ var MWASchemas, MWASchema, MWADefaultConfig;
|
|
|
132322
132230
|
var init_project4 = __esmMin(() => {
|
|
132323
132231
|
init_common();
|
|
132324
132232
|
init_common2();
|
|
132325
|
-
MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema
|
|
132233
|
+
MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema];
|
|
132326
132234
|
MWASchema = {
|
|
132327
132235
|
key: "mwa",
|
|
132328
132236
|
isObject: true,
|
|
@@ -132333,10 +132241,7 @@ var init_project4 = __esmMin(() => {
|
|
|
132333
132241
|
packageManager: PackageManager.Pnpm,
|
|
132334
132242
|
runWay: RunWay.No,
|
|
132335
132243
|
needModifyMWAConfig: BooleanConfig.NO,
|
|
132336
|
-
clientRoute: ClientRoute.SelfControlRoute
|
|
132337
|
-
disableStateManagement: BooleanConfig.NO,
|
|
132338
|
-
enableLess: BooleanConfig.NO,
|
|
132339
|
-
enableSass: BooleanConfig.NO
|
|
132244
|
+
clientRoute: ClientRoute.SelfControlRoute
|
|
132340
132245
|
};
|
|
132341
132246
|
});
|
|
132342
132247
|
var ServerSchemas, ServerSchema, MWADefaultServerConfig;
|
|
@@ -132346,7 +132251,7 @@ var init_server = __esmMin(() => {
|
|
|
132346
132251
|
ServerSchemas = [FrameworkSchema];
|
|
132347
132252
|
ServerSchema = {
|
|
132348
132253
|
key: "server",
|
|
132349
|
-
label: function
|
|
132254
|
+
label: function label17() {
|
|
132350
132255
|
return i18n.t(localeKeys.action.element.server);
|
|
132351
132256
|
},
|
|
132352
132257
|
isObject: true,
|
|
@@ -132471,7 +132376,7 @@ var init_mwa2 = __esmMin(() => {
|
|
|
132471
132376
|
MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
|
|
132472
132377
|
MWASpecialSchemaMap = _defineProperty({}, ActionFunction.Storybook, {
|
|
132473
132378
|
key: ActionFunction.Storybook,
|
|
132474
|
-
label: function
|
|
132379
|
+
label: function label18() {
|
|
132475
132380
|
return i18n.t(localeKeys.action["function"].mwa_storybook);
|
|
132476
132381
|
}
|
|
132477
132382
|
});
|
|
@@ -132480,7 +132385,7 @@ var init_mwa2 = __esmMin(() => {
|
|
|
132480
132385
|
isObject: true,
|
|
132481
132386
|
items: [{
|
|
132482
132387
|
key: "actionType",
|
|
132483
|
-
label: function
|
|
132388
|
+
label: function label19() {
|
|
132484
132389
|
return i18n.t(localeKeys.action.self);
|
|
132485
132390
|
},
|
|
132486
132391
|
type: ["string"],
|
|
@@ -132526,7 +132431,7 @@ var init_module2 = __esmMin(() => {
|
|
|
132526
132431
|
isObject: true,
|
|
132527
132432
|
items: [{
|
|
132528
132433
|
key: "actionType",
|
|
132529
|
-
label: function
|
|
132434
|
+
label: function label20() {
|
|
132530
132435
|
return i18n.t(localeKeys.action.self);
|
|
132531
132436
|
},
|
|
132532
132437
|
type: ["string"],
|
|
@@ -132624,12 +132529,7 @@ __export2(treeshaking_exports4, {
|
|
|
132624
132529
|
ClientRoute: () => ClientRoute,
|
|
132625
132530
|
ClientRouteSchema: () => ClientRouteSchema,
|
|
132626
132531
|
DependenceGenerator: () => DependenceGenerator,
|
|
132627
|
-
DisableStateManagementSchema: () => DisableStateManagementSchema,
|
|
132628
132532
|
ElectronGenerator: () => ElectronGenerator,
|
|
132629
|
-
EnableMWALessSchema: () => EnableMWALessSchema,
|
|
132630
|
-
EnableMWASassSchema: () => EnableMWASassSchema,
|
|
132631
|
-
EnableModuleLessSchema: () => EnableModuleLessSchema,
|
|
132632
|
-
EnableModuleSassSchema: () => EnableModuleSassSchema,
|
|
132633
132533
|
EntryGenerator: () => EntryGenerator,
|
|
132634
132534
|
EntrySchema: () => EntrySchema,
|
|
132635
132535
|
EntrySchemas: () => EntrySchemas,
|
|
@@ -132677,7 +132577,6 @@ __export2(treeshaking_exports4, {
|
|
|
132677
132577
|
MonorepoSchema: () => MonorepoSchema,
|
|
132678
132578
|
MonorepoSchemas: () => MonorepoSchemas,
|
|
132679
132579
|
NeedModifyMWAConfigSchema: () => NeedModifyMWAConfigSchema,
|
|
132680
|
-
NeedModifyModuleConfigSchema: () => NeedModifyModuleConfigSchema,
|
|
132681
132580
|
PackageManager: () => PackageManager,
|
|
132682
132581
|
PackageManagerName: () => PackageManagerName,
|
|
132683
132582
|
PackageManagerSchema: () => PackageManagerSchema,
|
|
@@ -132701,7 +132600,6 @@ __export2(treeshaking_exports4, {
|
|
|
132701
132600
|
getSolutionNameFromSubSolution: () => getSolutionNameFromSubSolution,
|
|
132702
132601
|
i18n: () => i18n,
|
|
132703
132602
|
localeKeys: () => localeKeys,
|
|
132704
|
-
moduleConfigWhenFunc: () => moduleConfigWhenFunc,
|
|
132705
132603
|
mwaConfigWhenFunc: () => mwaConfigWhenFunc
|
|
132706
132604
|
});
|
|
132707
132605
|
var _SolutionDefaultConfi, _SolutionSchemas, SolutionDefaultConfig, SolutionSchemas;
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "
|
|
14
|
+
"version": "2.3.3",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
17
17
|
"files": [
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"@modern-js/codesmith": "^1.5.0",
|
|
24
24
|
"@modern-js/codesmith-api-app": "^1.5.0",
|
|
25
25
|
"@modern-js/codesmith-api-json": "^1.5.0",
|
|
26
|
-
"@modern-js/generator-common": "
|
|
27
|
-
"@modern-js/generator-utils": "
|
|
28
|
-
"@modern-js/plugin-i18n": "
|
|
29
|
-
"@scripts/build": "1.
|
|
30
|
-
"@scripts/jest-config": "1.
|
|
26
|
+
"@modern-js/generator-common": "2.3.3",
|
|
27
|
+
"@modern-js/generator-utils": "2.3.3",
|
|
28
|
+
"@modern-js/plugin-i18n": "1.18.0",
|
|
29
|
+
"@scripts/build": "1.18.0",
|
|
30
|
+
"@scripts/jest-config": "1.18.0",
|
|
31
31
|
"@types/jest": "^27",
|
|
32
32
|
"@types/node": "^14",
|
|
33
33
|
"jest": "^27",
|