@modern-js/monorepo-generator 2.3.0 → 2.3.1
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 +1792 -619
- package/package.json +8 -8
- package/templates/base-template/package.json.handlebars +2 -1
package/dist/index.js
CHANGED
@@ -19498,8 +19498,8 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
19498
19498
|
if (result2 instanceof LazyWrapper) {
|
19499
19499
|
result2 = result2.value();
|
19500
19500
|
}
|
19501
|
-
return arrayReduce(actions, function(result3,
|
19502
|
-
return
|
19501
|
+
return arrayReduce(actions, function(result3, action2) {
|
19502
|
+
return action2.func.apply(action2.thisArg, arrayPush([result3], action2.args));
|
19503
19503
|
}, result2);
|
19504
19504
|
}
|
19505
19505
|
function baseXor(arrays, iteratee2, comparator) {
|
@@ -34669,17 +34669,17 @@ var require_logger = __commonJSMin((exports) => {
|
|
34669
34669
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
34670
34670
|
return;
|
34671
34671
|
}
|
34672
|
-
let
|
34672
|
+
let label25 = "";
|
34673
34673
|
let text = "";
|
34674
34674
|
const logType = this.types[type];
|
34675
34675
|
if (this.config.displayLabel && logType.label) {
|
34676
|
-
|
34676
|
+
label25 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
34677
34677
|
if (this.config.underlineLabel) {
|
34678
|
-
|
34678
|
+
label25 = underline(label25).padEnd(this.longestUnderlinedLabel.length + 1);
|
34679
34679
|
} else {
|
34680
|
-
|
34680
|
+
label25 = label25.padEnd(this.longestLabel.length + 1);
|
34681
34681
|
}
|
34682
|
-
|
34682
|
+
label25 = logType.color ? chalk_1.default[logType.color](label25) : label25;
|
34683
34683
|
}
|
34684
34684
|
if (message instanceof Error) {
|
34685
34685
|
if (message.stack) {
|
@@ -34695,15 +34695,15 @@ ${grey(rest.join("\n"))}`;
|
|
34695
34695
|
if (logType.level === "warn" || logType.level === "error") {
|
34696
34696
|
this.retainLog(type, text);
|
34697
34697
|
}
|
34698
|
-
const log =
|
34698
|
+
const log = label25.length > 0 ? `${label25} ${text}` : text;
|
34699
34699
|
console.log(log, ...args);
|
34700
34700
|
}
|
34701
34701
|
getLongestLabel() {
|
34702
34702
|
let longestLabel = "";
|
34703
34703
|
Object.keys(this.types).forEach((type) => {
|
34704
|
-
const { label:
|
34705
|
-
if (
|
34706
|
-
longestLabel =
|
34704
|
+
const { label: label25 = "" } = this.types[type];
|
34705
|
+
if (label25.length > longestLabel.length) {
|
34706
|
+
longestLabel = label25;
|
34707
34707
|
}
|
34708
34708
|
});
|
34709
34709
|
return longestLabel;
|
@@ -46969,9 +46969,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
46969
46969
|
}();
|
46970
46970
|
exports2.BlockStatement = BlockStatement;
|
46971
46971
|
var BreakStatement = function() {
|
46972
|
-
function BreakStatement2(
|
46972
|
+
function BreakStatement2(label25) {
|
46973
46973
|
this.type = syntax_1.Syntax.BreakStatement;
|
46974
|
-
this.label =
|
46974
|
+
this.label = label25;
|
46975
46975
|
}
|
46976
46976
|
return BreakStatement2;
|
46977
46977
|
}();
|
@@ -47043,9 +47043,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
47043
47043
|
}();
|
47044
47044
|
exports2.ConditionalExpression = ConditionalExpression;
|
47045
47045
|
var ContinueStatement = function() {
|
47046
|
-
function ContinueStatement2(
|
47046
|
+
function ContinueStatement2(label25) {
|
47047
47047
|
this.type = syntax_1.Syntax.ContinueStatement;
|
47048
|
-
this.label =
|
47048
|
+
this.label = label25;
|
47049
47049
|
}
|
47050
47050
|
return ContinueStatement2;
|
47051
47051
|
}();
|
@@ -47236,9 +47236,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
47236
47236
|
}();
|
47237
47237
|
exports2.ImportSpecifier = ImportSpecifier;
|
47238
47238
|
var LabeledStatement = function() {
|
47239
|
-
function LabeledStatement2(
|
47239
|
+
function LabeledStatement2(label25, body) {
|
47240
47240
|
this.type = syntax_1.Syntax.LabeledStatement;
|
47241
|
-
this.label =
|
47241
|
+
this.label = label25;
|
47242
47242
|
this.body = body;
|
47243
47243
|
}
|
47244
47244
|
return LabeledStatement2;
|
@@ -49385,38 +49385,38 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
49385
49385
|
Parser2.prototype.parseContinueStatement = function() {
|
49386
49386
|
var node = this.createNode();
|
49387
49387
|
this.expectKeyword("continue");
|
49388
|
-
var
|
49388
|
+
var label25 = null;
|
49389
49389
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
49390
49390
|
var id = this.parseVariableIdentifier();
|
49391
|
-
|
49391
|
+
label25 = id;
|
49392
49392
|
var key = "$" + id.name;
|
49393
49393
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
49394
49394
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
49395
49395
|
}
|
49396
49396
|
}
|
49397
49397
|
this.consumeSemicolon();
|
49398
|
-
if (
|
49398
|
+
if (label25 === null && !this.context.inIteration) {
|
49399
49399
|
this.throwError(messages_1.Messages.IllegalContinue);
|
49400
49400
|
}
|
49401
|
-
return this.finalize(node, new Node.ContinueStatement(
|
49401
|
+
return this.finalize(node, new Node.ContinueStatement(label25));
|
49402
49402
|
};
|
49403
49403
|
Parser2.prototype.parseBreakStatement = function() {
|
49404
49404
|
var node = this.createNode();
|
49405
49405
|
this.expectKeyword("break");
|
49406
|
-
var
|
49406
|
+
var label25 = null;
|
49407
49407
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
49408
49408
|
var id = this.parseVariableIdentifier();
|
49409
49409
|
var key = "$" + id.name;
|
49410
49410
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
49411
49411
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
49412
49412
|
}
|
49413
|
-
|
49413
|
+
label25 = id;
|
49414
49414
|
}
|
49415
49415
|
this.consumeSemicolon();
|
49416
|
-
if (
|
49416
|
+
if (label25 === null && !this.context.inIteration && !this.context.inSwitch) {
|
49417
49417
|
this.throwError(messages_1.Messages.IllegalBreak);
|
49418
49418
|
}
|
49419
|
-
return this.finalize(node, new Node.BreakStatement(
|
49419
|
+
return this.finalize(node, new Node.BreakStatement(label25));
|
49420
49420
|
};
|
49421
49421
|
Parser2.prototype.parseReturnStatement = function() {
|
49422
49422
|
if (!this.context.inFunctionBody) {
|
@@ -52895,7 +52895,7 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
52895
52895
|
splice(...args) {
|
52896
52896
|
const { length } = this;
|
52897
52897
|
const ret = super.splice(...args);
|
52898
|
-
let [begin, deleteCount, ...
|
52898
|
+
let [begin, deleteCount, ...items5] = args;
|
52899
52899
|
if (begin < 0) {
|
52900
52900
|
begin += length;
|
52901
52901
|
}
|
@@ -52906,7 +52906,7 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
52906
52906
|
}
|
52907
52907
|
const {
|
52908
52908
|
length: item_length
|
52909
|
-
} =
|
52909
|
+
} = items5;
|
52910
52910
|
const offset = item_length - deleteCount;
|
52911
52911
|
const start = begin + deleteCount;
|
52912
52912
|
const count = length - start;
|
@@ -52933,12 +52933,12 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
52933
52933
|
move_comments(array, this, begin, before - begin, -begin);
|
52934
52934
|
return array;
|
52935
52935
|
}
|
52936
|
-
unshift(...
|
52936
|
+
unshift(...items5) {
|
52937
52937
|
const { length } = this;
|
52938
|
-
const ret = super.unshift(...
|
52938
|
+
const ret = super.unshift(...items5);
|
52939
52939
|
const {
|
52940
52940
|
length: items_length
|
52941
|
-
} =
|
52941
|
+
} = items5;
|
52942
52942
|
if (items_length > 0) {
|
52943
52943
|
move_comments(this, this, 0, length, items_length, true);
|
52944
52944
|
}
|
@@ -52961,14 +52961,14 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
52961
52961
|
remove_comments(this, this.length);
|
52962
52962
|
return ret;
|
52963
52963
|
}
|
52964
|
-
concat(...
|
52964
|
+
concat(...items5) {
|
52965
52965
|
let { length } = this;
|
52966
|
-
const ret = super.concat(...
|
52967
|
-
if (!
|
52966
|
+
const ret = super.concat(...items5);
|
52967
|
+
if (!items5.length) {
|
52968
52968
|
return ret;
|
52969
52969
|
}
|
52970
52970
|
move_comments(ret, this, 0, this.length, 0);
|
52971
|
-
|
52971
|
+
items5.forEach((item) => {
|
52972
52972
|
const prev = length;
|
52973
52973
|
length += isArray(item) ? item.length : 1;
|
52974
52974
|
if (!(item instanceof CommentArray)) {
|
@@ -55263,18 +55263,18 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
55263
55263
|
}
|
55264
55264
|
return token;
|
55265
55265
|
}
|
55266
|
-
var symbol, preErrorSymbol, state,
|
55266
|
+
var symbol, preErrorSymbol, state, action2, a, r, yyval = {}, p, len, newState, expected;
|
55267
55267
|
while (true) {
|
55268
55268
|
state = stack[stack.length - 1];
|
55269
55269
|
if (this.defaultActions[state]) {
|
55270
|
-
|
55270
|
+
action2 = this.defaultActions[state];
|
55271
55271
|
} else {
|
55272
55272
|
if (symbol === null || typeof symbol == "undefined") {
|
55273
55273
|
symbol = lex();
|
55274
55274
|
}
|
55275
|
-
|
55275
|
+
action2 = table[state] && table[state][symbol];
|
55276
55276
|
}
|
55277
|
-
if (typeof
|
55277
|
+
if (typeof action2 === "undefined" || !action2.length || !action2[0]) {
|
55278
55278
|
var errStr = "";
|
55279
55279
|
if (!recovering) {
|
55280
55280
|
expected = [];
|
@@ -55290,15 +55290,15 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
55290
55290
|
this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
|
55291
55291
|
}
|
55292
55292
|
}
|
55293
|
-
if (
|
55293
|
+
if (action2[0] instanceof Array && action2.length > 1) {
|
55294
55294
|
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
55295
55295
|
}
|
55296
|
-
switch (
|
55296
|
+
switch (action2[0]) {
|
55297
55297
|
case 1:
|
55298
55298
|
stack.push(symbol);
|
55299
55299
|
vstack.push(this.lexer.yytext);
|
55300
55300
|
lstack.push(this.lexer.yylloc);
|
55301
|
-
stack.push(
|
55301
|
+
stack.push(action2[1]);
|
55302
55302
|
symbol = null;
|
55303
55303
|
if (!preErrorSymbol) {
|
55304
55304
|
yyleng = this.lexer.yyleng;
|
@@ -55313,13 +55313,13 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
55313
55313
|
}
|
55314
55314
|
break;
|
55315
55315
|
case 2:
|
55316
|
-
len = this.productions_[
|
55316
|
+
len = this.productions_[action2[1]][1];
|
55317
55317
|
yyval.$ = vstack[vstack.length - len];
|
55318
55318
|
yyval._$ = { first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column };
|
55319
55319
|
if (ranges) {
|
55320
55320
|
yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
|
55321
55321
|
}
|
55322
|
-
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy,
|
55322
|
+
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action2[1], vstack, lstack);
|
55323
55323
|
if (typeof r !== "undefined") {
|
55324
55324
|
return r;
|
55325
55325
|
}
|
@@ -55328,7 +55328,7 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
55328
55328
|
vstack = vstack.slice(0, -1 * len);
|
55329
55329
|
lstack = lstack.slice(0, -1 * len);
|
55330
55330
|
}
|
55331
|
-
stack.push(this.productions_[
|
55331
|
+
stack.push(this.productions_[action2[1]][0]);
|
55332
55332
|
vstack.push(yyval.$);
|
55333
55333
|
lstack.push(yyval._$);
|
55334
55334
|
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
@@ -58793,11 +58793,11 @@ var require_javascript_compiler = __commonJSMin((exports, module2) => {
|
|
58793
58793
|
var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams);
|
58794
58794
|
this.push(functionCall);
|
58795
58795
|
},
|
58796
|
-
itemsSeparatedBy: function itemsSeparatedBy(
|
58796
|
+
itemsSeparatedBy: function itemsSeparatedBy(items5, separator) {
|
58797
58797
|
var result = [];
|
58798
|
-
result.push(
|
58799
|
-
for (var i = 1; i <
|
58800
|
-
result.push(separator,
|
58798
|
+
result.push(items5[0]);
|
58799
|
+
for (var i = 1; i < items5.length; i++) {
|
58800
|
+
result.push(separator, items5[i]);
|
58801
58801
|
}
|
58802
58802
|
return result;
|
58803
58803
|
},
|
@@ -64172,8 +64172,8 @@ var require_AsapAction = __commonJSMin((exports) => {
|
|
64172
64172
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
64173
64173
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
64174
64174
|
}
|
64175
|
-
if (!scheduler.actions.some(function(
|
64176
|
-
return
|
64175
|
+
if (!scheduler.actions.some(function(action2) {
|
64176
|
+
return action2.id === id;
|
64177
64177
|
})) {
|
64178
64178
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
64179
64179
|
scheduler._scheduled = void 0;
|
@@ -64246,23 +64246,23 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
|
|
64246
64246
|
_this._scheduled = void 0;
|
64247
64247
|
return _this;
|
64248
64248
|
}
|
64249
|
-
AsyncScheduler2.prototype.flush = function(
|
64249
|
+
AsyncScheduler2.prototype.flush = function(action2) {
|
64250
64250
|
var actions = this.actions;
|
64251
64251
|
if (this._active) {
|
64252
|
-
actions.push(
|
64252
|
+
actions.push(action2);
|
64253
64253
|
return;
|
64254
64254
|
}
|
64255
64255
|
var error;
|
64256
64256
|
this._active = true;
|
64257
64257
|
do {
|
64258
|
-
if (error =
|
64258
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
64259
64259
|
break;
|
64260
64260
|
}
|
64261
|
-
} while (
|
64261
|
+
} while (action2 = actions.shift());
|
64262
64262
|
this._active = false;
|
64263
64263
|
if (error) {
|
64264
|
-
while (
|
64265
|
-
|
64264
|
+
while (action2 = actions.shift()) {
|
64265
|
+
action2.unsubscribe();
|
64266
64266
|
}
|
64267
64267
|
throw error;
|
64268
64268
|
}
|
@@ -64302,22 +64302,22 @@ var require_AsapScheduler = __commonJSMin((exports) => {
|
|
64302
64302
|
function AsapScheduler2() {
|
64303
64303
|
return _super !== null && _super.apply(this, arguments) || this;
|
64304
64304
|
}
|
64305
|
-
AsapScheduler2.prototype.flush = function(
|
64305
|
+
AsapScheduler2.prototype.flush = function(action2) {
|
64306
64306
|
this._active = true;
|
64307
64307
|
var flushId = this._scheduled;
|
64308
64308
|
this._scheduled = void 0;
|
64309
64309
|
var actions = this.actions;
|
64310
64310
|
var error;
|
64311
|
-
|
64311
|
+
action2 = action2 || actions.shift();
|
64312
64312
|
do {
|
64313
|
-
if (error =
|
64313
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
64314
64314
|
break;
|
64315
64315
|
}
|
64316
|
-
} while ((
|
64316
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
64317
64317
|
this._active = false;
|
64318
64318
|
if (error) {
|
64319
|
-
while ((
|
64320
|
-
|
64319
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
64320
|
+
action2.unsubscribe();
|
64321
64321
|
}
|
64322
64322
|
throw error;
|
64323
64323
|
}
|
@@ -64504,8 +64504,8 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
|
|
64504
64504
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
64505
64505
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
64506
64506
|
}
|
64507
|
-
if (!scheduler.actions.some(function(
|
64508
|
-
return
|
64507
|
+
if (!scheduler.actions.some(function(action2) {
|
64508
|
+
return action2.id === id;
|
64509
64509
|
})) {
|
64510
64510
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
64511
64511
|
scheduler._scheduled = void 0;
|
@@ -64547,22 +64547,22 @@ var require_AnimationFrameScheduler = __commonJSMin((exports) => {
|
|
64547
64547
|
function AnimationFrameScheduler2() {
|
64548
64548
|
return _super !== null && _super.apply(this, arguments) || this;
|
64549
64549
|
}
|
64550
|
-
AnimationFrameScheduler2.prototype.flush = function(
|
64550
|
+
AnimationFrameScheduler2.prototype.flush = function(action2) {
|
64551
64551
|
this._active = true;
|
64552
64552
|
var flushId = this._scheduled;
|
64553
64553
|
this._scheduled = void 0;
|
64554
64554
|
var actions = this.actions;
|
64555
64555
|
var error;
|
64556
|
-
|
64556
|
+
action2 = action2 || actions.shift();
|
64557
64557
|
do {
|
64558
|
-
if (error =
|
64558
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
64559
64559
|
break;
|
64560
64560
|
}
|
64561
|
-
} while ((
|
64561
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
64562
64562
|
this._active = false;
|
64563
64563
|
if (error) {
|
64564
|
-
while ((
|
64565
|
-
|
64564
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
64565
|
+
action2.unsubscribe();
|
64566
64566
|
}
|
64567
64567
|
throw error;
|
64568
64568
|
}
|
@@ -64628,17 +64628,17 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
64628
64628
|
VirtualTimeScheduler2.prototype.flush = function() {
|
64629
64629
|
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
64630
64630
|
var error;
|
64631
|
-
var
|
64632
|
-
while ((
|
64631
|
+
var action2;
|
64632
|
+
while ((action2 = actions[0]) && action2.delay <= maxFrames) {
|
64633
64633
|
actions.shift();
|
64634
|
-
this.frame =
|
64635
|
-
if (error =
|
64634
|
+
this.frame = action2.delay;
|
64635
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
64636
64636
|
break;
|
64637
64637
|
}
|
64638
64638
|
}
|
64639
64639
|
if (error) {
|
64640
|
-
while (
|
64641
|
-
|
64640
|
+
while (action2 = actions.shift()) {
|
64641
|
+
action2.unsubscribe();
|
64642
64642
|
}
|
64643
64643
|
throw error;
|
64644
64644
|
}
|
@@ -64670,9 +64670,9 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
64670
64670
|
return _super.prototype.schedule.call(this, state, delay);
|
64671
64671
|
}
|
64672
64672
|
this.active = false;
|
64673
|
-
var
|
64674
|
-
this.add(
|
64675
|
-
return
|
64673
|
+
var action2 = new VirtualAction2(this.scheduler, this.work);
|
64674
|
+
this.add(action2);
|
64675
|
+
return action2.schedule(state, delay);
|
64676
64676
|
} else {
|
64677
64677
|
return Subscription_1.Subscription.EMPTY;
|
64678
64678
|
}
|
@@ -78382,15 +78382,15 @@ var require_ora2 = __commonJSMin((exports, module2) => {
|
|
78382
78382
|
return new Ora(options3);
|
78383
78383
|
};
|
78384
78384
|
module2.exports = oraFactory;
|
78385
|
-
module2.exports.promise = (
|
78386
|
-
if (typeof
|
78385
|
+
module2.exports.promise = (action2, options3) => {
|
78386
|
+
if (typeof action2.then !== "function") {
|
78387
78387
|
throw new TypeError("Parameter `action` must be a Promise");
|
78388
78388
|
}
|
78389
78389
|
const spinner = new Ora(options3);
|
78390
78390
|
spinner.start();
|
78391
78391
|
(async () => {
|
78392
78392
|
try {
|
78393
|
-
await
|
78393
|
+
await action2;
|
78394
78394
|
spinner.succeed();
|
78395
78395
|
} catch {
|
78396
78396
|
spinner.fail();
|
@@ -78571,13 +78571,13 @@ var require_base3 = __commonJSMin((exports, module2) => {
|
|
78571
78571
|
}
|
78572
78572
|
handleSubmitEvents(submit) {
|
78573
78573
|
const self2 = this;
|
78574
|
-
const
|
78574
|
+
const validate4 = runAsync(this.opt.validate);
|
78575
78575
|
const asyncFilter = runAsync(this.opt.filter);
|
78576
78576
|
const validation = submit.pipe(flatMap((value) => {
|
78577
78577
|
this.startSpinner(value, this.opt.filteringText);
|
78578
78578
|
return asyncFilter(value, self2.answers).then((filteredValue) => {
|
78579
78579
|
this.startSpinner(filteredValue, this.opt.validatingText);
|
78580
|
-
return
|
78580
|
+
return validate4(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
|
78581
78581
|
}, (err) => ({ isValid: err }));
|
78582
78582
|
}), share());
|
78583
78583
|
const success = validation.pipe(filter3((state) => state.isValid === true), take(1));
|
@@ -98063,8 +98063,8 @@ var require_AsapAction2 = __commonJSMin((exports) => {
|
|
98063
98063
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
98064
98064
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
98065
98065
|
}
|
98066
|
-
if (!scheduler.actions.some(function(
|
98067
|
-
return
|
98066
|
+
if (!scheduler.actions.some(function(action2) {
|
98067
|
+
return action2.id === id;
|
98068
98068
|
})) {
|
98069
98069
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
98070
98070
|
scheduler._scheduled = void 0;
|
@@ -98137,23 +98137,23 @@ var require_AsyncScheduler2 = __commonJSMin((exports) => {
|
|
98137
98137
|
_this._scheduled = void 0;
|
98138
98138
|
return _this;
|
98139
98139
|
}
|
98140
|
-
AsyncScheduler2.prototype.flush = function(
|
98140
|
+
AsyncScheduler2.prototype.flush = function(action2) {
|
98141
98141
|
var actions = this.actions;
|
98142
98142
|
if (this._active) {
|
98143
|
-
actions.push(
|
98143
|
+
actions.push(action2);
|
98144
98144
|
return;
|
98145
98145
|
}
|
98146
98146
|
var error;
|
98147
98147
|
this._active = true;
|
98148
98148
|
do {
|
98149
|
-
if (error =
|
98149
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
98150
98150
|
break;
|
98151
98151
|
}
|
98152
|
-
} while (
|
98152
|
+
} while (action2 = actions.shift());
|
98153
98153
|
this._active = false;
|
98154
98154
|
if (error) {
|
98155
|
-
while (
|
98156
|
-
|
98155
|
+
while (action2 = actions.shift()) {
|
98156
|
+
action2.unsubscribe();
|
98157
98157
|
}
|
98158
98158
|
throw error;
|
98159
98159
|
}
|
@@ -98193,22 +98193,22 @@ var require_AsapScheduler2 = __commonJSMin((exports) => {
|
|
98193
98193
|
function AsapScheduler2() {
|
98194
98194
|
return _super !== null && _super.apply(this, arguments) || this;
|
98195
98195
|
}
|
98196
|
-
AsapScheduler2.prototype.flush = function(
|
98196
|
+
AsapScheduler2.prototype.flush = function(action2) {
|
98197
98197
|
this._active = true;
|
98198
98198
|
var flushId = this._scheduled;
|
98199
98199
|
this._scheduled = void 0;
|
98200
98200
|
var actions = this.actions;
|
98201
98201
|
var error;
|
98202
|
-
|
98202
|
+
action2 = action2 || actions.shift();
|
98203
98203
|
do {
|
98204
|
-
if (error =
|
98204
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
98205
98205
|
break;
|
98206
98206
|
}
|
98207
|
-
} while ((
|
98207
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
98208
98208
|
this._active = false;
|
98209
98209
|
if (error) {
|
98210
|
-
while ((
|
98211
|
-
|
98210
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
98211
|
+
action2.unsubscribe();
|
98212
98212
|
}
|
98213
98213
|
throw error;
|
98214
98214
|
}
|
@@ -98395,8 +98395,8 @@ var require_AnimationFrameAction2 = __commonJSMin((exports) => {
|
|
98395
98395
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
98396
98396
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
98397
98397
|
}
|
98398
|
-
if (!scheduler.actions.some(function(
|
98399
|
-
return
|
98398
|
+
if (!scheduler.actions.some(function(action2) {
|
98399
|
+
return action2.id === id;
|
98400
98400
|
})) {
|
98401
98401
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
98402
98402
|
scheduler._scheduled = void 0;
|
@@ -98438,22 +98438,22 @@ var require_AnimationFrameScheduler2 = __commonJSMin((exports) => {
|
|
98438
98438
|
function AnimationFrameScheduler2() {
|
98439
98439
|
return _super !== null && _super.apply(this, arguments) || this;
|
98440
98440
|
}
|
98441
|
-
AnimationFrameScheduler2.prototype.flush = function(
|
98441
|
+
AnimationFrameScheduler2.prototype.flush = function(action2) {
|
98442
98442
|
this._active = true;
|
98443
98443
|
var flushId = this._scheduled;
|
98444
98444
|
this._scheduled = void 0;
|
98445
98445
|
var actions = this.actions;
|
98446
98446
|
var error;
|
98447
|
-
|
98447
|
+
action2 = action2 || actions.shift();
|
98448
98448
|
do {
|
98449
|
-
if (error =
|
98449
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
98450
98450
|
break;
|
98451
98451
|
}
|
98452
|
-
} while ((
|
98452
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
98453
98453
|
this._active = false;
|
98454
98454
|
if (error) {
|
98455
|
-
while ((
|
98456
|
-
|
98455
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
98456
|
+
action2.unsubscribe();
|
98457
98457
|
}
|
98458
98458
|
throw error;
|
98459
98459
|
}
|
@@ -98519,17 +98519,17 @@ var require_VirtualTimeScheduler2 = __commonJSMin((exports) => {
|
|
98519
98519
|
VirtualTimeScheduler2.prototype.flush = function() {
|
98520
98520
|
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
98521
98521
|
var error;
|
98522
|
-
var
|
98523
|
-
while ((
|
98522
|
+
var action2;
|
98523
|
+
while ((action2 = actions[0]) && action2.delay <= maxFrames) {
|
98524
98524
|
actions.shift();
|
98525
|
-
this.frame =
|
98526
|
-
if (error =
|
98525
|
+
this.frame = action2.delay;
|
98526
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
98527
98527
|
break;
|
98528
98528
|
}
|
98529
98529
|
}
|
98530
98530
|
if (error) {
|
98531
|
-
while (
|
98532
|
-
|
98531
|
+
while (action2 = actions.shift()) {
|
98532
|
+
action2.unsubscribe();
|
98533
98533
|
}
|
98534
98534
|
throw error;
|
98535
98535
|
}
|
@@ -98561,9 +98561,9 @@ var require_VirtualTimeScheduler2 = __commonJSMin((exports) => {
|
|
98561
98561
|
return _super.prototype.schedule.call(this, state, delay);
|
98562
98562
|
}
|
98563
98563
|
this.active = false;
|
98564
|
-
var
|
98565
|
-
this.add(
|
98566
|
-
return
|
98564
|
+
var action2 = new VirtualAction2(this.scheduler, this.work);
|
98565
|
+
this.add(action2);
|
98566
|
+
return action2.schedule(state, delay);
|
98567
98567
|
} else {
|
98568
98568
|
return Subscription_1.Subscription.EMPTY;
|
98569
98569
|
}
|
@@ -105276,7 +105276,7 @@ var init_stateField = __esmMin(() => {
|
|
105276
105276
|
if (typeof value.action === "function") {
|
105277
105277
|
schema.state.value = {
|
105278
105278
|
effectedByFields: value.effectedByFields,
|
105279
|
-
action: function
|
105279
|
+
action: function action2(data, lastValue) {
|
105280
105280
|
return value.action(data, lastValue || initValue);
|
105281
105281
|
}
|
105282
105282
|
};
|
@@ -105594,8 +105594,8 @@ var init_checkSchema = __esmMin(() => {
|
|
105594
105594
|
};
|
105595
105595
|
checkRepeatItems = function checkRepeatItems2(schema, extra) {
|
105596
105596
|
if (schema.items && schema.items.length > 0) {
|
105597
|
-
var
|
105598
|
-
var keys =
|
105597
|
+
var items5 = getItems(schema, {}, extra);
|
105598
|
+
var keys = items5.map(function(x) {
|
105599
105599
|
return x.key;
|
105600
105600
|
});
|
105601
105601
|
var tmp = [];
|
@@ -105777,9 +105777,9 @@ var init_baseReader = __esmMin(() => {
|
|
105777
105777
|
initValues[_schema.key] = _this.getSchemaDefaultValue(_schema, brothers, isRoot);
|
105778
105778
|
}
|
105779
105779
|
if (_schema.items) {
|
105780
|
-
var
|
105781
|
-
|
105782
|
-
return readDefaultValue2(each,
|
105780
|
+
var items5 = getItems(_schema, _this.data, _this.extra);
|
105781
|
+
items5.forEach(function(each) {
|
105782
|
+
return readDefaultValue2(each, items5.map(function(x) {
|
105783
105783
|
return x.key;
|
105784
105784
|
}), false);
|
105785
105785
|
});
|
@@ -105797,7 +105797,7 @@ var init_baseReader = __esmMin(() => {
|
|
105797
105797
|
if (!isEffectedValue(val)) {
|
105798
105798
|
return val;
|
105799
105799
|
}
|
105800
|
-
var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields,
|
105800
|
+
var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields, action2 = _ref.action, rest = _objectWithoutProperties(_ref, _excluded);
|
105801
105801
|
if (isRoot) {
|
105802
105802
|
throw Error("[".concat(schema.key, "] top level should not have effects"));
|
105803
105803
|
}
|
@@ -105809,7 +105809,7 @@ var init_baseReader = __esmMin(() => {
|
|
105809
105809
|
}
|
105810
105810
|
return _objectSpread2({
|
105811
105811
|
effectedByFields: curNodeEffectedByFields,
|
105812
|
-
action
|
105812
|
+
action: action2
|
105813
105813
|
}, rest);
|
105814
105814
|
};
|
105815
105815
|
return handleEffects(state.value);
|
@@ -106793,7 +106793,7 @@ var require_utils8 = __commonJSMin((exports) => {
|
|
106793
106793
|
}, choices);
|
106794
106794
|
};
|
106795
106795
|
exports.getQuestion = getQuestion;
|
106796
|
-
var
|
106796
|
+
var when8 = (schema, answers, extra) => {
|
106797
106797
|
if (schema.when && typeof schema.when === "function") {
|
106798
106798
|
return schema.when(answers, extra);
|
106799
106799
|
}
|
@@ -106819,7 +106819,7 @@ var require_utils8 = __commonJSMin((exports) => {
|
|
106819
106819
|
});
|
106820
106820
|
return (answers) => {
|
106821
106821
|
try {
|
106822
|
-
if (!
|
106822
|
+
if (!when8(schema, answers, nodeInfo.extra)) {
|
106823
106823
|
return Promise.resolve(true);
|
106824
106824
|
}
|
106825
106825
|
const question = getQuestion({
|
@@ -107477,18 +107477,18 @@ var require_transformSchema = __commonJSMin((exports) => {
|
|
107477
107477
|
schemaItem.label = schemaItem.state.cliLabel;
|
107478
107478
|
}
|
107479
107479
|
const {
|
107480
|
-
when:
|
107481
|
-
validate
|
107480
|
+
when: when8,
|
107481
|
+
validate: validate4
|
107482
107482
|
} = schemaItem;
|
107483
107483
|
schemaItem.when = (values, extra) => {
|
107484
107484
|
if (!(0, _isUndefined2.default)(configValue[schemaItem.key])) {
|
107485
107485
|
return false;
|
107486
107486
|
}
|
107487
|
-
return
|
107487
|
+
return when8 ? when8(values, extra) : true;
|
107488
107488
|
};
|
107489
107489
|
schemaItem.validate = async (value, data, extra) => {
|
107490
|
-
if (
|
107491
|
-
const result = await
|
107490
|
+
if (validate4) {
|
107491
|
+
const result = await validate4(value, data, extra);
|
107492
107492
|
if (!result.success) {
|
107493
107493
|
return result;
|
107494
107494
|
}
|
@@ -109890,6 +109890,1355 @@ var init_treeshaking3 = __esmMin(() => {
|
|
109890
109890
|
return I18n3;
|
109891
109891
|
}();
|
109892
109892
|
});
|
109893
|
+
var ZH_LOCALE;
|
109894
|
+
var init_zh = __esmMin(() => {
|
109895
|
+
ZH_LOCALE = {
|
109896
|
+
solution: {
|
109897
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
109898
|
+
mwa: "\u5E94\u7528",
|
109899
|
+
module: "\u6A21\u5757",
|
109900
|
+
monorepo: "Monorepo",
|
109901
|
+
custom: "\u81EA\u5B9A\u4E49",
|
109902
|
+
"default": "\u9ED8\u8BA4"
|
109903
|
+
},
|
109904
|
+
scenes: {
|
109905
|
+
self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
|
109906
|
+
},
|
109907
|
+
sub_solution: {
|
109908
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
109909
|
+
mwa: "\u5E94\u7528",
|
109910
|
+
mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
|
109911
|
+
module: "\u6A21\u5757",
|
109912
|
+
inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
|
109913
|
+
},
|
109914
|
+
action: {
|
109915
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
|
109916
|
+
"function": {
|
109917
|
+
self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
|
109918
|
+
tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
|
109919
|
+
less: "\u542F\u7528 Less \u652F\u6301",
|
109920
|
+
sass: "\u542F\u7528 Sass \u652F\u6301",
|
109921
|
+
bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
|
109922
|
+
micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
|
109923
|
+
electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
|
109924
|
+
i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
|
109925
|
+
test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
|
109926
|
+
e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
|
109927
|
+
doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
|
109928
|
+
storybook: "\u542F\u7528\u300CStorybook\u300D",
|
109929
|
+
runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
|
109930
|
+
mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
|
109931
|
+
ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
|
109932
|
+
polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
|
109933
|
+
proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
|
109934
|
+
},
|
109935
|
+
element: {
|
109936
|
+
self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
|
109937
|
+
entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
|
109938
|
+
server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
|
109939
|
+
},
|
109940
|
+
refactor: {
|
109941
|
+
self: "\u81EA\u52A8\u91CD\u6784",
|
109942
|
+
bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
|
109943
|
+
}
|
109944
|
+
},
|
109945
|
+
"boolean": {
|
109946
|
+
yes: "\u662F",
|
109947
|
+
no: "\u5426"
|
109948
|
+
},
|
109949
|
+
language: {
|
109950
|
+
self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
|
109951
|
+
},
|
109952
|
+
packageManager: {
|
109953
|
+
self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
|
109954
|
+
},
|
109955
|
+
runWay: {
|
109956
|
+
self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
|
109957
|
+
no: "\u4E0D\u9700\u8981",
|
109958
|
+
electron: "Electron"
|
109959
|
+
},
|
109960
|
+
needModifyConfig: {
|
109961
|
+
self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
109962
|
+
enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
|
109963
|
+
enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
|
109964
|
+
},
|
109965
|
+
entry: {
|
109966
|
+
name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
|
109967
|
+
no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
109968
|
+
no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
|
109969
|
+
needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
109970
|
+
disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
|
109971
|
+
clientRoute: {
|
109972
|
+
self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
|
109973
|
+
selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
|
109974
|
+
conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
|
109975
|
+
no: "\u4E0D\u542F\u7528"
|
109976
|
+
}
|
109977
|
+
},
|
109978
|
+
packageName: {
|
109979
|
+
self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
|
109980
|
+
sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
|
109981
|
+
no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
|
109982
|
+
},
|
109983
|
+
packagePath: {
|
109984
|
+
self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
|
109985
|
+
no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
109986
|
+
format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
|
109987
|
+
},
|
109988
|
+
framework: {
|
109989
|
+
self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
|
109990
|
+
egg: "Egg",
|
109991
|
+
express: "Express",
|
109992
|
+
koa: "Koa",
|
109993
|
+
nest: "Nest"
|
109994
|
+
},
|
109995
|
+
bff: {
|
109996
|
+
bffType: {
|
109997
|
+
self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
|
109998
|
+
func: "\u51FD\u6570\u6A21\u5F0F",
|
109999
|
+
framework: "\u6846\u67B6\u6A21\u5F0F"
|
110000
|
+
}
|
110001
|
+
}
|
110002
|
+
};
|
110003
|
+
});
|
110004
|
+
var EN_LOCALE;
|
110005
|
+
var init_en = __esmMin(() => {
|
110006
|
+
EN_LOCALE = {
|
110007
|
+
solution: {
|
110008
|
+
self: "Please select the solution you want to create",
|
110009
|
+
mwa: "MWA Solution",
|
110010
|
+
module: "Module Solution",
|
110011
|
+
monorepo: "Monorepo Solution",
|
110012
|
+
custom: "Custom Solution",
|
110013
|
+
"default": "Default"
|
110014
|
+
},
|
110015
|
+
scenes: {
|
110016
|
+
self: "Please select the scene you want to create"
|
110017
|
+
},
|
110018
|
+
sub_solution: {
|
110019
|
+
self: "Please select the solution you want to create",
|
110020
|
+
mwa: "MWA Solution",
|
110021
|
+
mwa_test: "MWA Solution(Test)",
|
110022
|
+
module: "Module Solution",
|
110023
|
+
inner_module: "Module Solution(Inner)",
|
110024
|
+
monorepo: "Monorepo Solution"
|
110025
|
+
},
|
110026
|
+
action: {
|
110027
|
+
self: "Action",
|
110028
|
+
"function": {
|
110029
|
+
self: "Enable features",
|
110030
|
+
tailwindcss: "Enable Tailwind CSS",
|
110031
|
+
less: "Enable Less",
|
110032
|
+
sass: "Enable Sass",
|
110033
|
+
bff: "Enable BFF",
|
110034
|
+
micro_frontend: "Enable Micro Frontend",
|
110035
|
+
electron: "Enable Electron",
|
110036
|
+
i18n: "Enable Internationalization (i18n)",
|
110037
|
+
test: "Enable Unit Test / Integration Test",
|
110038
|
+
e2e_test: "Enable E2E Test",
|
110039
|
+
doc: "Enable Document Station",
|
110040
|
+
storybook: "Enable Storybook",
|
110041
|
+
runtime_api: "Enable Runtime API",
|
110042
|
+
mwa_storybook: "Enable Visual Testing (Storybook)",
|
110043
|
+
ssg: "Enable SSG",
|
110044
|
+
polyfill: "Enable UA-based Polyfill Feature",
|
110045
|
+
proxy: "Enable Global Proxy"
|
110046
|
+
},
|
110047
|
+
element: {
|
110048
|
+
self: "Create project element",
|
110049
|
+
entry: 'New "entry"',
|
110050
|
+
server: 'New "Server Custom" source code directory'
|
110051
|
+
},
|
110052
|
+
refactor: {
|
110053
|
+
self: "Automatic refactor",
|
110054
|
+
bff_to_app: "Transform BFF to frame mode"
|
110055
|
+
}
|
110056
|
+
},
|
110057
|
+
"boolean": {
|
110058
|
+
yes: "Yes",
|
110059
|
+
no: "No"
|
110060
|
+
},
|
110061
|
+
language: {
|
110062
|
+
self: "Development Language"
|
110063
|
+
},
|
110064
|
+
packageManager: {
|
110065
|
+
self: "Package Management Tool"
|
110066
|
+
},
|
110067
|
+
packageName: {
|
110068
|
+
self: "Package Name",
|
110069
|
+
sub_name: "Package Name",
|
110070
|
+
no_empty: "The package name cannot be empty!"
|
110071
|
+
},
|
110072
|
+
packagePath: {
|
110073
|
+
self: "Package Path",
|
110074
|
+
no_empty: "The package path cannot be empty!",
|
110075
|
+
format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
|
110076
|
+
},
|
110077
|
+
runWay: {
|
110078
|
+
self: "Do you need to support the following types of applications",
|
110079
|
+
no: "Not Enabled",
|
110080
|
+
electron: "Electron"
|
110081
|
+
},
|
110082
|
+
needModifyConfig: {
|
110083
|
+
self: "Modify the Default Configuration?",
|
110084
|
+
enableLess: "Enable Less?",
|
110085
|
+
enableSass: "Enable Sass?"
|
110086
|
+
},
|
110087
|
+
entry: {
|
110088
|
+
name: "Entry name",
|
110089
|
+
no_empty: "The entry name cannot be empty!",
|
110090
|
+
no_pages: 'The entry name cannot be "pages"!',
|
110091
|
+
disableStateManagement: "Disable App State Management?",
|
110092
|
+
clientRoute: {
|
110093
|
+
self: "Client Routing",
|
110094
|
+
selfControlRoute: "Enable Self Control Route",
|
110095
|
+
conventionalRoute: "Enable Conventional Route",
|
110096
|
+
no: "Not Enabled"
|
110097
|
+
}
|
110098
|
+
},
|
110099
|
+
framework: {
|
110100
|
+
self: "Please select the framework you want to use",
|
110101
|
+
egg: "Egg",
|
110102
|
+
express: "Express",
|
110103
|
+
koa: "Koa",
|
110104
|
+
nest: "Nest"
|
110105
|
+
},
|
110106
|
+
bff: {
|
110107
|
+
bffType: {
|
110108
|
+
self: "BFF Type",
|
110109
|
+
func: "Function",
|
110110
|
+
framework: "Framework"
|
110111
|
+
}
|
110112
|
+
}
|
110113
|
+
};
|
110114
|
+
});
|
110115
|
+
var i18n, localeKeys;
|
110116
|
+
var init_locale = __esmMin(() => {
|
110117
|
+
init_treeshaking3();
|
110118
|
+
init_zh();
|
110119
|
+
init_en();
|
110120
|
+
i18n = new I18n2();
|
110121
|
+
localeKeys = i18n.init("zh", {
|
110122
|
+
zh: ZH_LOCALE,
|
110123
|
+
en: EN_LOCALE
|
110124
|
+
});
|
110125
|
+
});
|
110126
|
+
var _BooleanConfigName, BooleanConfig, BooleanConfigName, BooleanSchemas;
|
110127
|
+
var init_boolean = __esmMin(() => {
|
110128
|
+
init_defineProperty2();
|
110129
|
+
init_locale();
|
110130
|
+
(function(BooleanConfig2) {
|
110131
|
+
BooleanConfig2["NO"] = "no";
|
110132
|
+
BooleanConfig2["YES"] = "yes";
|
110133
|
+
})(BooleanConfig || (BooleanConfig = {}));
|
110134
|
+
BooleanConfigName = (_BooleanConfigName = {}, _defineProperty2(_BooleanConfigName, BooleanConfig.NO, function() {
|
110135
|
+
return i18n.t(localeKeys["boolean"].no);
|
110136
|
+
}), _defineProperty2(_BooleanConfigName, BooleanConfig.YES, function() {
|
110137
|
+
return i18n.t(localeKeys["boolean"].yes);
|
110138
|
+
}), _BooleanConfigName);
|
110139
|
+
BooleanSchemas = [{
|
110140
|
+
key: BooleanConfig.NO,
|
110141
|
+
label: BooleanConfigName[BooleanConfig.NO]
|
110142
|
+
}, {
|
110143
|
+
key: BooleanConfig.YES,
|
110144
|
+
label: BooleanConfigName[BooleanConfig.YES]
|
110145
|
+
}];
|
110146
|
+
});
|
110147
|
+
function _arrayLikeToArray2(arr, len) {
|
110148
|
+
if (len == null || len > arr.length)
|
110149
|
+
len = arr.length;
|
110150
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
110151
|
+
arr2[i] = arr[i];
|
110152
|
+
}
|
110153
|
+
return arr2;
|
110154
|
+
}
|
110155
|
+
var init_arrayLikeToArray2 = __esmMin(() => {
|
110156
|
+
});
|
110157
|
+
function _arrayWithoutHoles2(arr) {
|
110158
|
+
if (Array.isArray(arr))
|
110159
|
+
return _arrayLikeToArray2(arr);
|
110160
|
+
}
|
110161
|
+
var init_arrayWithoutHoles2 = __esmMin(() => {
|
110162
|
+
init_arrayLikeToArray2();
|
110163
|
+
});
|
110164
|
+
function _iterableToArray2(iter) {
|
110165
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
110166
|
+
return Array.from(iter);
|
110167
|
+
}
|
110168
|
+
var init_iterableToArray2 = __esmMin(() => {
|
110169
|
+
});
|
110170
|
+
function _unsupportedIterableToArray2(o, minLen) {
|
110171
|
+
if (!o)
|
110172
|
+
return;
|
110173
|
+
if (typeof o === "string")
|
110174
|
+
return _arrayLikeToArray2(o, minLen);
|
110175
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
110176
|
+
if (n === "Object" && o.constructor)
|
110177
|
+
n = o.constructor.name;
|
110178
|
+
if (n === "Map" || n === "Set")
|
110179
|
+
return Array.from(o);
|
110180
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
110181
|
+
return _arrayLikeToArray2(o, minLen);
|
110182
|
+
}
|
110183
|
+
var init_unsupportedIterableToArray2 = __esmMin(() => {
|
110184
|
+
init_arrayLikeToArray2();
|
110185
|
+
});
|
110186
|
+
function _nonIterableSpread2() {
|
110187
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
110188
|
+
}
|
110189
|
+
var init_nonIterableSpread2 = __esmMin(() => {
|
110190
|
+
});
|
110191
|
+
function _toConsumableArray2(arr) {
|
110192
|
+
return _arrayWithoutHoles2(arr) || _iterableToArray2(arr) || _unsupportedIterableToArray2(arr) || _nonIterableSpread2();
|
110193
|
+
}
|
110194
|
+
var init_toConsumableArray2 = __esmMin(() => {
|
110195
|
+
init_arrayWithoutHoles2();
|
110196
|
+
init_iterableToArray2();
|
110197
|
+
init_unsupportedIterableToArray2();
|
110198
|
+
init_nonIterableSpread2();
|
110199
|
+
});
|
110200
|
+
function getSolutionNameFromSubSolution(solution) {
|
110201
|
+
if (solution === SubSolution.MWATest) {
|
110202
|
+
return Solution.MWA;
|
110203
|
+
}
|
110204
|
+
if (solution === SubSolution.InnerModule) {
|
110205
|
+
return Solution.Module;
|
110206
|
+
}
|
110207
|
+
return solution;
|
110208
|
+
}
|
110209
|
+
var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
|
110210
|
+
var init_solution = __esmMin(() => {
|
110211
|
+
init_toConsumableArray2();
|
110212
|
+
init_defineProperty2();
|
110213
|
+
init_locale();
|
110214
|
+
(function(Solution2) {
|
110215
|
+
Solution2["MWA"] = "mwa";
|
110216
|
+
Solution2["Module"] = "module";
|
110217
|
+
Solution2["Monorepo"] = "monorepo";
|
110218
|
+
})(Solution || (Solution = {}));
|
110219
|
+
(function(SubSolution2) {
|
110220
|
+
SubSolution2["MWA"] = "mwa";
|
110221
|
+
SubSolution2["MWATest"] = "mwa_test";
|
110222
|
+
SubSolution2["Module"] = "module";
|
110223
|
+
SubSolution2["InnerModule"] = "inner_module";
|
110224
|
+
})(SubSolution || (SubSolution = {}));
|
110225
|
+
SolutionText = (_SolutionText = {}, _defineProperty2(_SolutionText, Solution.MWA, function() {
|
110226
|
+
return i18n.t(localeKeys.solution.mwa);
|
110227
|
+
}), _defineProperty2(_SolutionText, Solution.Module, function() {
|
110228
|
+
return i18n.t(localeKeys.solution.module);
|
110229
|
+
}), _defineProperty2(_SolutionText, Solution.Monorepo, function() {
|
110230
|
+
return i18n.t(localeKeys.solution.monorepo);
|
110231
|
+
}), _SolutionText);
|
110232
|
+
SubSolutionText = (_SubSolutionText = {}, _defineProperty2(_SubSolutionText, SubSolution.MWA, function() {
|
110233
|
+
return i18n.t(localeKeys.sub_solution.mwa);
|
110234
|
+
}), _defineProperty2(_SubSolutionText, SubSolution.MWATest, function() {
|
110235
|
+
return i18n.t(localeKeys.sub_solution.mwa_test);
|
110236
|
+
}), _defineProperty2(_SubSolutionText, SubSolution.Module, function() {
|
110237
|
+
return i18n.t(localeKeys.sub_solution.module);
|
110238
|
+
}), _defineProperty2(_SubSolutionText, SubSolution.InnerModule, function() {
|
110239
|
+
return i18n.t(localeKeys.sub_solution.inner_module);
|
110240
|
+
}), _SubSolutionText);
|
110241
|
+
SolutionToolsMap = (_SolutionToolsMap = {}, _defineProperty2(_SolutionToolsMap, Solution.MWA, "@modern-js/app-tools"), _defineProperty2(_SolutionToolsMap, Solution.Module, "@modern-js/module-tools"), _defineProperty2(_SolutionToolsMap, Solution.Monorepo, "@modern-js/monorepo-tools"), _SolutionToolsMap);
|
110242
|
+
SolutionSchema = {
|
110243
|
+
key: "solution_schema",
|
110244
|
+
isObject: true,
|
110245
|
+
items: [{
|
110246
|
+
key: "solution",
|
110247
|
+
label: function label() {
|
110248
|
+
return i18n.t(localeKeys.solution.self);
|
110249
|
+
},
|
110250
|
+
type: ["string"],
|
110251
|
+
mutualExclusion: true,
|
110252
|
+
items: function items(_data, extra) {
|
110253
|
+
var _extra$customPlugin, _extra$customPlugin$c;
|
110254
|
+
var items5 = Object.values(Solution).filter(function(solution) {
|
110255
|
+
return !(extra !== null && extra !== void 0 && extra.isSubProject && solution === Solution.Monorepo);
|
110256
|
+
}).map(function(solution) {
|
110257
|
+
return {
|
110258
|
+
key: solution,
|
110259
|
+
label: SolutionText[solution]
|
110260
|
+
};
|
110261
|
+
});
|
110262
|
+
if (extra !== null && extra !== void 0 && (_extra$customPlugin = extra.customPlugin) !== null && _extra$customPlugin !== void 0 && (_extra$customPlugin$c = _extra$customPlugin.custom) !== null && _extra$customPlugin$c !== void 0 && _extra$customPlugin$c.length) {
|
110263
|
+
return [].concat(_toConsumableArray2(items5), [{
|
110264
|
+
key: "custom",
|
110265
|
+
label: i18n.t(localeKeys.solution.custom)
|
110266
|
+
}]);
|
110267
|
+
}
|
110268
|
+
return items5;
|
110269
|
+
}
|
110270
|
+
}, {
|
110271
|
+
key: "scenes",
|
110272
|
+
label: function label2() {
|
110273
|
+
return i18n.t(localeKeys.scenes.self);
|
110274
|
+
},
|
110275
|
+
type: ["string"],
|
110276
|
+
mutualExclusion: true,
|
110277
|
+
when: function when(data, extra) {
|
110278
|
+
return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[data.solution] && extra.customPlugin[data.solution].length > 0;
|
110279
|
+
},
|
110280
|
+
items: function items2(data, extra) {
|
110281
|
+
var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[data.solution]) || [] : []).map(function(plugin) {
|
110282
|
+
return {
|
110283
|
+
key: plugin.key,
|
110284
|
+
label: plugin.name
|
110285
|
+
};
|
110286
|
+
});
|
110287
|
+
if (data.solution && data.solution !== "custom") {
|
110288
|
+
items5.unshift({
|
110289
|
+
key: data.solution,
|
110290
|
+
label: "".concat(SolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
|
110291
|
+
});
|
110292
|
+
}
|
110293
|
+
return items5;
|
110294
|
+
}
|
110295
|
+
}]
|
110296
|
+
};
|
110297
|
+
SubSolutionSchema = {
|
110298
|
+
key: "sub_solution_schema",
|
110299
|
+
isObject: true,
|
110300
|
+
items: [{
|
110301
|
+
key: "solution",
|
110302
|
+
label: function label3() {
|
110303
|
+
return i18n.t(localeKeys.sub_solution.self);
|
110304
|
+
},
|
110305
|
+
type: ["string"],
|
110306
|
+
mutualExclusion: true,
|
110307
|
+
items: function items3(_data, extra) {
|
110308
|
+
var _extra$customPlugin2, _extra$customPlugin2$;
|
110309
|
+
var items5 = Object.values(SubSolution).map(function(solution) {
|
110310
|
+
return {
|
110311
|
+
key: solution,
|
110312
|
+
label: SubSolutionText[solution]
|
110313
|
+
};
|
110314
|
+
});
|
110315
|
+
if (extra !== null && extra !== void 0 && (_extra$customPlugin2 = extra.customPlugin) !== null && _extra$customPlugin2 !== void 0 && (_extra$customPlugin2$ = _extra$customPlugin2.custom) !== null && _extra$customPlugin2$ !== void 0 && _extra$customPlugin2$.length) {
|
110316
|
+
return [].concat(_toConsumableArray2(items5), [{
|
110317
|
+
key: "custom",
|
110318
|
+
label: i18n.t(localeKeys.solution.custom)
|
110319
|
+
}]);
|
110320
|
+
}
|
110321
|
+
return items5;
|
110322
|
+
}
|
110323
|
+
}, {
|
110324
|
+
key: "scenes",
|
110325
|
+
label: function label4() {
|
110326
|
+
return i18n.t(localeKeys.scenes.self);
|
110327
|
+
},
|
110328
|
+
type: ["string"],
|
110329
|
+
mutualExclusion: true,
|
110330
|
+
when: function when2(data, extra) {
|
110331
|
+
return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)] && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)].length > 0;
|
110332
|
+
},
|
110333
|
+
items: function items4(data, extra) {
|
110334
|
+
var solution = getSolutionNameFromSubSolution(data.solution);
|
110335
|
+
var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map(function(plugin) {
|
110336
|
+
return {
|
110337
|
+
key: plugin.key,
|
110338
|
+
label: plugin.name
|
110339
|
+
};
|
110340
|
+
});
|
110341
|
+
if (data.solution && data.solution !== "custom") {
|
110342
|
+
items5.unshift({
|
110343
|
+
key: data.solution,
|
110344
|
+
label: "".concat(SubSolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
|
110345
|
+
});
|
110346
|
+
}
|
110347
|
+
return items5;
|
110348
|
+
}
|
110349
|
+
}]
|
110350
|
+
};
|
110351
|
+
BaseGenerator = "@modern-js/base-generator";
|
110352
|
+
SolutionGenerator = (_SolutionGenerator = {}, _defineProperty2(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty2(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty2(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
|
110353
|
+
SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty2(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty2(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty2(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty2(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
|
110354
|
+
ChangesetGenerator = "@modern-js/changeset-generator";
|
110355
|
+
DependenceGenerator = "@modern-js/dependence-generator";
|
110356
|
+
EntryGenerator = "@modern-js/entry-generator";
|
110357
|
+
ElectronGenerator = "@modern-js/electron-generator";
|
110358
|
+
EslintGenerator = "@modern-js/eslint-generator";
|
110359
|
+
});
|
110360
|
+
var _LanguageName, Language, LanguageName, LanguageSchema;
|
110361
|
+
var init_language = __esmMin(() => {
|
110362
|
+
init_defineProperty2();
|
110363
|
+
init_locale();
|
110364
|
+
(function(Language2) {
|
110365
|
+
Language2["TS"] = "ts";
|
110366
|
+
Language2["JS"] = "js";
|
110367
|
+
})(Language || (Language = {}));
|
110368
|
+
LanguageName = (_LanguageName = {}, _defineProperty2(_LanguageName, Language.TS, function() {
|
110369
|
+
return "TS";
|
110370
|
+
}), _defineProperty2(_LanguageName, Language.JS, function() {
|
110371
|
+
return "ES6+";
|
110372
|
+
}), _LanguageName);
|
110373
|
+
LanguageSchema = {
|
110374
|
+
key: "language",
|
110375
|
+
type: ["string"],
|
110376
|
+
label: function label5() {
|
110377
|
+
return i18n.t(localeKeys.language.self);
|
110378
|
+
},
|
110379
|
+
mutualExclusion: true,
|
110380
|
+
items: Object.values(Language).map(function(language) {
|
110381
|
+
return {
|
110382
|
+
key: language,
|
110383
|
+
label: LanguageName[language]
|
110384
|
+
};
|
110385
|
+
})
|
110386
|
+
};
|
110387
|
+
});
|
110388
|
+
var _PackageManagerName, PackageManager, PackageManagerName, PackageManagerSchema;
|
110389
|
+
var init_package_manager = __esmMin(() => {
|
110390
|
+
init_defineProperty2();
|
110391
|
+
init_locale();
|
110392
|
+
(function(PackageManager2) {
|
110393
|
+
PackageManager2["Pnpm"] = "pnpm";
|
110394
|
+
PackageManager2["Yarn"] = "yarn";
|
110395
|
+
PackageManager2["Npm"] = "npm";
|
110396
|
+
})(PackageManager || (PackageManager = {}));
|
110397
|
+
PackageManagerName = (_PackageManagerName = {}, _defineProperty2(_PackageManagerName, PackageManager.Pnpm, function() {
|
110398
|
+
return "pnpm";
|
110399
|
+
}), _defineProperty2(_PackageManagerName, PackageManager.Yarn, function() {
|
110400
|
+
return "Yarn";
|
110401
|
+
}), _defineProperty2(_PackageManagerName, PackageManager.Npm, function() {
|
110402
|
+
return "npm";
|
110403
|
+
}), _PackageManagerName);
|
110404
|
+
PackageManagerSchema = {
|
110405
|
+
key: "packageManager",
|
110406
|
+
type: ["string"],
|
110407
|
+
label: function label6() {
|
110408
|
+
return i18n.t(localeKeys.packageManager.self);
|
110409
|
+
},
|
110410
|
+
mutualExclusion: true,
|
110411
|
+
when: function when3(_values, extra) {
|
110412
|
+
return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
|
110413
|
+
},
|
110414
|
+
items: Object.values(PackageManager).map(function(packageManager) {
|
110415
|
+
return {
|
110416
|
+
key: packageManager,
|
110417
|
+
label: PackageManagerName[packageManager]
|
110418
|
+
};
|
110419
|
+
})
|
110420
|
+
};
|
110421
|
+
});
|
110422
|
+
var PackageNameSchema;
|
110423
|
+
var init_package_name = __esmMin(() => {
|
110424
|
+
init_locale();
|
110425
|
+
PackageNameSchema = {
|
110426
|
+
key: "packageName",
|
110427
|
+
label: function label7(_, extra) {
|
110428
|
+
return extra !== null && extra !== void 0 && extra.isMonorepoSubProject ? i18n.t(localeKeys.packageName.sub_name) : i18n.t(localeKeys.packageName.self);
|
110429
|
+
},
|
110430
|
+
type: ["string"],
|
110431
|
+
when: function when4(_, extra) {
|
110432
|
+
return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra !== null && extra !== void 0 && extra.isMwa);
|
110433
|
+
},
|
110434
|
+
validate: function validate(value) {
|
110435
|
+
if (!value) {
|
110436
|
+
return {
|
110437
|
+
success: false,
|
110438
|
+
error: i18n.t(localeKeys.packageName.no_empty)
|
110439
|
+
};
|
110440
|
+
}
|
110441
|
+
return {
|
110442
|
+
success: true
|
110443
|
+
};
|
110444
|
+
}
|
110445
|
+
};
|
110446
|
+
});
|
110447
|
+
var PackagePathRegex, PackagePathSchema;
|
110448
|
+
var init_package_path = __esmMin(() => {
|
110449
|
+
init_locale();
|
110450
|
+
PackagePathRegex = new RegExp("^[a-z0-9]*[-_/]?([a-z0-9]*[-_]?[a-z0-9]*)*[-_/]?[a-z0-9-_]+$");
|
110451
|
+
PackagePathSchema = {
|
110452
|
+
key: "packagePath",
|
110453
|
+
label: function label8() {
|
110454
|
+
return i18n.t(localeKeys.packagePath.self);
|
110455
|
+
},
|
110456
|
+
type: ["string"],
|
110457
|
+
when: function when5(_, extra) {
|
110458
|
+
return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject);
|
110459
|
+
},
|
110460
|
+
state: {
|
110461
|
+
value: {
|
110462
|
+
effectedByFields: ["packageName"],
|
110463
|
+
action: function action(data) {
|
110464
|
+
return "".concat(data.packageName || "");
|
110465
|
+
}
|
110466
|
+
}
|
110467
|
+
},
|
110468
|
+
validate: function validate2(value) {
|
110469
|
+
if (!value) {
|
110470
|
+
return {
|
110471
|
+
success: false,
|
110472
|
+
error: i18n.t(localeKeys.packagePath.no_empty)
|
110473
|
+
};
|
110474
|
+
}
|
110475
|
+
if (!PackagePathRegex.test(value)) {
|
110476
|
+
return {
|
110477
|
+
success: false,
|
110478
|
+
error: i18n.t(localeKeys.packagePath.format)
|
110479
|
+
};
|
110480
|
+
}
|
110481
|
+
return {
|
110482
|
+
success: true
|
110483
|
+
};
|
110484
|
+
}
|
110485
|
+
};
|
110486
|
+
});
|
110487
|
+
var init_common = __esmMin(() => {
|
110488
|
+
init_boolean();
|
110489
|
+
init_solution();
|
110490
|
+
init_language();
|
110491
|
+
init_package_manager();
|
110492
|
+
init_package_name();
|
110493
|
+
init_package_path();
|
110494
|
+
});
|
110495
|
+
var BaseSchemas, BaseSchema, BaseDefaultConfig;
|
110496
|
+
var init_project = __esmMin(() => {
|
110497
|
+
init_common();
|
110498
|
+
BaseSchemas = [PackageManagerSchema];
|
110499
|
+
BaseSchema = {
|
110500
|
+
key: "base",
|
110501
|
+
isObject: true,
|
110502
|
+
items: BaseSchemas
|
110503
|
+
};
|
110504
|
+
BaseDefaultConfig = {
|
110505
|
+
packageManager: PackageManager.Pnpm
|
110506
|
+
};
|
110507
|
+
});
|
110508
|
+
var init_base = __esmMin(() => {
|
110509
|
+
init_project();
|
110510
|
+
});
|
110511
|
+
function ownKeys2(object, enumerableOnly) {
|
110512
|
+
var keys = Object.keys(object);
|
110513
|
+
if (Object.getOwnPropertySymbols) {
|
110514
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
110515
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
110516
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
110517
|
+
})), keys.push.apply(keys, symbols);
|
110518
|
+
}
|
110519
|
+
return keys;
|
110520
|
+
}
|
110521
|
+
function _objectSpread22(target) {
|
110522
|
+
for (var i = 1; i < arguments.length; i++) {
|
110523
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
110524
|
+
i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
|
110525
|
+
_defineProperty2(target, key, source[key]);
|
110526
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
|
110527
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
110528
|
+
});
|
110529
|
+
}
|
110530
|
+
return target;
|
110531
|
+
}
|
110532
|
+
var init_objectSpread22 = __esmMin(() => {
|
110533
|
+
init_defineProperty2();
|
110534
|
+
});
|
110535
|
+
var EnableLessSchema, EnableSassSchema;
|
110536
|
+
var init_css = __esmMin(() => {
|
110537
|
+
init_locale();
|
110538
|
+
init_boolean();
|
110539
|
+
EnableLessSchema = {
|
110540
|
+
key: "enableLess",
|
110541
|
+
type: ["string"],
|
110542
|
+
label: function label9() {
|
110543
|
+
return i18n.t(localeKeys.needModifyConfig.enableLess);
|
110544
|
+
},
|
110545
|
+
mutualExclusion: true,
|
110546
|
+
state: {
|
110547
|
+
value: BooleanConfig.NO
|
110548
|
+
},
|
110549
|
+
items: BooleanSchemas
|
110550
|
+
};
|
110551
|
+
EnableSassSchema = {
|
110552
|
+
key: "enableSass",
|
110553
|
+
type: ["string"],
|
110554
|
+
label: function label10() {
|
110555
|
+
return i18n.t(localeKeys.needModifyConfig.enableSass);
|
110556
|
+
},
|
110557
|
+
mutualExclusion: true,
|
110558
|
+
state: {
|
110559
|
+
value: BooleanConfig.NO
|
110560
|
+
},
|
110561
|
+
items: BooleanSchemas
|
110562
|
+
};
|
110563
|
+
});
|
110564
|
+
var moduleConfigWhenFunc, EnableModuleLessSchema, EnableModuleSassSchema, NeedModifyModuleConfigSchema, ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
|
110565
|
+
var init_project2 = __esmMin(() => {
|
110566
|
+
init_objectSpread22();
|
110567
|
+
init_locale();
|
110568
|
+
init_common();
|
110569
|
+
init_css();
|
110570
|
+
moduleConfigWhenFunc = function moduleConfigWhenFunc2(values) {
|
110571
|
+
return values.needModifyModuleConfig === BooleanConfig.YES;
|
110572
|
+
};
|
110573
|
+
EnableModuleLessSchema = _objectSpread22(_objectSpread22({}, EnableLessSchema), {}, {
|
110574
|
+
when: moduleConfigWhenFunc
|
110575
|
+
});
|
110576
|
+
EnableModuleSassSchema = _objectSpread22(_objectSpread22({}, EnableSassSchema), {}, {
|
110577
|
+
when: moduleConfigWhenFunc
|
110578
|
+
});
|
110579
|
+
NeedModifyModuleConfigSchema = {
|
110580
|
+
key: "needModifyModuleConfig",
|
110581
|
+
label: function label11() {
|
110582
|
+
return i18n.t(localeKeys.needModifyConfig.self);
|
110583
|
+
},
|
110584
|
+
type: ["string"],
|
110585
|
+
mutualExclusion: true,
|
110586
|
+
state: {
|
110587
|
+
value: BooleanConfig.NO
|
110588
|
+
},
|
110589
|
+
items: BooleanSchemas
|
110590
|
+
};
|
110591
|
+
ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, NeedModifyModuleConfigSchema, EnableModuleLessSchema, EnableModuleSassSchema];
|
110592
|
+
ModuleSchema = {
|
110593
|
+
key: "module",
|
110594
|
+
isObject: true,
|
110595
|
+
items: ModuleSchemas
|
110596
|
+
};
|
110597
|
+
ModuleDefaultConfig = {
|
110598
|
+
language: Language.TS,
|
110599
|
+
packageManager: PackageManager.Pnpm,
|
110600
|
+
needModifyModuleConfig: BooleanConfig.NO,
|
110601
|
+
enableLess: BooleanConfig.NO,
|
110602
|
+
enableSass: BooleanConfig.NO
|
110603
|
+
};
|
110604
|
+
});
|
110605
|
+
var init_module = __esmMin(() => {
|
110606
|
+
init_project2();
|
110607
|
+
});
|
110608
|
+
var MonorepoPackageManagerSchema, MonorepoSchemas, MonorepoSchema, MonorepoDefaultConfig;
|
110609
|
+
var init_project3 = __esmMin(() => {
|
110610
|
+
init_objectSpread22();
|
110611
|
+
init_common();
|
110612
|
+
MonorepoPackageManagerSchema = _objectSpread22(_objectSpread22({}, PackageManagerSchema), {}, {
|
110613
|
+
items: PackageManagerSchema.items.filter(function(item) {
|
110614
|
+
return item.key !== PackageManager.Npm;
|
110615
|
+
})
|
110616
|
+
});
|
110617
|
+
MonorepoSchemas = [MonorepoPackageManagerSchema];
|
110618
|
+
MonorepoSchema = {
|
110619
|
+
key: "monorepo",
|
110620
|
+
isObject: true,
|
110621
|
+
items: MonorepoSchemas
|
110622
|
+
};
|
110623
|
+
MonorepoDefaultConfig = {
|
110624
|
+
packageManager: PackageManager.Pnpm
|
110625
|
+
};
|
110626
|
+
});
|
110627
|
+
var init_monorepo = __esmMin(() => {
|
110628
|
+
init_project3();
|
110629
|
+
});
|
110630
|
+
var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema, NeedModifyMWAConfigSchema, Framework, FrameworkSchema, FrameworkAppendTypeContent;
|
110631
|
+
var init_common2 = __esmMin(() => {
|
110632
|
+
init_defineProperty2();
|
110633
|
+
init_objectSpread22();
|
110634
|
+
init_locale();
|
110635
|
+
init_boolean();
|
110636
|
+
init_css();
|
110637
|
+
mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
|
110638
|
+
return values.needModifyMWAConfig === BooleanConfig.YES;
|
110639
|
+
};
|
110640
|
+
(function(RunWay2) {
|
110641
|
+
RunWay2["No"] = "no";
|
110642
|
+
RunWay2["Electron"] = "electron";
|
110643
|
+
})(RunWay || (RunWay = {}));
|
110644
|
+
RunWaySchema = {
|
110645
|
+
key: "runWay",
|
110646
|
+
type: ["string"],
|
110647
|
+
label: function label12() {
|
110648
|
+
return i18n.t(localeKeys.runWay.self);
|
110649
|
+
},
|
110650
|
+
mutualExclusion: true,
|
110651
|
+
when: function when6(_, extra) {
|
110652
|
+
return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
|
110653
|
+
},
|
110654
|
+
state: {
|
110655
|
+
value: RunWay.No
|
110656
|
+
},
|
110657
|
+
items: Object.values(RunWay).map(function(runWay) {
|
110658
|
+
return {
|
110659
|
+
key: runWay,
|
110660
|
+
label: function label25() {
|
110661
|
+
return i18n.t(localeKeys.runWay[runWay]);
|
110662
|
+
}
|
110663
|
+
};
|
110664
|
+
})
|
110665
|
+
};
|
110666
|
+
(function(ClientRoute2) {
|
110667
|
+
ClientRoute2["SelfControlRoute"] = "selfControlRoute";
|
110668
|
+
ClientRoute2["ConventionalRoute"] = "conventionalRoute";
|
110669
|
+
ClientRoute2["No"] = "no";
|
110670
|
+
})(ClientRoute || (ClientRoute = {}));
|
110671
|
+
ClientRouteSchema = {
|
110672
|
+
key: "clientRoute",
|
110673
|
+
type: ["string"],
|
110674
|
+
label: function label13() {
|
110675
|
+
return i18n.t(localeKeys.entry.clientRoute.self);
|
110676
|
+
},
|
110677
|
+
mutualExclusion: true,
|
110678
|
+
when: mwaConfigWhenFunc,
|
110679
|
+
state: {
|
110680
|
+
value: ClientRoute.SelfControlRoute
|
110681
|
+
},
|
110682
|
+
items: Object.values(ClientRoute).map(function(clientRoute) {
|
110683
|
+
return {
|
110684
|
+
key: clientRoute,
|
110685
|
+
label: function label25() {
|
110686
|
+
return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
|
110687
|
+
}
|
110688
|
+
};
|
110689
|
+
})
|
110690
|
+
};
|
110691
|
+
DisableStateManagementSchema = {
|
110692
|
+
key: "disableStateManagement",
|
110693
|
+
type: ["string"],
|
110694
|
+
label: function label14() {
|
110695
|
+
return i18n.t(localeKeys.entry.disableStateManagement);
|
110696
|
+
},
|
110697
|
+
mutualExclusion: true,
|
110698
|
+
when: mwaConfigWhenFunc,
|
110699
|
+
state: {
|
110700
|
+
value: BooleanConfig.NO
|
110701
|
+
},
|
110702
|
+
items: BooleanSchemas
|
110703
|
+
};
|
110704
|
+
EnableMWALessSchema = _objectSpread22(_objectSpread22({}, EnableLessSchema), {}, {
|
110705
|
+
when: mwaConfigWhenFunc
|
110706
|
+
});
|
110707
|
+
EnableMWASassSchema = _objectSpread22(_objectSpread22({}, EnableSassSchema), {}, {
|
110708
|
+
when: mwaConfigWhenFunc
|
110709
|
+
});
|
110710
|
+
NeedModifyMWAConfigSchema = {
|
110711
|
+
key: "needModifyMWAConfig",
|
110712
|
+
label: function label15() {
|
110713
|
+
return i18n.t(localeKeys.needModifyConfig.self);
|
110714
|
+
},
|
110715
|
+
type: ["string"],
|
110716
|
+
mutualExclusion: true,
|
110717
|
+
state: {
|
110718
|
+
value: BooleanConfig.NO
|
110719
|
+
},
|
110720
|
+
items: BooleanSchemas
|
110721
|
+
};
|
110722
|
+
(function(Framework2) {
|
110723
|
+
Framework2["Express"] = "express";
|
110724
|
+
Framework2["Koa"] = "koa";
|
110725
|
+
Framework2["Egg"] = "egg";
|
110726
|
+
Framework2["Nest"] = "nest";
|
110727
|
+
})(Framework || (Framework = {}));
|
110728
|
+
FrameworkSchema = {
|
110729
|
+
key: "framework",
|
110730
|
+
type: ["string"],
|
110731
|
+
label: function label16() {
|
110732
|
+
return i18n.t(localeKeys.framework.self);
|
110733
|
+
},
|
110734
|
+
mutualExclusion: true,
|
110735
|
+
items: Object.values(Framework).map(function(framework) {
|
110736
|
+
return {
|
110737
|
+
key: framework,
|
110738
|
+
label: function label25() {
|
110739
|
+
return i18n.t(localeKeys.framework[framework]);
|
110740
|
+
}
|
110741
|
+
};
|
110742
|
+
})
|
110743
|
+
};
|
110744
|
+
FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty2(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty2(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty2(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty2(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
|
110745
|
+
});
|
110746
|
+
var EntryNameSchema, EntrySchemas, EntrySchema, MWADefaultEntryConfig;
|
110747
|
+
var init_entry = __esmMin(() => {
|
110748
|
+
init_locale();
|
110749
|
+
init_common();
|
110750
|
+
init_common2();
|
110751
|
+
EntryNameSchema = {
|
110752
|
+
key: "name",
|
110753
|
+
type: ["string"],
|
110754
|
+
label: function label17() {
|
110755
|
+
return i18n.t(localeKeys.entry.name);
|
110756
|
+
},
|
110757
|
+
state: {
|
110758
|
+
value: "entry"
|
110759
|
+
},
|
110760
|
+
validate: function validate3(value) {
|
110761
|
+
if (!value) {
|
110762
|
+
return {
|
110763
|
+
success: false,
|
110764
|
+
error: i18n.t(localeKeys.entry.no_empty)
|
110765
|
+
};
|
110766
|
+
}
|
110767
|
+
if (value === "pages") {
|
110768
|
+
return {
|
110769
|
+
success: false,
|
110770
|
+
error: i18n.t(localeKeys.entry.no_pages)
|
110771
|
+
};
|
110772
|
+
}
|
110773
|
+
return {
|
110774
|
+
success: true
|
110775
|
+
};
|
110776
|
+
},
|
110777
|
+
when: function when7(_values, extra) {
|
110778
|
+
if (extra !== null && extra !== void 0 && extra.isEmptySrc) {
|
110779
|
+
return false;
|
110780
|
+
}
|
110781
|
+
return true;
|
110782
|
+
}
|
110783
|
+
};
|
110784
|
+
EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema];
|
110785
|
+
EntrySchema = {
|
110786
|
+
key: "entry",
|
110787
|
+
label: function label18() {
|
110788
|
+
return i18n.t(localeKeys.action.element.entry);
|
110789
|
+
},
|
110790
|
+
isObject: true,
|
110791
|
+
items: EntrySchemas
|
110792
|
+
};
|
110793
|
+
MWADefaultEntryConfig = {
|
110794
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
110795
|
+
clientRoute: ClientRoute.SelfControlRoute,
|
110796
|
+
disableStateManagement: BooleanConfig.NO
|
110797
|
+
};
|
110798
|
+
});
|
110799
|
+
var BFFType, BFFTypeSchema, BFFSchemas, BFFSchema, MWADefaultBffConfig;
|
110800
|
+
var init_bff = __esmMin(() => {
|
110801
|
+
init_locale();
|
110802
|
+
init_common2();
|
110803
|
+
(function(BFFType2) {
|
110804
|
+
BFFType2["Func"] = "func";
|
110805
|
+
BFFType2["Framework"] = "framework";
|
110806
|
+
})(BFFType || (BFFType = {}));
|
110807
|
+
BFFTypeSchema = {
|
110808
|
+
key: "bffType",
|
110809
|
+
type: ["string"],
|
110810
|
+
label: function label19() {
|
110811
|
+
return i18n.t(localeKeys.bff.bffType.self);
|
110812
|
+
},
|
110813
|
+
mutualExclusion: true,
|
110814
|
+
items: Object.values(BFFType).map(function(bffType) {
|
110815
|
+
return {
|
110816
|
+
key: bffType,
|
110817
|
+
label: function label25() {
|
110818
|
+
return i18n.t(localeKeys.bff.bffType[bffType]);
|
110819
|
+
}
|
110820
|
+
};
|
110821
|
+
})
|
110822
|
+
};
|
110823
|
+
BFFSchemas = [BFFTypeSchema, FrameworkSchema];
|
110824
|
+
BFFSchema = {
|
110825
|
+
key: "bff",
|
110826
|
+
label: function label20() {
|
110827
|
+
return i18n.t(localeKeys.action["function"].bff);
|
110828
|
+
},
|
110829
|
+
isObject: true,
|
110830
|
+
items: BFFSchemas
|
110831
|
+
};
|
110832
|
+
MWADefaultBffConfig = {
|
110833
|
+
bffType: BFFType.Func,
|
110834
|
+
frameWork: Framework.Express
|
110835
|
+
};
|
110836
|
+
});
|
110837
|
+
var MWASchemas, MWASchema, MWADefaultConfig;
|
110838
|
+
var init_project4 = __esmMin(() => {
|
110839
|
+
init_common();
|
110840
|
+
init_common2();
|
110841
|
+
MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema];
|
110842
|
+
MWASchema = {
|
110843
|
+
key: "mwa",
|
110844
|
+
isObject: true,
|
110845
|
+
items: MWASchemas
|
110846
|
+
};
|
110847
|
+
MWADefaultConfig = {
|
110848
|
+
language: Language.TS,
|
110849
|
+
packageManager: PackageManager.Pnpm,
|
110850
|
+
runWay: RunWay.No,
|
110851
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
110852
|
+
clientRoute: ClientRoute.SelfControlRoute,
|
110853
|
+
disableStateManagement: BooleanConfig.NO,
|
110854
|
+
enableLess: BooleanConfig.NO,
|
110855
|
+
enableSass: BooleanConfig.NO
|
110856
|
+
};
|
110857
|
+
});
|
110858
|
+
var ServerSchemas, ServerSchema, MWADefaultServerConfig;
|
110859
|
+
var init_server = __esmMin(() => {
|
110860
|
+
init_locale();
|
110861
|
+
init_common2();
|
110862
|
+
ServerSchemas = [FrameworkSchema];
|
110863
|
+
ServerSchema = {
|
110864
|
+
key: "server",
|
110865
|
+
label: function label21() {
|
110866
|
+
return i18n.t(localeKeys.action.element.server);
|
110867
|
+
},
|
110868
|
+
isObject: true,
|
110869
|
+
items: ServerSchemas
|
110870
|
+
};
|
110871
|
+
MWADefaultServerConfig = {
|
110872
|
+
framework: Framework.Express
|
110873
|
+
};
|
110874
|
+
});
|
110875
|
+
var init_mwa = __esmMin(() => {
|
110876
|
+
init_common2();
|
110877
|
+
init_entry();
|
110878
|
+
init_bff();
|
110879
|
+
init_project4();
|
110880
|
+
init_server();
|
110881
|
+
});
|
110882
|
+
var _ActionTypeText, _ActionElementText, _ActionFunctionText, _ActionTypeTextMap, ActionType, ActionElement, ActionFunction, ActionRefactor, ActionTypeText, ActionElementText, ActionFunctionText, ActionRefactorText, ActionTypeTextMap;
|
110883
|
+
var init_common3 = __esmMin(() => {
|
110884
|
+
init_defineProperty2();
|
110885
|
+
init_locale();
|
110886
|
+
(function(ActionType2) {
|
110887
|
+
ActionType2["Function"] = "function";
|
110888
|
+
ActionType2["Element"] = "element";
|
110889
|
+
ActionType2["Refactor"] = "refactor";
|
110890
|
+
})(ActionType || (ActionType = {}));
|
110891
|
+
(function(ActionElement2) {
|
110892
|
+
ActionElement2["Entry"] = "entry";
|
110893
|
+
ActionElement2["Server"] = "server";
|
110894
|
+
})(ActionElement || (ActionElement = {}));
|
110895
|
+
(function(ActionFunction2) {
|
110896
|
+
ActionFunction2["TailwindCSS"] = "tailwindcss";
|
110897
|
+
ActionFunction2["Less"] = "less";
|
110898
|
+
ActionFunction2["Sass"] = "sass";
|
110899
|
+
ActionFunction2["BFF"] = "bff";
|
110900
|
+
ActionFunction2["MicroFrontend"] = "micro_frontend";
|
110901
|
+
ActionFunction2["Electron"] = "electron";
|
110902
|
+
ActionFunction2["I18n"] = "i18n";
|
110903
|
+
ActionFunction2["Test"] = "test";
|
110904
|
+
ActionFunction2["E2ETest"] = "e2e_test";
|
110905
|
+
ActionFunction2["Doc"] = "doc";
|
110906
|
+
ActionFunction2["Storybook"] = "storybook";
|
110907
|
+
ActionFunction2["RuntimeApi"] = "runtimeApi";
|
110908
|
+
ActionFunction2["SSG"] = "ssg";
|
110909
|
+
ActionFunction2["Polyfill"] = "polyfill";
|
110910
|
+
ActionFunction2["Proxy"] = "proxy";
|
110911
|
+
})(ActionFunction || (ActionFunction = {}));
|
110912
|
+
(function(ActionRefactor2) {
|
110913
|
+
ActionRefactor2["BFFToApp"] = "bff_to_app";
|
110914
|
+
})(ActionRefactor || (ActionRefactor = {}));
|
110915
|
+
ActionTypeText = (_ActionTypeText = {}, _defineProperty2(_ActionTypeText, ActionType.Function, function() {
|
110916
|
+
return i18n.t(localeKeys.action["function"].self);
|
110917
|
+
}), _defineProperty2(_ActionTypeText, ActionType.Element, function() {
|
110918
|
+
return i18n.t(localeKeys.action.element.self);
|
110919
|
+
}), _defineProperty2(_ActionTypeText, ActionType.Refactor, function() {
|
110920
|
+
return i18n.t(localeKeys.action.refactor.self);
|
110921
|
+
}), _ActionTypeText);
|
110922
|
+
ActionElementText = (_ActionElementText = {}, _defineProperty2(_ActionElementText, ActionElement.Entry, function() {
|
110923
|
+
return i18n.t(localeKeys.action.element.entry);
|
110924
|
+
}), _defineProperty2(_ActionElementText, ActionElement.Server, function() {
|
110925
|
+
return i18n.t(localeKeys.action.element.server);
|
110926
|
+
}), _ActionElementText);
|
110927
|
+
ActionFunctionText = (_ActionFunctionText = {}, _defineProperty2(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
|
110928
|
+
return i18n.t(localeKeys.action["function"].tailwindcss);
|
110929
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.Less, function() {
|
110930
|
+
return i18n.t(localeKeys.action["function"].less);
|
110931
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.Sass, function() {
|
110932
|
+
return i18n.t(localeKeys.action["function"].sass);
|
110933
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.BFF, function() {
|
110934
|
+
return i18n.t(localeKeys.action["function"].bff);
|
110935
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
|
110936
|
+
return i18n.t(localeKeys.action["function"].micro_frontend);
|
110937
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.Electron, function() {
|
110938
|
+
return i18n.t(localeKeys.action["function"].electron);
|
110939
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.I18n, function() {
|
110940
|
+
return i18n.t(localeKeys.action["function"].i18n);
|
110941
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.Test, function() {
|
110942
|
+
return i18n.t(localeKeys.action["function"].test);
|
110943
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.E2ETest, function() {
|
110944
|
+
return i18n.t(localeKeys.action["function"].e2e_test);
|
110945
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.Doc, function() {
|
110946
|
+
return i18n.t(localeKeys.action["function"].doc);
|
110947
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.Storybook, function() {
|
110948
|
+
return i18n.t(localeKeys.action["function"].storybook);
|
110949
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.RuntimeApi, function() {
|
110950
|
+
return i18n.t(localeKeys.action["function"].runtime_api);
|
110951
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.SSG, function() {
|
110952
|
+
return i18n.t(localeKeys.action["function"].ssg);
|
110953
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.Polyfill, function() {
|
110954
|
+
return i18n.t(localeKeys.action["function"].polyfill);
|
110955
|
+
}), _defineProperty2(_ActionFunctionText, ActionFunction.Proxy, function() {
|
110956
|
+
return i18n.t(localeKeys.action["function"].proxy);
|
110957
|
+
}), _ActionFunctionText);
|
110958
|
+
ActionRefactorText = _defineProperty2({}, ActionRefactor.BFFToApp, function() {
|
110959
|
+
return i18n.t(localeKeys.action.refactor.bff_to_app);
|
110960
|
+
});
|
110961
|
+
ActionTypeTextMap = (_ActionTypeTextMap = {}, _defineProperty2(_ActionTypeTextMap, ActionType.Element, ActionElementText), _defineProperty2(_ActionTypeTextMap, ActionType.Function, ActionFunctionText), _defineProperty2(_ActionTypeTextMap, ActionType.Refactor, ActionRefactorText), _ActionTypeTextMap);
|
110962
|
+
});
|
110963
|
+
var _MWAActionTypesMap, _MWAActionFunctionsDe, _MWAActionFunctionsDe2, _ActionType$Element, _ActionType$Function, _MWANewActionGenerato, MWAActionTypes, MWAActionFunctions, MWAActionElements, MWAActionReactors, MWAActionTypesMap, MWASpecialSchemaMap, MWANewActionSchema, MWAActionFunctionsDevDependencies, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWANewActionGenerators;
|
110964
|
+
var init_mwa2 = __esmMin(() => {
|
110965
|
+
init_defineProperty2();
|
110966
|
+
init_common3();
|
110967
|
+
init_locale();
|
110968
|
+
MWAActionTypes = [
|
110969
|
+
ActionType.Element,
|
110970
|
+
ActionType.Function
|
110971
|
+
];
|
110972
|
+
MWAActionFunctions = [
|
110973
|
+
ActionFunction.TailwindCSS,
|
110974
|
+
ActionFunction.Less,
|
110975
|
+
ActionFunction.Sass,
|
110976
|
+
ActionFunction.BFF,
|
110977
|
+
ActionFunction.SSG,
|
110978
|
+
ActionFunction.MicroFrontend,
|
110979
|
+
ActionFunction.Electron,
|
110980
|
+
ActionFunction.Test,
|
110981
|
+
ActionFunction.Storybook,
|
110982
|
+
ActionFunction.Polyfill,
|
110983
|
+
ActionFunction.Proxy
|
110984
|
+
];
|
110985
|
+
MWAActionElements = [ActionElement.Entry, ActionElement.Server];
|
110986
|
+
MWAActionReactors = [ActionRefactor.BFFToApp];
|
110987
|
+
MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty2(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty2(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty2(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
|
110988
|
+
MWASpecialSchemaMap = _defineProperty2({}, ActionFunction.Storybook, {
|
110989
|
+
key: ActionFunction.Storybook,
|
110990
|
+
label: function label22() {
|
110991
|
+
return i18n.t(localeKeys.action["function"].mwa_storybook);
|
110992
|
+
}
|
110993
|
+
});
|
110994
|
+
MWANewActionSchema = {
|
110995
|
+
key: "mwa_new_action",
|
110996
|
+
isObject: true,
|
110997
|
+
items: [{
|
110998
|
+
key: "actionType",
|
110999
|
+
label: function label23() {
|
111000
|
+
return i18n.t(localeKeys.action.self);
|
111001
|
+
},
|
111002
|
+
type: ["string"],
|
111003
|
+
mutualExclusion: true,
|
111004
|
+
items: MWAActionTypes.map(function(type) {
|
111005
|
+
return {
|
111006
|
+
key: type,
|
111007
|
+
label: ActionTypeText[type],
|
111008
|
+
type: ["string"],
|
111009
|
+
mutualExclusion: true,
|
111010
|
+
items: MWAActionTypesMap[type].map(function(item) {
|
111011
|
+
return MWASpecialSchemaMap[item] || {
|
111012
|
+
key: item,
|
111013
|
+
label: ActionTypeTextMap[type][item]
|
111014
|
+
};
|
111015
|
+
})
|
111016
|
+
};
|
111017
|
+
})
|
111018
|
+
}]
|
111019
|
+
};
|
111020
|
+
MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty2(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty2(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty2(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty2(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty2(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty2(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty2(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty2(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty2(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
|
111021
|
+
MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty2(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty2(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty2(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty2(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty2(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
|
111022
|
+
MWAActionFunctionsAppendTypeContent = _defineProperty2({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
|
111023
|
+
MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty2(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty2(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty2(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty2(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty2(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty2(_ActionType$Function, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty2(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function, ActionFunction.Electron, "@modern-js/electron-generator"), _defineProperty2(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty2(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty2(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty2(_MWANewActionGenerato, ActionType.Refactor, _defineProperty2({}, ActionRefactor.BFFToApp, "@modern-js/bff-refactor-generator")), _MWANewActionGenerato);
|
111024
|
+
});
|
111025
|
+
var _ModuleActionFunction, _ModuleActionFunction2, _ModuleActionFunction3, _ActionType$Function2, ModuleActionTypes, ModuleActionFunctions, ModuleActionTypesMap, ModuleSpecialSchemaMap, ModuleNewActionSchema, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleActionFunctionsDependencies, ModuleNewActionGenerators;
|
111026
|
+
var init_module2 = __esmMin(() => {
|
111027
|
+
init_defineProperty2();
|
111028
|
+
init_common3();
|
111029
|
+
init_locale();
|
111030
|
+
ModuleActionTypes = [ActionType.Function];
|
111031
|
+
ModuleActionFunctions = [
|
111032
|
+
ActionFunction.TailwindCSS,
|
111033
|
+
ActionFunction.Less,
|
111034
|
+
ActionFunction.Sass,
|
111035
|
+
ActionFunction.Storybook,
|
111036
|
+
ActionFunction.RuntimeApi
|
111037
|
+
];
|
111038
|
+
ModuleActionTypesMap = _defineProperty2({}, ActionType.Function, ModuleActionFunctions);
|
111039
|
+
ModuleSpecialSchemaMap = {};
|
111040
|
+
ModuleNewActionSchema = {
|
111041
|
+
key: "Module_new_action",
|
111042
|
+
isObject: true,
|
111043
|
+
items: [{
|
111044
|
+
key: "actionType",
|
111045
|
+
label: function label24() {
|
111046
|
+
return i18n.t(localeKeys.action.self);
|
111047
|
+
},
|
111048
|
+
type: ["string"],
|
111049
|
+
mutualExclusion: true,
|
111050
|
+
items: ModuleActionTypes.map(function(type) {
|
111051
|
+
return {
|
111052
|
+
key: type,
|
111053
|
+
label: ActionTypeText[type],
|
111054
|
+
type: ["string"],
|
111055
|
+
mutualExclusion: true,
|
111056
|
+
items: ModuleActionFunctions.map(function(func) {
|
111057
|
+
return ModuleSpecialSchemaMap[func] || {
|
111058
|
+
key: func,
|
111059
|
+
label: ActionFunctionText[func]
|
111060
|
+
};
|
111061
|
+
})
|
111062
|
+
};
|
111063
|
+
})
|
111064
|
+
}]
|
111065
|
+
};
|
111066
|
+
ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty2(_ModuleActionFunction, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty2(_ModuleActionFunction, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty2(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty2(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty2(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
|
111067
|
+
ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty2(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty2(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
|
111068
|
+
ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty2(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty2(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
|
111069
|
+
ModuleNewActionGenerators = _defineProperty2({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty2(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty2(_ActionType$Function2, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function2, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function2, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function2, ActionFunction.Test, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function2, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty2(_ActionType$Function2, ActionFunction.Storybook, "@modern-js/storybook-generator"), _defineProperty2(_ActionType$Function2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _ActionType$Function2));
|
111070
|
+
});
|
111071
|
+
var _MonorepoNewActionCon, MonorepoNewActionSchema, MonorepoNewActionConfig;
|
111072
|
+
var init_monorepo2 = __esmMin(() => {
|
111073
|
+
init_defineProperty2();
|
111074
|
+
init_common();
|
111075
|
+
MonorepoNewActionSchema = {
|
111076
|
+
key: "monorepo_new_action",
|
111077
|
+
isObject: true,
|
111078
|
+
items: [SubSolutionSchema]
|
111079
|
+
};
|
111080
|
+
MonorepoNewActionConfig = (_MonorepoNewActionCon = {}, _defineProperty2(_MonorepoNewActionCon, SubSolution.MWA, {
|
111081
|
+
isMonorepoSubProject: true,
|
111082
|
+
isTest: false
|
111083
|
+
}), _defineProperty2(_MonorepoNewActionCon, SubSolution.MWATest, {
|
111084
|
+
isMonorepoSubProject: true,
|
111085
|
+
isTest: true
|
111086
|
+
}), _defineProperty2(_MonorepoNewActionCon, SubSolution.Module, {
|
111087
|
+
isMonorepoSubProject: true,
|
111088
|
+
isPublic: true
|
111089
|
+
}), _defineProperty2(_MonorepoNewActionCon, SubSolution.InnerModule, {
|
111090
|
+
isMonorepoSubProject: true,
|
111091
|
+
isPublic: false
|
111092
|
+
}), _MonorepoNewActionCon);
|
111093
|
+
});
|
111094
|
+
var init_newAction = __esmMin(() => {
|
111095
|
+
init_common3();
|
111096
|
+
init_mwa2();
|
111097
|
+
init_module2();
|
111098
|
+
init_monorepo2();
|
111099
|
+
});
|
111100
|
+
var GeneratorSchemas, GeneratorSchema, GeneratorDefaultConfig;
|
111101
|
+
var init_generator = __esmMin(() => {
|
111102
|
+
init_common();
|
111103
|
+
GeneratorSchemas = [PackageNameSchema, PackagePathSchema, PackageManagerSchema, LanguageSchema];
|
111104
|
+
GeneratorSchema = {
|
111105
|
+
key: "generator-generator",
|
111106
|
+
isObject: true,
|
111107
|
+
items: Object.values(GeneratorSchemas)
|
111108
|
+
};
|
111109
|
+
GeneratorDefaultConfig = {
|
111110
|
+
packageManager: PackageManager.Pnpm,
|
111111
|
+
language: Language.TS
|
111112
|
+
};
|
111113
|
+
});
|
111114
|
+
var init_expand = __esmMin(() => {
|
111115
|
+
init_generator();
|
111116
|
+
});
|
111117
|
+
var treeshaking_exports4 = {};
|
111118
|
+
__export2(treeshaking_exports4, {
|
111119
|
+
ActionElement: () => ActionElement,
|
111120
|
+
ActionElementText: () => ActionElementText,
|
111121
|
+
ActionFunction: () => ActionFunction,
|
111122
|
+
ActionFunctionText: () => ActionFunctionText,
|
111123
|
+
ActionRefactor: () => ActionRefactor,
|
111124
|
+
ActionRefactorText: () => ActionRefactorText,
|
111125
|
+
ActionType: () => ActionType,
|
111126
|
+
ActionTypeText: () => ActionTypeText,
|
111127
|
+
ActionTypeTextMap: () => ActionTypeTextMap,
|
111128
|
+
BFFSchema: () => BFFSchema,
|
111129
|
+
BFFSchemas: () => BFFSchemas,
|
111130
|
+
BFFType: () => BFFType,
|
111131
|
+
BFFTypeSchema: () => BFFTypeSchema,
|
111132
|
+
BaseDefaultConfig: () => BaseDefaultConfig,
|
111133
|
+
BaseGenerator: () => BaseGenerator,
|
111134
|
+
BaseSchema: () => BaseSchema,
|
111135
|
+
BaseSchemas: () => BaseSchemas,
|
111136
|
+
BooleanConfig: () => BooleanConfig,
|
111137
|
+
BooleanConfigName: () => BooleanConfigName,
|
111138
|
+
BooleanSchemas: () => BooleanSchemas,
|
111139
|
+
ChangesetGenerator: () => ChangesetGenerator,
|
111140
|
+
ClientRoute: () => ClientRoute,
|
111141
|
+
ClientRouteSchema: () => ClientRouteSchema,
|
111142
|
+
DependenceGenerator: () => DependenceGenerator,
|
111143
|
+
DisableStateManagementSchema: () => DisableStateManagementSchema,
|
111144
|
+
ElectronGenerator: () => ElectronGenerator,
|
111145
|
+
EnableMWALessSchema: () => EnableMWALessSchema,
|
111146
|
+
EnableMWASassSchema: () => EnableMWASassSchema,
|
111147
|
+
EnableModuleLessSchema: () => EnableModuleLessSchema,
|
111148
|
+
EnableModuleSassSchema: () => EnableModuleSassSchema,
|
111149
|
+
EntryGenerator: () => EntryGenerator,
|
111150
|
+
EntrySchema: () => EntrySchema,
|
111151
|
+
EntrySchemas: () => EntrySchemas,
|
111152
|
+
EslintGenerator: () => EslintGenerator,
|
111153
|
+
Framework: () => Framework,
|
111154
|
+
FrameworkAppendTypeContent: () => FrameworkAppendTypeContent,
|
111155
|
+
FrameworkSchema: () => FrameworkSchema,
|
111156
|
+
GeneratorDefaultConfig: () => GeneratorDefaultConfig,
|
111157
|
+
GeneratorSchema: () => GeneratorSchema,
|
111158
|
+
Language: () => Language,
|
111159
|
+
LanguageName: () => LanguageName,
|
111160
|
+
LanguageSchema: () => LanguageSchema,
|
111161
|
+
MWAActionElements: () => MWAActionElements,
|
111162
|
+
MWAActionFunctions: () => MWAActionFunctions,
|
111163
|
+
MWAActionFunctionsAppendTypeContent: () => MWAActionFunctionsAppendTypeContent,
|
111164
|
+
MWAActionFunctionsDependencies: () => MWAActionFunctionsDependencies,
|
111165
|
+
MWAActionFunctionsDevDependencies: () => MWAActionFunctionsDevDependencies,
|
111166
|
+
MWAActionReactors: () => MWAActionReactors,
|
111167
|
+
MWAActionTypes: () => MWAActionTypes,
|
111168
|
+
MWAActionTypesMap: () => MWAActionTypesMap,
|
111169
|
+
MWADefaultBffConfig: () => MWADefaultBffConfig,
|
111170
|
+
MWADefaultConfig: () => MWADefaultConfig,
|
111171
|
+
MWADefaultEntryConfig: () => MWADefaultEntryConfig,
|
111172
|
+
MWADefaultServerConfig: () => MWADefaultServerConfig,
|
111173
|
+
MWANewActionGenerators: () => MWANewActionGenerators,
|
111174
|
+
MWANewActionSchema: () => MWANewActionSchema,
|
111175
|
+
MWASchema: () => MWASchema,
|
111176
|
+
MWASchemas: () => MWASchemas,
|
111177
|
+
MWASpecialSchemaMap: () => MWASpecialSchemaMap,
|
111178
|
+
ModuleActionFunctions: () => ModuleActionFunctions,
|
111179
|
+
ModuleActionFunctionsDependencies: () => ModuleActionFunctionsDependencies,
|
111180
|
+
ModuleActionFunctionsDevDependencies: () => ModuleActionFunctionsDevDependencies,
|
111181
|
+
ModuleActionFunctionsPeerDependencies: () => ModuleActionFunctionsPeerDependencies,
|
111182
|
+
ModuleActionTypes: () => ModuleActionTypes,
|
111183
|
+
ModuleActionTypesMap: () => ModuleActionTypesMap,
|
111184
|
+
ModuleDefaultConfig: () => ModuleDefaultConfig,
|
111185
|
+
ModuleNewActionGenerators: () => ModuleNewActionGenerators,
|
111186
|
+
ModuleNewActionSchema: () => ModuleNewActionSchema,
|
111187
|
+
ModuleSchema: () => ModuleSchema,
|
111188
|
+
ModuleSchemas: () => ModuleSchemas,
|
111189
|
+
ModuleSpecialSchemaMap: () => ModuleSpecialSchemaMap,
|
111190
|
+
MonorepoDefaultConfig: () => MonorepoDefaultConfig,
|
111191
|
+
MonorepoNewActionConfig: () => MonorepoNewActionConfig,
|
111192
|
+
MonorepoNewActionSchema: () => MonorepoNewActionSchema,
|
111193
|
+
MonorepoSchema: () => MonorepoSchema,
|
111194
|
+
MonorepoSchemas: () => MonorepoSchemas,
|
111195
|
+
NeedModifyMWAConfigSchema: () => NeedModifyMWAConfigSchema,
|
111196
|
+
NeedModifyModuleConfigSchema: () => NeedModifyModuleConfigSchema,
|
111197
|
+
PackageManager: () => PackageManager,
|
111198
|
+
PackageManagerName: () => PackageManagerName,
|
111199
|
+
PackageManagerSchema: () => PackageManagerSchema,
|
111200
|
+
PackageNameSchema: () => PackageNameSchema,
|
111201
|
+
PackagePathSchema: () => PackagePathSchema,
|
111202
|
+
RunWay: () => RunWay,
|
111203
|
+
RunWaySchema: () => RunWaySchema,
|
111204
|
+
ServerSchema: () => ServerSchema,
|
111205
|
+
ServerSchemas: () => ServerSchemas,
|
111206
|
+
Solution: () => Solution,
|
111207
|
+
SolutionDefaultConfig: () => SolutionDefaultConfig,
|
111208
|
+
SolutionGenerator: () => SolutionGenerator,
|
111209
|
+
SolutionSchema: () => SolutionSchema,
|
111210
|
+
SolutionSchemas: () => SolutionSchemas,
|
111211
|
+
SolutionText: () => SolutionText,
|
111212
|
+
SolutionToolsMap: () => SolutionToolsMap,
|
111213
|
+
SubSolution: () => SubSolution,
|
111214
|
+
SubSolutionGenerator: () => SubSolutionGenerator,
|
111215
|
+
SubSolutionSchema: () => SubSolutionSchema,
|
111216
|
+
SubSolutionText: () => SubSolutionText,
|
111217
|
+
getSolutionNameFromSubSolution: () => getSolutionNameFromSubSolution,
|
111218
|
+
i18n: () => i18n,
|
111219
|
+
localeKeys: () => localeKeys,
|
111220
|
+
moduleConfigWhenFunc: () => moduleConfigWhenFunc,
|
111221
|
+
mwaConfigWhenFunc: () => mwaConfigWhenFunc
|
111222
|
+
});
|
111223
|
+
var _SolutionDefaultConfi, _SolutionSchemas, SolutionDefaultConfig, SolutionSchemas;
|
111224
|
+
var init_treeshaking4 = __esmMin(() => {
|
111225
|
+
init_defineProperty2();
|
111226
|
+
init_base();
|
111227
|
+
init_common();
|
111228
|
+
init_module();
|
111229
|
+
init_monorepo();
|
111230
|
+
init_mwa();
|
111231
|
+
init_locale();
|
111232
|
+
init_common();
|
111233
|
+
init_newAction();
|
111234
|
+
init_mwa();
|
111235
|
+
init_module();
|
111236
|
+
init_monorepo();
|
111237
|
+
init_expand();
|
111238
|
+
init_base();
|
111239
|
+
SolutionDefaultConfig = (_SolutionDefaultConfi = {}, _defineProperty2(_SolutionDefaultConfi, Solution.MWA, MWADefaultConfig), _defineProperty2(_SolutionDefaultConfi, Solution.Module, ModuleDefaultConfig), _defineProperty2(_SolutionDefaultConfi, Solution.Monorepo, MonorepoDefaultConfig), _SolutionDefaultConfi);
|
111240
|
+
SolutionSchemas = (_SolutionSchemas = {}, _defineProperty2(_SolutionSchemas, Solution.MWA, MWASchemas), _defineProperty2(_SolutionSchemas, Solution.Module, ModuleSchemas), _defineProperty2(_SolutionSchemas, Solution.Monorepo, MonorepoSchemas), _defineProperty2(_SolutionSchemas, "custom", BaseSchemas), _SolutionSchemas);
|
111241
|
+
});
|
109893
111242
|
var require_import_lazy2 = __commonJSMin((exports, module2) => {
|
109894
111243
|
(() => {
|
109895
111244
|
"use strict";
|
@@ -115217,7 +116566,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
115217
116566
|
if (typeof Symbol === "function") {
|
115218
116567
|
Readable.prototype[Symbol.asyncIterator] = function() {
|
115219
116568
|
if (S === void 0) {
|
115220
|
-
S = r2(
|
116569
|
+
S = r2(87);
|
115221
116570
|
}
|
115222
116571
|
return S(this);
|
115223
116572
|
};
|
@@ -115842,7 +117191,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
115842
117191
|
Writable.prototype._destroy = function(e3, t3) {
|
115843
117192
|
t3(e3);
|
115844
117193
|
};
|
115845
|
-
},
|
117194
|
+
}, 87: (e2, t2, r2) => {
|
115846
117195
|
"use strict";
|
115847
117196
|
var i;
|
115848
117197
|
function _defineProperty3(e3, t3, r3) {
|
@@ -116598,7 +117947,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
116598
117947
|
}, 598: (e2, t2, r2) => {
|
116599
117948
|
"use strict";
|
116600
117949
|
const i = r2(591);
|
116601
|
-
const n = r2(
|
117950
|
+
const n = r2(580);
|
116602
117951
|
e2.exports = i(() => {
|
116603
117952
|
n(() => {
|
116604
117953
|
process.stderr.write("\x1B[?25h");
|
@@ -116657,17 +118006,19 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
116657
118006
|
}
|
116658
118007
|
return i.SlowBuffer(e3);
|
116659
118008
|
};
|
116660
|
-
},
|
118009
|
+
}, 580: (e2, t2, r2) => {
|
116661
118010
|
var i = global.process;
|
116662
118011
|
const processOk = function(e3) {
|
116663
118012
|
return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
|
116664
118013
|
};
|
116665
118014
|
if (!processOk(i)) {
|
116666
118015
|
e2.exports = function() {
|
118016
|
+
return function() {
|
118017
|
+
};
|
116667
118018
|
};
|
116668
118019
|
} else {
|
116669
118020
|
var n = r2(491);
|
116670
|
-
var s = r2(
|
118021
|
+
var s = r2(357);
|
116671
118022
|
var a = /^win/i.test(i.platform);
|
116672
118023
|
var o = r2(361);
|
116673
118024
|
if (typeof o !== "function") {
|
@@ -116687,7 +118038,8 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
116687
118038
|
}
|
116688
118039
|
e2.exports = function(e3, t3) {
|
116689
118040
|
if (!processOk(global.process)) {
|
116690
|
-
return
|
118041
|
+
return function() {
|
118042
|
+
};
|
116691
118043
|
}
|
116692
118044
|
n.equal(typeof e3, "function", "a callback must be provided for exit handler");
|
116693
118045
|
if (d === false) {
|
@@ -116794,7 +118146,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
116794
118146
|
}
|
116795
118147
|
};
|
116796
118148
|
}
|
116797
|
-
},
|
118149
|
+
}, 357: (e2) => {
|
116798
118150
|
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
|
116799
118151
|
if (process.platform !== "win32") {
|
116800
118152
|
e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
@@ -117332,13 +118684,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
117332
118684
|
} else {
|
117333
118685
|
E = String(S);
|
117334
118686
|
if (k) {
|
117335
|
-
var
|
117336
|
-
if (
|
117337
|
-
var
|
118687
|
+
var x = g - E.length;
|
118688
|
+
if (x > 0) {
|
118689
|
+
var O = new Array(x + 1).join("0");
|
117338
118690
|
if (S < 0)
|
117339
|
-
E = "-" +
|
118691
|
+
E = "-" + O + E.slice(1);
|
117340
118692
|
else
|
117341
|
-
E =
|
118693
|
+
E = O + E;
|
117342
118694
|
}
|
117343
118695
|
}
|
117344
118696
|
}
|
@@ -117645,7 +118997,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
117645
118997
|
}
|
117646
118998
|
var i = r2(147);
|
117647
118999
|
var a = r2(17);
|
117648
|
-
var n = r2(
|
119000
|
+
var n = r2(235);
|
117649
119001
|
var s = r2(249);
|
117650
119002
|
var o = n.Minimatch;
|
117651
119003
|
function alphasort(t3, e3) {
|
@@ -117820,7 +119172,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
117820
119172
|
}, 978: (t2, e2, r2) => {
|
117821
119173
|
t2.exports = glob;
|
117822
119174
|
var i = r2(737);
|
117823
|
-
var a = r2(
|
119175
|
+
var a = r2(235);
|
117824
119176
|
var n = a.Minimatch;
|
117825
119177
|
var s = r2(315);
|
117826
119178
|
var o = r2(361).EventEmitter;
|
@@ -118369,7 +119721,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118369
119721
|
t2.exports = globSync;
|
118370
119722
|
globSync.GlobSync = GlobSync;
|
118371
119723
|
var i = r2(737);
|
118372
|
-
var a = r2(
|
119724
|
+
var a = r2(235);
|
118373
119725
|
var n = a.Minimatch;
|
118374
119726
|
var s = r2(978).Glob;
|
118375
119727
|
var o = r2(837);
|
@@ -118781,14 +120133,16 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118781
120133
|
}
|
118782
120134
|
};
|
118783
120135
|
}
|
118784
|
-
},
|
120136
|
+
}, 235: (t2, e2, r2) => {
|
118785
120137
|
t2.exports = minimatch;
|
118786
120138
|
minimatch.Minimatch = Minimatch;
|
118787
|
-
var i = {
|
118788
|
-
|
118789
|
-
|
118790
|
-
|
118791
|
-
|
120139
|
+
var i = function() {
|
120140
|
+
try {
|
120141
|
+
return r2(17);
|
120142
|
+
} catch (t3) {
|
120143
|
+
}
|
120144
|
+
}() || { sep: "/" };
|
120145
|
+
minimatch.sep = i.sep;
|
118792
120146
|
var a = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
118793
120147
|
var n = r2(847);
|
118794
120148
|
var s = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } };
|
@@ -118812,58 +120166,68 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118812
120166
|
};
|
118813
120167
|
}
|
118814
120168
|
function ext(t3, e3) {
|
118815
|
-
t3 = t3 || {};
|
118816
120169
|
e3 = e3 || {};
|
118817
120170
|
var r3 = {};
|
118818
|
-
Object.keys(e3).forEach(function(t4) {
|
118819
|
-
r3[t4] = e3[t4];
|
118820
|
-
});
|
118821
120171
|
Object.keys(t3).forEach(function(e4) {
|
118822
120172
|
r3[e4] = t3[e4];
|
118823
120173
|
});
|
120174
|
+
Object.keys(e3).forEach(function(t4) {
|
120175
|
+
r3[t4] = e3[t4];
|
120176
|
+
});
|
118824
120177
|
return r3;
|
118825
120178
|
}
|
118826
120179
|
minimatch.defaults = function(t3) {
|
118827
|
-
if (!t3 || !Object.keys(t3).length)
|
120180
|
+
if (!t3 || typeof t3 !== "object" || !Object.keys(t3).length) {
|
118828
120181
|
return minimatch;
|
120182
|
+
}
|
118829
120183
|
var e3 = minimatch;
|
118830
120184
|
var r3 = function minimatch2(r4, i2, a2) {
|
118831
|
-
return e3
|
120185
|
+
return e3(r4, i2, ext(t3, a2));
|
118832
120186
|
};
|
118833
120187
|
r3.Minimatch = function Minimatch2(r4, i2) {
|
118834
120188
|
return new e3.Minimatch(r4, ext(t3, i2));
|
118835
120189
|
};
|
120190
|
+
r3.Minimatch.defaults = function defaults(r4) {
|
120191
|
+
return e3.defaults(ext(t3, r4)).Minimatch;
|
120192
|
+
};
|
120193
|
+
r3.filter = function filter4(r4, i2) {
|
120194
|
+
return e3.filter(r4, ext(t3, i2));
|
120195
|
+
};
|
120196
|
+
r3.defaults = function defaults(r4) {
|
120197
|
+
return e3.defaults(ext(t3, r4));
|
120198
|
+
};
|
120199
|
+
r3.makeRe = function makeRe2(r4, i2) {
|
120200
|
+
return e3.makeRe(r4, ext(t3, i2));
|
120201
|
+
};
|
120202
|
+
r3.braceExpand = function braceExpand2(r4, i2) {
|
120203
|
+
return e3.braceExpand(r4, ext(t3, i2));
|
120204
|
+
};
|
120205
|
+
r3.match = function(r4, i2, a2) {
|
120206
|
+
return e3.match(r4, i2, ext(t3, a2));
|
120207
|
+
};
|
118836
120208
|
return r3;
|
118837
120209
|
};
|
118838
120210
|
Minimatch.defaults = function(t3) {
|
118839
|
-
if (!t3 || !Object.keys(t3).length)
|
118840
|
-
return Minimatch;
|
118841
120211
|
return minimatch.defaults(t3).Minimatch;
|
118842
120212
|
};
|
118843
120213
|
function minimatch(t3, e3, r3) {
|
118844
|
-
|
118845
|
-
throw new TypeError("glob pattern string required");
|
118846
|
-
}
|
120214
|
+
assertValidPattern(e3);
|
118847
120215
|
if (!r3)
|
118848
120216
|
r3 = {};
|
118849
120217
|
if (!r3.nocomment && e3.charAt(0) === "#") {
|
118850
120218
|
return false;
|
118851
120219
|
}
|
118852
|
-
if (e3.trim() === "")
|
118853
|
-
return t3 === "";
|
118854
120220
|
return new Minimatch(e3, r3).match(t3);
|
118855
120221
|
}
|
118856
120222
|
function Minimatch(t3, e3) {
|
118857
120223
|
if (!(this instanceof Minimatch)) {
|
118858
120224
|
return new Minimatch(t3, e3);
|
118859
120225
|
}
|
118860
|
-
|
118861
|
-
throw new TypeError("glob pattern string required");
|
118862
|
-
}
|
120226
|
+
assertValidPattern(t3);
|
118863
120227
|
if (!e3)
|
118864
120228
|
e3 = {};
|
118865
120229
|
t3 = t3.trim();
|
118866
|
-
if (i.sep !== "/") {
|
120230
|
+
if (!e3.allowWindowsEscape && i.sep !== "/") {
|
118867
120231
|
t3 = t3.split(i.sep).join("/");
|
118868
120232
|
}
|
118869
120233
|
this.options = e3;
|
@@ -118873,14 +120237,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118873
120237
|
this.negate = false;
|
118874
120238
|
this.comment = false;
|
118875
120239
|
this.empty = false;
|
120240
|
+
this.partial = !!e3.partial;
|
118876
120241
|
this.make();
|
118877
120242
|
}
|
118878
120243
|
Minimatch.prototype.debug = function() {
|
118879
120244
|
};
|
118880
120245
|
Minimatch.prototype.make = make;
|
118881
120246
|
function make() {
|
118882
|
-
if (this._made)
|
118883
|
-
return;
|
118884
120247
|
var t3 = this.pattern;
|
118885
120248
|
var e3 = this.options;
|
118886
120249
|
if (!e3.nocomment && t3.charAt(0) === "#") {
|
@@ -118894,7 +120257,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118894
120257
|
this.parseNegate();
|
118895
120258
|
var r3 = this.globSet = this.braceExpand();
|
118896
120259
|
if (e3.debug)
|
118897
|
-
this.debug =
|
120260
|
+
this.debug = function debug() {
|
120261
|
+
console.error.apply(console, arguments);
|
120262
|
+
};
|
118898
120263
|
this.debug(this.pattern, r3);
|
118899
120264
|
r3 = this.globParts = r3.map(function(t4) {
|
118900
120265
|
return t4.split(p);
|
@@ -118939,23 +120304,32 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118939
120304
|
}
|
118940
120305
|
}
|
118941
120306
|
t3 = typeof t3 === "undefined" ? this.pattern : t3;
|
118942
|
-
|
118943
|
-
|
118944
|
-
}
|
118945
|
-
if (e3.nobrace || !t3.match(/\{.*\}/)) {
|
120307
|
+
assertValidPattern(t3);
|
120308
|
+
if (e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3)) {
|
118946
120309
|
return [t3];
|
118947
120310
|
}
|
118948
120311
|
return n(t3);
|
118949
120312
|
}
|
118950
|
-
|
118951
|
-
var
|
118952
|
-
|
118953
|
-
|
120313
|
+
var v = 1024 * 64;
|
120314
|
+
var assertValidPattern = function(t3) {
|
120315
|
+
if (typeof t3 !== "string") {
|
120316
|
+
throw new TypeError("invalid pattern");
|
120317
|
+
}
|
120318
|
+
if (t3.length > v) {
|
118954
120319
|
throw new TypeError("pattern is too long");
|
118955
120320
|
}
|
120321
|
+
};
|
120322
|
+
Minimatch.prototype.parse = parse;
|
120323
|
+
var d = {};
|
120324
|
+
function parse(t3, e3) {
|
120325
|
+
assertValidPattern(t3);
|
118956
120326
|
var r3 = this.options;
|
118957
|
-
if (
|
118958
|
-
|
120327
|
+
if (t3 === "**") {
|
120328
|
+
if (!r3.noglobstar)
|
120329
|
+
return a;
|
120330
|
+
else
|
120331
|
+
t3 = "*";
|
120332
|
+
}
|
118959
120333
|
if (t3 === "")
|
118960
120334
|
return "";
|
118961
120335
|
var i2 = "";
|
@@ -118963,15 +120337,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118963
120337
|
var h2 = false;
|
118964
120338
|
var l2 = [];
|
118965
120339
|
var p2 = [];
|
118966
|
-
var
|
120340
|
+
var v2;
|
118967
120341
|
var m = false;
|
118968
120342
|
var b = -1;
|
118969
120343
|
var g = -1;
|
118970
120344
|
var y = t3.charAt(0) === "." ? "" : r3.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
118971
120345
|
var _ = this;
|
118972
120346
|
function clearStateChar() {
|
118973
|
-
if (
|
118974
|
-
switch (
|
120347
|
+
if (v2) {
|
120348
|
+
switch (v2) {
|
118975
120349
|
case "*":
|
118976
120350
|
i2 += c;
|
118977
120351
|
n2 = true;
|
@@ -118981,11 +120355,11 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118981
120355
|
n2 = true;
|
118982
120356
|
break;
|
118983
120357
|
default:
|
118984
|
-
i2 += "\\" +
|
120358
|
+
i2 += "\\" + v2;
|
118985
120359
|
break;
|
118986
120360
|
}
|
118987
|
-
_.debug("clearStateChar %j %j",
|
118988
|
-
|
120361
|
+
_.debug("clearStateChar %j %j", v2, i2);
|
120362
|
+
v2 = false;
|
118989
120363
|
}
|
118990
120364
|
}
|
118991
120365
|
for (var w = 0, k = t3.length, S; w < k && (S = t3.charAt(w)); w++) {
|
@@ -118996,8 +120370,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
118996
120370
|
continue;
|
118997
120371
|
}
|
118998
120372
|
switch (S) {
|
118999
|
-
case "/":
|
120373
|
+
case "/": {
|
119000
120374
|
return false;
|
120375
|
+
}
|
119001
120376
|
case "\\":
|
119002
120377
|
clearStateChar();
|
119003
120378
|
h2 = true;
|
@@ -119015,9 +120390,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119015
120390
|
i2 += S;
|
119016
120391
|
continue;
|
119017
120392
|
}
|
119018
|
-
_.debug("call clearStateChar %j",
|
120393
|
+
_.debug("call clearStateChar %j", v2);
|
119019
120394
|
clearStateChar();
|
119020
|
-
|
120395
|
+
v2 = S;
|
119021
120396
|
if (r3.noext)
|
119022
120397
|
clearStateChar();
|
119023
120398
|
continue;
|
@@ -119026,14 +120401,14 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119026
120401
|
i2 += "(";
|
119027
120402
|
continue;
|
119028
120403
|
}
|
119029
|
-
if (!
|
120404
|
+
if (!v2) {
|
119030
120405
|
i2 += "\\(";
|
119031
120406
|
continue;
|
119032
120407
|
}
|
119033
|
-
l2.push({ type:
|
119034
|
-
i2 +=
|
119035
|
-
this.debug("plType %j %j",
|
119036
|
-
|
120408
|
+
l2.push({ type: v2, start: w - 1, reStart: i2.length, open: s[v2].open, close: s[v2].close });
|
120409
|
+
i2 += v2 === "!" ? "(?:(?!(?:" : "(?:";
|
120410
|
+
this.debug("plType %j %j", v2, i2);
|
120411
|
+
v2 = false;
|
119037
120412
|
continue;
|
119038
120413
|
case ")":
|
119039
120414
|
if (m || !l2.length) {
|
@@ -119075,17 +120450,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119075
120450
|
h2 = false;
|
119076
120451
|
continue;
|
119077
120452
|
}
|
119078
|
-
|
119079
|
-
|
119080
|
-
|
119081
|
-
|
119082
|
-
|
119083
|
-
|
119084
|
-
|
119085
|
-
|
119086
|
-
|
119087
|
-
continue;
|
119088
|
-
}
|
120453
|
+
var x = t3.substring(g + 1, w);
|
120454
|
+
try {
|
120455
|
+
RegExp("[" + x + "]");
|
120456
|
+
} catch (t4) {
|
120457
|
+
var O = this.parse(x, d);
|
120458
|
+
i2 = i2.substr(0, b) + "\\[" + O[0] + "\\]";
|
120459
|
+
n2 = n2 || O[1];
|
120460
|
+
m = false;
|
120461
|
+
continue;
|
119089
120462
|
}
|
119090
120463
|
n2 = true;
|
119091
120464
|
m = false;
|
@@ -119102,10 +120475,10 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119102
120475
|
}
|
119103
120476
|
}
|
119104
120477
|
if (m) {
|
119105
|
-
|
119106
|
-
|
119107
|
-
i2 = i2.substr(0, b) + "\\[" +
|
119108
|
-
n2 = n2 ||
|
120478
|
+
x = t3.substr(g + 1);
|
120479
|
+
O = this.parse(x, d);
|
120480
|
+
i2 = i2.substr(0, b) + "\\[" + O[0];
|
120481
|
+
n2 = n2 || O[1];
|
119109
120482
|
}
|
119110
120483
|
for (E = l2.pop(); E; E = l2.pop()) {
|
119111
120484
|
var A = i2.slice(E.reStart + E.open.length);
|
@@ -119127,29 +120500,29 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119127
120500
|
}
|
119128
120501
|
var j = false;
|
119129
120502
|
switch (i2.charAt(0)) {
|
119130
|
-
case ".":
|
119131
120503
|
case "[":
|
120504
|
+
case ".":
|
119132
120505
|
case "(":
|
119133
120506
|
j = true;
|
119134
120507
|
}
|
119135
|
-
for (var
|
119136
|
-
var
|
119137
|
-
var
|
119138
|
-
var
|
119139
|
-
var
|
119140
|
-
var
|
119141
|
-
|
119142
|
-
var
|
119143
|
-
var P =
|
119144
|
-
for (w = 0; w <
|
120508
|
+
for (var M = p2.length - 1; M > -1; M--) {
|
120509
|
+
var I = p2[M];
|
120510
|
+
var R = i2.slice(0, I.reStart);
|
120511
|
+
var C = i2.slice(I.reStart, I.reEnd - 8);
|
120512
|
+
var L = i2.slice(I.reEnd - 8, I.reEnd);
|
120513
|
+
var N = i2.slice(I.reEnd);
|
120514
|
+
L += N;
|
120515
|
+
var T = R.split("(").length - 1;
|
120516
|
+
var P = N;
|
120517
|
+
for (w = 0; w < T; w++) {
|
119145
120518
|
P = P.replace(/\)[+*?]?/, "");
|
119146
120519
|
}
|
119147
|
-
|
120520
|
+
N = P;
|
119148
120521
|
var D = "";
|
119149
|
-
if (
|
120522
|
+
if (N === "" && e3 !== d) {
|
119150
120523
|
D = "$";
|
119151
120524
|
}
|
119152
|
-
var $ =
|
120525
|
+
var $ = R + C + N + D + L;
|
119153
120526
|
i2 = $;
|
119154
120527
|
}
|
119155
120528
|
if (i2 !== "" && n2) {
|
@@ -119158,7 +120531,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119158
120531
|
if (j) {
|
119159
120532
|
i2 = y + i2;
|
119160
120533
|
}
|
119161
|
-
if (e3 ===
|
120534
|
+
if (e3 === d) {
|
119162
120535
|
return [i2, n2];
|
119163
120536
|
}
|
119164
120537
|
if (!n2) {
|
@@ -119166,13 +120539,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119166
120539
|
}
|
119167
120540
|
var F = r3.nocase ? "i" : "";
|
119168
120541
|
try {
|
119169
|
-
var
|
120542
|
+
var B = new RegExp("^" + i2 + "$", F);
|
119170
120543
|
} catch (t4) {
|
119171
120544
|
return new RegExp("$.");
|
119172
120545
|
}
|
119173
|
-
|
119174
|
-
|
119175
|
-
return
|
120546
|
+
B._glob = t3;
|
120547
|
+
B._src = i2;
|
120548
|
+
return B;
|
119176
120549
|
}
|
119177
120550
|
minimatch.makeRe = function(t3, e3) {
|
119178
120551
|
return new Minimatch(t3, e3 || {}).makeRe();
|
@@ -119215,8 +120588,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119215
120588
|
}
|
119216
120589
|
return t3;
|
119217
120590
|
};
|
119218
|
-
Minimatch.prototype.match = match
|
119219
|
-
|
120591
|
+
Minimatch.prototype.match = function match(t3, e3) {
|
120592
|
+
if (typeof e3 === "undefined")
|
120593
|
+
e3 = this.partial;
|
119220
120594
|
this.debug("match", t3, this.pattern);
|
119221
120595
|
if (this.comment)
|
119222
120596
|
return false;
|
@@ -119255,7 +120629,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119255
120629
|
if (r3.flipNegate)
|
119256
120630
|
return false;
|
119257
120631
|
return this.negate;
|
119258
|
-
}
|
120632
|
+
};
|
119259
120633
|
Minimatch.prototype.matchOne = function(t3, e3, r3) {
|
119260
120634
|
var i2 = this.options;
|
119261
120635
|
this.debug("matchOne", { this: this, file: t3, pattern: e3 });
|
@@ -119301,19 +120675,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119301
120675
|
}
|
119302
120676
|
return false;
|
119303
120677
|
}
|
119304
|
-
var
|
120678
|
+
var d2;
|
119305
120679
|
if (typeof h2 === "string") {
|
119306
|
-
|
119307
|
-
|
119308
|
-
} else {
|
119309
|
-
d = l2 === h2;
|
119310
|
-
}
|
119311
|
-
this.debug("string match", h2, l2, d);
|
120680
|
+
d2 = l2 === h2;
|
120681
|
+
this.debug("string match", h2, l2, d2);
|
119312
120682
|
} else {
|
119313
|
-
|
119314
|
-
this.debug("pattern match", h2, l2,
|
120683
|
+
d2 = l2.match(h2);
|
120684
|
+
this.debug("pattern match", h2, l2, d2);
|
119315
120685
|
}
|
119316
|
-
if (!
|
120686
|
+
if (!d2)
|
119317
120687
|
return false;
|
119318
120688
|
}
|
119319
120689
|
if (n2 === o2 && s2 === c2) {
|
@@ -119321,8 +120691,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
119321
120691
|
} else if (n2 === o2) {
|
119322
120692
|
return r3;
|
119323
120693
|
} else if (s2 === c2) {
|
119324
|
-
|
119325
|
-
return m;
|
120694
|
+
return n2 === o2 - 1 && t3[n2] === "";
|
119326
120695
|
}
|
119327
120696
|
throw new Error("wtf?");
|
119328
120697
|
};
|
@@ -122947,7 +124316,7 @@ ${o.message}` : x;
|
|
122947
124316
|
}, 878: (e2, t2, n2) => {
|
122948
124317
|
"use strict";
|
122949
124318
|
const r = n2(37);
|
122950
|
-
const o = n2(
|
124319
|
+
const o = n2(580);
|
122951
124320
|
const s = 1e3 * 5;
|
122952
124321
|
const spawnedKill = (e3, t3 = "SIGTERM", n3 = {}) => {
|
122953
124322
|
const r2 = e3(t3);
|
@@ -123570,17 +124939,19 @@ ${o.message}` : x;
|
|
123570
124939
|
}, 609: (e2) => {
|
123571
124940
|
"use strict";
|
123572
124941
|
e2.exports = /^#!(.*)/;
|
123573
|
-
},
|
124942
|
+
}, 580: (e2, t2, n2) => {
|
123574
124943
|
var r = global.process;
|
123575
124944
|
const processOk = function(e3) {
|
123576
124945
|
return e3 && typeof e3 === "object" && typeof e3.removeListener === "function" && typeof e3.emit === "function" && typeof e3.reallyExit === "function" && typeof e3.listeners === "function" && typeof e3.kill === "function" && typeof e3.pid === "number" && typeof e3.on === "function";
|
123577
124946
|
};
|
123578
124947
|
if (!processOk(r)) {
|
123579
124948
|
e2.exports = function() {
|
124949
|
+
return function() {
|
124950
|
+
};
|
123580
124951
|
};
|
123581
124952
|
} else {
|
123582
124953
|
var o = n2(491);
|
123583
|
-
var s = n2(
|
124954
|
+
var s = n2(357);
|
123584
124955
|
var i = /^win/i.test(r.platform);
|
123585
124956
|
var a = n2(361);
|
123586
124957
|
if (typeof a !== "function") {
|
@@ -123600,7 +124971,8 @@ ${o.message}` : x;
|
|
123600
124971
|
}
|
123601
124972
|
e2.exports = function(e3, t3) {
|
123602
124973
|
if (!processOk(global.process)) {
|
123603
|
-
return
|
124974
|
+
return function() {
|
124975
|
+
};
|
123604
124976
|
}
|
123605
124977
|
o.equal(typeof e3, "function", "a callback must be provided for exit handler");
|
123606
124978
|
if (f === false) {
|
@@ -123707,7 +125079,7 @@ ${o.message}` : x;
|
|
123707
125079
|
}
|
123708
125080
|
};
|
123709
125081
|
}
|
123710
|
-
},
|
125082
|
+
}, 357: (e2) => {
|
123711
125083
|
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
|
123712
125084
|
if (process.platform !== "win32") {
|
123713
125085
|
e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
@@ -129364,7 +130736,7 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
|
|
129364
130736
|
e2.matchAny = e2.convertPatternsToRe = e2.makeRe = e2.getPatternParts = e2.expandBraceExpansion = e2.expandPatternsWithBraceExpansion = e2.isAffectDepthOfReadingPattern = e2.endsWithSlashGlobStar = e2.hasGlobStar = e2.getBaseDirectory = e2.isPatternRelatedToParentDirectory = e2.getPatternsOutsideCurrentDirectory = e2.getPatternsInsideCurrentDirectory = e2.getPositivePatterns = e2.getNegativePatterns = e2.isPositivePattern = e2.isNegativePattern = e2.convertToNegativePattern = e2.convertToPositivePattern = e2.isDynamicPattern = e2.isStaticPattern = void 0;
|
129365
130737
|
const n = r2(1017);
|
129366
130738
|
const s = r2(5976);
|
129367
|
-
const i = r2(
|
130739
|
+
const i = r2(8627);
|
129368
130740
|
const o = "**";
|
129369
130741
|
const a = "\\";
|
129370
130742
|
const u = /[*?]|^!/;
|
@@ -130219,7 +131591,7 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
|
|
130219
131591
|
}
|
130220
131592
|
return t3;
|
130221
131593
|
}
|
130222
|
-
},
|
131594
|
+
}, 8627: (t2, e2, r2) => {
|
130223
131595
|
"use strict";
|
130224
131596
|
const n = r2(3837);
|
130225
131597
|
const s = r2(1570);
|
@@ -130282,9 +131654,9 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
|
|
130282
131654
|
r3.onResult(t4);
|
130283
131655
|
s2.push(t4.output);
|
130284
131656
|
};
|
130285
|
-
let i2 = micromatch(t3, e3, { ...r3, onResult });
|
131657
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
130286
131658
|
for (let t4 of s2) {
|
130287
|
-
if (!i2.
|
131659
|
+
if (!i2.has(t4)) {
|
130288
131660
|
n2.add(t4);
|
130289
131661
|
}
|
130290
131662
|
}
|
@@ -135157,11 +136529,11 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
|
|
135157
136529
|
BrowserslistError.prototype = Error.prototype;
|
135158
136530
|
e2.exports = BrowserslistError;
|
135159
136531
|
}, 751: (e2, s2, r2) => {
|
135160
|
-
var n = r2(
|
136532
|
+
var n = r2(330);
|
135161
136533
|
var t = r2(768).agents;
|
135162
|
-
var a = r2(
|
136534
|
+
var a = r2(97);
|
135163
136535
|
var i = r2(17);
|
135164
|
-
var o = r2(
|
136536
|
+
var o = r2(333);
|
135165
136537
|
var l = r2(923);
|
135166
136538
|
var f = r2(347);
|
135167
136539
|
var u = 365.259641 * 24 * 60 * 60 * 1e3;
|
@@ -136310,8 +137682,8 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
|
|
136310
137682
|
}, currentNode: function currentNode() {
|
136311
137683
|
return "node " + process.versions.node;
|
136312
137684
|
} };
|
136313
|
-
},
|
136314
|
-
e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", "16.0": "96", 16.1: "96", "17.0": "98", 17.1: "98", "18.0": "100" };
|
137685
|
+
}, 333: (e2) => {
|
137686
|
+
e2.exports = { "0.20": "39", 0.21: "41", 0.22: "41", 0.23: "41", 0.24: "41", 0.25: "42", 0.26: "42", 0.27: "43", 0.28: "43", 0.29: "43", "0.30": "44", 0.31: "45", 0.32: "45", 0.33: "45", 0.34: "45", 0.35: "45", 0.36: "47", 0.37: "49", "1.0": "49", 1.1: "50", 1.2: "51", 1.3: "52", 1.4: "53", 1.5: "54", 1.6: "56", 1.7: "58", 1.8: "59", "2.0": "61", 2.1: "61", "3.0": "66", 3.1: "66", "4.0": "69", 4.1: "69", 4.2: "69", "5.0": "73", "6.0": "76", 6.1: "76", "7.0": "78", 7.1: "78", 7.2: "78", 7.3: "78", "8.0": "80", 8.1: "80", 8.2: "80", 8.3: "80", 8.4: "80", 8.5: "80", "9.0": "83", 9.1: "83", 9.2: "83", 9.3: "83", 9.4: "83", "10.0": "85", 10.1: "85", 10.2: "85", 10.3: "85", 10.4: "85", "11.0": "87", 11.1: "87", 11.2: "87", 11.3: "87", 11.4: "87", 11.5: "87", "12.0": "89", 12.1: "89", 12.2: "89", "13.0": "91", 13.1: "91", 13.2: "91", 13.3: "91", 13.4: "91", 13.5: "91", 13.6: "91", "14.0": "93", 14.1: "93", 14.2: "93", "15.0": "94", 15.1: "94", 15.2: "94", 15.3: "94", 15.4: "94", 15.5: "94", "16.0": "96", 16.1: "96", 16.2: "96", "17.0": "98", 17.1: "98", 17.2: "98", 17.3: "98", 17.4: "98", "18.0": "100", 18.1: "100", 18.2: "100", 18.3: "100", "19.0": "102", "20.0": "104" };
|
136315
137687
|
}, 174: (e2) => {
|
136316
137688
|
function webpackEmptyContext(e3) {
|
136317
137689
|
var s2 = new Error("Cannot find module '" + e3 + "'");
|
@@ -136337,12 +137709,12 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
|
|
136337
137709
|
}, 17: (e2) => {
|
136338
137710
|
"use strict";
|
136339
137711
|
e2.exports = __require("path");
|
136340
|
-
},
|
137712
|
+
}, 330: (e2) => {
|
136341
137713
|
"use strict";
|
136342
|
-
e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false}]');
|
136343
|
-
},
|
137714
|
+
e2.exports = JSON.parse('[{"name":"nodejs","version":"0.2.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.3.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.4.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.5.0","date":"2011-08-26","lts":false,"security":false},{"name":"nodejs","version":"0.6.0","date":"2011-11-04","lts":false,"security":false},{"name":"nodejs","version":"0.7.0","date":"2012-01-17","lts":false,"security":false},{"name":"nodejs","version":"0.8.0","date":"2012-06-22","lts":false,"security":false},{"name":"nodejs","version":"0.9.0","date":"2012-07-20","lts":false,"security":false},{"name":"nodejs","version":"0.10.0","date":"2013-03-11","lts":false,"security":false},{"name":"nodejs","version":"0.11.0","date":"2013-03-28","lts":false,"security":false},{"name":"nodejs","version":"0.12.0","date":"2015-02-06","lts":false,"security":false},{"name":"nodejs","version":"4.0.0","date":"2015-09-08","lts":false,"security":false},{"name":"nodejs","version":"4.1.0","date":"2015-09-17","lts":false,"security":false},{"name":"nodejs","version":"4.2.0","date":"2015-10-12","lts":"Argon","security":false},{"name":"nodejs","version":"4.3.0","date":"2016-02-09","lts":"Argon","security":false},{"name":"nodejs","version":"4.4.0","date":"2016-03-08","lts":"Argon","security":false},{"name":"nodejs","version":"4.5.0","date":"2016-08-16","lts":"Argon","security":false},{"name":"nodejs","version":"4.6.0","date":"2016-09-27","lts":"Argon","security":true},{"name":"nodejs","version":"4.7.0","date":"2016-12-06","lts":"Argon","security":false},{"name":"nodejs","version":"4.8.0","date":"2017-02-21","lts":"Argon","security":false},{"name":"nodejs","version":"4.9.0","date":"2018-03-28","lts":"Argon","security":true},{"name":"nodejs","version":"5.0.0","date":"2015-10-29","lts":false,"security":false},{"name":"nodejs","version":"5.1.0","date":"2015-11-17","lts":false,"security":false},{"name":"nodejs","version":"5.2.0","date":"2015-12-09","lts":false,"security":false},{"name":"nodejs","version":"5.3.0","date":"2015-12-15","lts":false,"security":false},{"name":"nodejs","version":"5.4.0","date":"2016-01-06","lts":false,"security":false},{"name":"nodejs","version":"5.5.0","date":"2016-01-21","lts":false,"security":false},{"name":"nodejs","version":"5.6.0","date":"2016-02-09","lts":false,"security":false},{"name":"nodejs","version":"5.7.0","date":"2016-02-23","lts":false,"security":false},{"name":"nodejs","version":"5.8.0","date":"2016-03-09","lts":false,"security":false},{"name":"nodejs","version":"5.9.0","date":"2016-03-16","lts":false,"security":false},{"name":"nodejs","version":"5.10.0","date":"2016-04-01","lts":false,"security":false},{"name":"nodejs","version":"5.11.0","date":"2016-04-21","lts":false,"security":false},{"name":"nodejs","version":"5.12.0","date":"2016-06-23","lts":false,"security":false},{"name":"nodejs","version":"6.0.0","date":"2016-04-26","lts":false,"security":false},{"name":"nodejs","version":"6.1.0","date":"2016-05-05","lts":false,"security":false},{"name":"nodejs","version":"6.2.0","date":"2016-05-17","lts":false,"security":false},{"name":"nodejs","version":"6.3.0","date":"2016-07-06","lts":false,"security":false},{"name":"nodejs","version":"6.4.0","date":"2016-08-12","lts":false,"security":false},{"name":"nodejs","version":"6.5.0","date":"2016-08-26","lts":false,"security":false},{"name":"nodejs","version":"6.6.0","date":"2016-09-14","lts":false,"security":false},{"name":"nodejs","version":"6.7.0","date":"2016-09-27","lts":false,"security":true},{"name":"nodejs","version":"6.8.0","date":"2016-10-12","lts":false,"security":false},{"name":"nodejs","version":"6.9.0","date":"2016-10-18","lts":"Boron","security":false},{"name":"nodejs","version":"6.10.0","date":"2017-02-21","lts":"Boron","security":false},{"name":"nodejs","version":"6.11.0","date":"2017-06-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.12.0","date":"2017-11-06","lts":"Boron","security":false},{"name":"nodejs","version":"6.13.0","date":"2018-02-10","lts":"Boron","security":false},{"name":"nodejs","version":"6.14.0","date":"2018-03-28","lts":"Boron","security":true},{"name":"nodejs","version":"6.15.0","date":"2018-11-27","lts":"Boron","security":true},{"name":"nodejs","version":"6.16.0","date":"2018-12-26","lts":"Boron","security":false},{"name":"nodejs","version":"6.17.0","date":"2019-02-28","lts":"Boron","security":true},{"name":"nodejs","version":"7.0.0","date":"2016-10-25","lts":false,"security":false},{"name":"nodejs","version":"7.1.0","date":"2016-11-08","lts":false,"security":false},{"name":"nodejs","version":"7.2.0","date":"2016-11-22","lts":false,"security":false},{"name":"nodejs","version":"7.3.0","date":"2016-12-20","lts":false,"security":false},{"name":"nodejs","version":"7.4.0","date":"2017-01-04","lts":false,"security":false},{"name":"nodejs","version":"7.5.0","date":"2017-01-31","lts":false,"security":false},{"name":"nodejs","version":"7.6.0","date":"2017-02-21","lts":false,"security":false},{"name":"nodejs","version":"7.7.0","date":"2017-02-28","lts":false,"security":false},{"name":"nodejs","version":"7.8.0","date":"2017-03-29","lts":false,"security":false},{"name":"nodejs","version":"7.9.0","date":"2017-04-11","lts":false,"security":false},{"name":"nodejs","version":"7.10.0","date":"2017-05-02","lts":false,"security":false},{"name":"nodejs","version":"8.0.0","date":"2017-05-30","lts":false,"security":false},{"name":"nodejs","version":"8.1.0","date":"2017-06-08","lts":false,"security":false},{"name":"nodejs","version":"8.2.0","date":"2017-07-19","lts":false,"security":false},{"name":"nodejs","version":"8.3.0","date":"2017-08-08","lts":false,"security":false},{"name":"nodejs","version":"8.4.0","date":"2017-08-15","lts":false,"security":false},{"name":"nodejs","version":"8.5.0","date":"2017-09-12","lts":false,"security":false},{"name":"nodejs","version":"8.6.0","date":"2017-09-26","lts":false,"security":false},{"name":"nodejs","version":"8.7.0","date":"2017-10-11","lts":false,"security":false},{"name":"nodejs","version":"8.8.0","date":"2017-10-24","lts":false,"security":false},{"name":"nodejs","version":"8.9.0","date":"2017-10-31","lts":"Carbon","security":false},{"name":"nodejs","version":"8.10.0","date":"2018-03-06","lts":"Carbon","security":false},{"name":"nodejs","version":"8.11.0","date":"2018-03-28","lts":"Carbon","security":true},{"name":"nodejs","version":"8.12.0","date":"2018-09-10","lts":"Carbon","security":false},{"name":"nodejs","version":"8.13.0","date":"2018-11-20","lts":"Carbon","security":false},{"name":"nodejs","version":"8.14.0","date":"2018-11-27","lts":"Carbon","security":true},{"name":"nodejs","version":"8.15.0","date":"2018-12-26","lts":"Carbon","security":false},{"name":"nodejs","version":"8.16.0","date":"2019-04-16","lts":"Carbon","security":false},{"name":"nodejs","version":"8.17.0","date":"2019-12-17","lts":"Carbon","security":true},{"name":"nodejs","version":"9.0.0","date":"2017-10-31","lts":false,"security":false},{"name":"nodejs","version":"9.1.0","date":"2017-11-07","lts":false,"security":false},{"name":"nodejs","version":"9.2.0","date":"2017-11-14","lts":false,"security":false},{"name":"nodejs","version":"9.3.0","date":"2017-12-12","lts":false,"security":false},{"name":"nodejs","version":"9.4.0","date":"2018-01-10","lts":false,"security":false},{"name":"nodejs","version":"9.5.0","date":"2018-01-31","lts":false,"security":false},{"name":"nodejs","version":"9.6.0","date":"2018-02-21","lts":false,"security":false},{"name":"nodejs","version":"9.7.0","date":"2018-03-01","lts":false,"security":false},{"name":"nodejs","version":"9.8.0","date":"2018-03-07","lts":false,"security":false},{"name":"nodejs","version":"9.9.0","date":"2018-03-21","lts":false,"security":false},{"name":"nodejs","version":"9.10.0","date":"2018-03-28","lts":false,"security":true},{"name":"nodejs","version":"9.11.0","date":"2018-04-04","lts":false,"security":false},{"name":"nodejs","version":"10.0.0","date":"2018-04-24","lts":false,"security":false},{"name":"nodejs","version":"10.1.0","date":"2018-05-08","lts":false,"security":false},{"name":"nodejs","version":"10.2.0","date":"2018-05-23","lts":false,"security":false},{"name":"nodejs","version":"10.3.0","date":"2018-05-29","lts":false,"security":false},{"name":"nodejs","version":"10.4.0","date":"2018-06-06","lts":false,"security":false},{"name":"nodejs","version":"10.5.0","date":"2018-06-20","lts":false,"security":false},{"name":"nodejs","version":"10.6.0","date":"2018-07-04","lts":false,"security":false},{"name":"nodejs","version":"10.7.0","date":"2018-07-18","lts":false,"security":false},{"name":"nodejs","version":"10.8.0","date":"2018-08-01","lts":false,"security":false},{"name":"nodejs","version":"10.9.0","date":"2018-08-15","lts":false,"security":false},{"name":"nodejs","version":"10.10.0","date":"2018-09-06","lts":false,"security":false},{"name":"nodejs","version":"10.11.0","date":"2018-09-19","lts":false,"security":false},{"name":"nodejs","version":"10.12.0","date":"2018-10-10","lts":false,"security":false},{"name":"nodejs","version":"10.13.0","date":"2018-10-30","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.14.0","date":"2018-11-27","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.15.0","date":"2018-12-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.16.0","date":"2019-05-28","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.17.0","date":"2019-10-22","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.18.0","date":"2019-12-17","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.19.0","date":"2020-02-05","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.20.0","date":"2020-03-26","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.21.0","date":"2020-06-02","lts":"Dubnium","security":true},{"name":"nodejs","version":"10.22.0","date":"2020-07-21","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.23.0","date":"2020-10-27","lts":"Dubnium","security":false},{"name":"nodejs","version":"10.24.0","date":"2021-02-23","lts":"Dubnium","security":true},{"name":"nodejs","version":"11.0.0","date":"2018-10-23","lts":false,"security":false},{"name":"nodejs","version":"11.1.0","date":"2018-10-30","lts":false,"security":false},{"name":"nodejs","version":"11.2.0","date":"2018-11-15","lts":false,"security":false},{"name":"nodejs","version":"11.3.0","date":"2018-11-27","lts":false,"security":true},{"name":"nodejs","version":"11.4.0","date":"2018-12-07","lts":false,"security":false},{"name":"nodejs","version":"11.5.0","date":"2018-12-18","lts":false,"security":false},{"name":"nodejs","version":"11.6.0","date":"2018-12-26","lts":false,"security":false},{"name":"nodejs","version":"11.7.0","date":"2019-01-17","lts":false,"security":false},{"name":"nodejs","version":"11.8.0","date":"2019-01-24","lts":false,"security":false},{"name":"nodejs","version":"11.9.0","date":"2019-01-30","lts":false,"security":false},{"name":"nodejs","version":"11.10.0","date":"2019-02-14","lts":false,"security":false},{"name":"nodejs","version":"11.11.0","date":"2019-03-05","lts":false,"security":false},{"name":"nodejs","version":"11.12.0","date":"2019-03-14","lts":false,"security":false},{"name":"nodejs","version":"11.13.0","date":"2019-03-28","lts":false,"security":false},{"name":"nodejs","version":"11.14.0","date":"2019-04-10","lts":false,"security":false},{"name":"nodejs","version":"11.15.0","date":"2019-04-30","lts":false,"security":false},{"name":"nodejs","version":"12.0.0","date":"2019-04-23","lts":false,"security":false},{"name":"nodejs","version":"12.1.0","date":"2019-04-29","lts":false,"security":false},{"name":"nodejs","version":"12.2.0","date":"2019-05-07","lts":false,"security":false},{"name":"nodejs","version":"12.3.0","date":"2019-05-21","lts":false,"security":false},{"name":"nodejs","version":"12.4.0","date":"2019-06-04","lts":false,"security":false},{"name":"nodejs","version":"12.5.0","date":"2019-06-26","lts":false,"security":false},{"name":"nodejs","version":"12.6.0","date":"2019-07-03","lts":false,"security":false},{"name":"nodejs","version":"12.7.0","date":"2019-07-23","lts":false,"security":false},{"name":"nodejs","version":"12.8.0","date":"2019-08-06","lts":false,"security":false},{"name":"nodejs","version":"12.9.0","date":"2019-08-20","lts":false,"security":false},{"name":"nodejs","version":"12.10.0","date":"2019-09-04","lts":false,"security":false},{"name":"nodejs","version":"12.11.0","date":"2019-09-25","lts":false,"security":false},{"name":"nodejs","version":"12.12.0","date":"2019-10-11","lts":false,"security":false},{"name":"nodejs","version":"12.13.0","date":"2019-10-21","lts":"Erbium","security":false},{"name":"nodejs","version":"12.14.0","date":"2019-12-17","lts":"Erbium","security":true},{"name":"nodejs","version":"12.15.0","date":"2020-02-05","lts":"Erbium","security":true},{"name":"nodejs","version":"12.16.0","date":"2020-02-11","lts":"Erbium","security":false},{"name":"nodejs","version":"12.17.0","date":"2020-05-26","lts":"Erbium","security":false},{"name":"nodejs","version":"12.18.0","date":"2020-06-02","lts":"Erbium","security":true},{"name":"nodejs","version":"12.19.0","date":"2020-10-06","lts":"Erbium","security":false},{"name":"nodejs","version":"12.20.0","date":"2020-11-24","lts":"Erbium","security":false},{"name":"nodejs","version":"12.21.0","date":"2021-02-23","lts":"Erbium","security":true},{"name":"nodejs","version":"12.22.0","date":"2021-03-30","lts":"Erbium","security":false},{"name":"nodejs","version":"13.0.0","date":"2019-10-22","lts":false,"security":false},{"name":"nodejs","version":"13.1.0","date":"2019-11-05","lts":false,"security":false},{"name":"nodejs","version":"13.2.0","date":"2019-11-21","lts":false,"security":false},{"name":"nodejs","version":"13.3.0","date":"2019-12-03","lts":false,"security":false},{"name":"nodejs","version":"13.4.0","date":"2019-12-17","lts":false,"security":true},{"name":"nodejs","version":"13.5.0","date":"2019-12-18","lts":false,"security":false},{"name":"nodejs","version":"13.6.0","date":"2020-01-07","lts":false,"security":false},{"name":"nodejs","version":"13.7.0","date":"2020-01-21","lts":false,"security":false},{"name":"nodejs","version":"13.8.0","date":"2020-02-05","lts":false,"security":true},{"name":"nodejs","version":"13.9.0","date":"2020-02-18","lts":false,"security":false},{"name":"nodejs","version":"13.10.0","date":"2020-03-04","lts":false,"security":false},{"name":"nodejs","version":"13.11.0","date":"2020-03-12","lts":false,"security":false},{"name":"nodejs","version":"13.12.0","date":"2020-03-26","lts":false,"security":false},{"name":"nodejs","version":"13.13.0","date":"2020-04-14","lts":false,"security":false},{"name":"nodejs","version":"13.14.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.0.0","date":"2020-04-21","lts":false,"security":false},{"name":"nodejs","version":"14.1.0","date":"2020-04-29","lts":false,"security":false},{"name":"nodejs","version":"14.2.0","date":"2020-05-05","lts":false,"security":false},{"name":"nodejs","version":"14.3.0","date":"2020-05-19","lts":false,"security":false},{"name":"nodejs","version":"14.4.0","date":"2020-06-02","lts":false,"security":true},{"name":"nodejs","version":"14.5.0","date":"2020-06-30","lts":false,"security":false},{"name":"nodejs","version":"14.6.0","date":"2020-07-20","lts":false,"security":false},{"name":"nodejs","version":"14.7.0","date":"2020-07-29","lts":false,"security":false},{"name":"nodejs","version":"14.8.0","date":"2020-08-11","lts":false,"security":false},{"name":"nodejs","version":"14.9.0","date":"2020-08-27","lts":false,"security":false},{"name":"nodejs","version":"14.10.0","date":"2020-09-08","lts":false,"security":false},{"name":"nodejs","version":"14.11.0","date":"2020-09-15","lts":false,"security":true},{"name":"nodejs","version":"14.12.0","date":"2020-09-22","lts":false,"security":false},{"name":"nodejs","version":"14.13.0","date":"2020-09-29","lts":false,"security":false},{"name":"nodejs","version":"14.14.0","date":"2020-10-15","lts":false,"security":false},{"name":"nodejs","version":"14.15.0","date":"2020-10-27","lts":"Fermium","security":false},{"name":"nodejs","version":"14.16.0","date":"2021-02-23","lts":"Fermium","security":true},{"name":"nodejs","version":"14.17.0","date":"2021-05-11","lts":"Fermium","security":false},{"name":"nodejs","version":"14.18.0","date":"2021-09-28","lts":"Fermium","security":false},{"name":"nodejs","version":"14.19.0","date":"2022-02-01","lts":"Fermium","security":false},{"name":"nodejs","version":"15.0.0","date":"2020-10-20","lts":false,"security":false},{"name":"nodejs","version":"15.1.0","date":"2020-11-04","lts":false,"security":false},{"name":"nodejs","version":"15.2.0","date":"2020-11-10","lts":false,"security":false},{"name":"nodejs","version":"15.3.0","date":"2020-11-24","lts":false,"security":false},{"name":"nodejs","version":"15.4.0","date":"2020-12-09","lts":false,"security":false},{"name":"nodejs","version":"15.5.0","date":"2020-12-22","lts":false,"security":false},{"name":"nodejs","version":"15.6.0","date":"2021-01-14","lts":false,"security":false},{"name":"nodejs","version":"15.7.0","date":"2021-01-25","lts":false,"security":false},{"name":"nodejs","version":"15.8.0","date":"2021-02-02","lts":false,"security":false},{"name":"nodejs","version":"15.9.0","date":"2021-02-18","lts":false,"security":false},{"name":"nodejs","version":"15.10.0","date":"2021-02-23","lts":false,"security":true},{"name":"nodejs","version":"15.11.0","date":"2021-03-03","lts":false,"security":false},{"name":"nodejs","version":"15.12.0","date":"2021-03-17","lts":false,"security":false},{"name":"nodejs","version":"15.13.0","date":"2021-03-31","lts":false,"security":false},{"name":"nodejs","version":"15.14.0","date":"2021-04-06","lts":false,"security":false},{"name":"nodejs","version":"16.0.0","date":"2021-04-20","lts":false,"security":false},{"name":"nodejs","version":"16.1.0","date":"2021-05-04","lts":false,"security":false},{"name":"nodejs","version":"16.2.0","date":"2021-05-19","lts":false,"security":false},{"name":"nodejs","version":"16.3.0","date":"2021-06-03","lts":false,"security":false},{"name":"nodejs","version":"16.4.0","date":"2021-06-23","lts":false,"security":false},{"name":"nodejs","version":"16.5.0","date":"2021-07-14","lts":false,"security":false},{"name":"nodejs","version":"16.6.0","date":"2021-07-29","lts":false,"security":true},{"name":"nodejs","version":"16.7.0","date":"2021-08-18","lts":false,"security":false},{"name":"nodejs","version":"16.8.0","date":"2021-08-25","lts":false,"security":false},{"name":"nodejs","version":"16.9.0","date":"2021-09-07","lts":false,"security":false},{"name":"nodejs","version":"16.10.0","date":"2021-09-22","lts":false,"security":false},{"name":"nodejs","version":"16.11.0","date":"2021-10-08","lts":false,"security":false},{"name":"nodejs","version":"16.12.0","date":"2021-10-20","lts":false,"security":false},{"name":"nodejs","version":"16.13.0","date":"2021-10-26","lts":"Gallium","security":false},{"name":"nodejs","version":"16.14.0","date":"2022-02-08","lts":"Gallium","security":false},{"name":"nodejs","version":"16.15.0","date":"2022-04-26","lts":"Gallium","security":false},{"name":"nodejs","version":"17.0.0","date":"2021-10-19","lts":false,"security":false},{"name":"nodejs","version":"17.1.0","date":"2021-11-09","lts":false,"security":false},{"name":"nodejs","version":"17.2.0","date":"2021-11-30","lts":false,"security":false},{"name":"nodejs","version":"17.3.0","date":"2021-12-17","lts":false,"security":false},{"name":"nodejs","version":"17.4.0","date":"2022-01-18","lts":false,"security":false},{"name":"nodejs","version":"17.5.0","date":"2022-02-10","lts":false,"security":false},{"name":"nodejs","version":"17.6.0","date":"2022-02-22","lts":false,"security":false},{"name":"nodejs","version":"17.7.0","date":"2022-03-09","lts":false,"security":false},{"name":"nodejs","version":"17.8.0","date":"2022-03-22","lts":false,"security":false},{"name":"nodejs","version":"17.9.0","date":"2022-04-07","lts":false,"security":false},{"name":"nodejs","version":"18.0.0","date":"2022-04-18","lts":false,"security":false},{"name":"nodejs","version":"18.1.0","date":"2022-05-03","lts":false,"security":false},{"name":"nodejs","version":"18.2.0","date":"2022-05-17","lts":false,"security":false}]');
|
137715
|
+
}, 97: (e2) => {
|
136344
137716
|
"use strict";
|
136345
|
-
e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""}}');
|
137717
|
+
e2.exports = JSON.parse('{"v0.8":{"start":"2012-06-25","end":"2014-07-31"},"v0.10":{"start":"2013-03-11","end":"2016-10-31"},"v0.12":{"start":"2015-02-06","end":"2016-12-31"},"v4":{"start":"2015-09-08","lts":"2015-10-12","maintenance":"2017-04-01","end":"2018-04-30","codename":"Argon"},"v5":{"start":"2015-10-29","maintenance":"2016-04-30","end":"2016-06-30"},"v6":{"start":"2016-04-26","lts":"2016-10-18","maintenance":"2018-04-30","end":"2019-04-30","codename":"Boron"},"v7":{"start":"2016-10-25","maintenance":"2017-04-30","end":"2017-06-30"},"v8":{"start":"2017-05-30","lts":"2017-10-31","maintenance":"2019-01-01","end":"2019-12-31","codename":"Carbon"},"v9":{"start":"2017-10-01","maintenance":"2018-04-01","end":"2018-06-30"},"v10":{"start":"2018-04-24","lts":"2018-10-30","maintenance":"2020-05-19","end":"2021-04-30","codename":"Dubnium"},"v11":{"start":"2018-10-23","maintenance":"2019-04-22","end":"2019-06-01"},"v12":{"start":"2019-04-23","lts":"2019-10-21","maintenance":"2020-11-30","end":"2022-04-30","codename":"Erbium"},"v13":{"start":"2019-10-22","maintenance":"2020-04-01","end":"2020-06-01"},"v14":{"start":"2020-04-21","lts":"2020-10-27","maintenance":"2021-10-19","end":"2023-04-30","codename":"Fermium"},"v15":{"start":"2020-10-20","maintenance":"2021-04-01","end":"2021-06-01"},"v16":{"start":"2021-04-20","lts":"2021-10-26","maintenance":"2022-10-18","end":"2024-04-30","codename":"Gallium"},"v17":{"start":"2021-10-19","maintenance":"2022-04-01","end":"2022-06-01"},"v18":{"start":"2022-04-19","lts":"2022-10-25","maintenance":"2023-10-18","end":"2025-04-30","codename":""},"v19":{"start":"2022-10-18","maintenance":"2023-04-01","end":"2023-06-01"},"v20":{"start":"2023-04-18","lts":"2023-10-24","maintenance":"2024-10-22","end":"2026-04-30","codename":""}}');
|
136346
137718
|
} };
|
136347
137719
|
var s = {};
|
136348
137720
|
function __nccwpck_require__(r2) {
|
@@ -139053,17 +140425,17 @@ var require_logger4 = __commonJSMin((exports) => {
|
|
139053
140425
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
139054
140426
|
return;
|
139055
140427
|
}
|
139056
|
-
let
|
140428
|
+
let label25 = "";
|
139057
140429
|
let text = "";
|
139058
140430
|
const logType = this.types[type];
|
139059
140431
|
if (this.config.displayLabel && logType.label) {
|
139060
|
-
|
140432
|
+
label25 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
139061
140433
|
if (this.config.underlineLabel) {
|
139062
|
-
|
140434
|
+
label25 = underline(label25).padEnd(this.longestUnderlinedLabel.length + 1);
|
139063
140435
|
} else {
|
139064
|
-
|
140436
|
+
label25 = label25.padEnd(this.longestLabel.length + 1);
|
139065
140437
|
}
|
139066
|
-
|
140438
|
+
label25 = logType.color ? chalk_1.default[logType.color](label25) : label25;
|
139067
140439
|
}
|
139068
140440
|
if (message instanceof Error) {
|
139069
140441
|
if (message.stack) {
|
@@ -139079,15 +140451,15 @@ ${grey(rest.join("\n"))}`;
|
|
139079
140451
|
if (logType.level === "warn" || logType.level === "error") {
|
139080
140452
|
this.retainLog(type, text);
|
139081
140453
|
}
|
139082
|
-
const log =
|
140454
|
+
const log = label25.length > 0 ? `${label25} ${text}` : text;
|
139083
140455
|
console.log(log, ...args);
|
139084
140456
|
}
|
139085
140457
|
getLongestLabel() {
|
139086
140458
|
let longestLabel = "";
|
139087
140459
|
Object.keys(this.types).forEach((type) => {
|
139088
|
-
const { label:
|
139089
|
-
if (
|
139090
|
-
longestLabel =
|
140460
|
+
const { label: label25 = "" } = this.types[type];
|
140461
|
+
if (label25.length > longestLabel.length) {
|
140462
|
+
longestLabel = label25;
|
139091
140463
|
}
|
139092
140464
|
});
|
139093
140465
|
return longestLabel;
|
@@ -139992,18 +141364,14 @@ var require_runtimeExports2 = __commonJSMin((exports) => {
|
|
139992
141364
|
return res;
|
139993
141365
|
};
|
139994
141366
|
};
|
139995
|
-
exports.createRuntimeExportsUtils = memo((pwd = "", namespace
|
139996
|
-
const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace
|
139997
|
-
const entryExportTsFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.d.ts` : "index.d.ts"}`);
|
141367
|
+
exports.createRuntimeExportsUtils = memo((pwd = "", namespace = "index") => {
|
141368
|
+
const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace}.js`);
|
139998
141369
|
const addExport = (statement) => {
|
139999
141370
|
statement = (0, path_2.normalizeOutputPath)(statement);
|
140000
141371
|
try {
|
140001
141372
|
compiled_1.fs.ensureFileSync(entryExportFile);
|
140002
|
-
compiled_1.fs.ensureFileSync(entryExportTsFile);
|
140003
141373
|
if (!compiled_1.fs.readFileSync(entryExportFile, "utf8").includes(statement)) {
|
140004
141374
|
compiled_1.fs.appendFileSync(entryExportFile, `${statement}
|
140005
|
-
`);
|
140006
|
-
ts && compiled_1.fs.appendFileSync(entryExportTsFile, `${statement.replace(".js", ".d")}
|
140007
141375
|
`);
|
140008
141376
|
}
|
140009
141377
|
} catch {
|
@@ -140079,7 +141447,7 @@ var require_prettyInstructions2 = __commonJSMin((exports) => {
|
|
140079
141447
|
return mod && mod.__esModule ? mod : { "default": mod };
|
140080
141448
|
};
|
140081
141449
|
Object.defineProperty(exports, "__esModule", { value: true });
|
140082
|
-
exports.prettyInstructions = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
|
141450
|
+
exports.prettyInstructions = exports.getAddressUrls = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
|
140083
141451
|
var os_1 = __importDefault(__require("os"));
|
140084
141452
|
var compiled_1 = require_compiled2();
|
140085
141453
|
var is_1 = require_is2();
|
@@ -140113,9 +141481,10 @@ var require_prettyInstructions2 = __commonJSMin((exports) => {
|
|
140113
141481
|
return memo;
|
140114
141482
|
}, []);
|
140115
141483
|
};
|
141484
|
+
exports.getAddressUrls = getAddressUrls;
|
140116
141485
|
var prettyInstructions = (appContext, config) => {
|
140117
141486
|
const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
|
140118
|
-
const urls = getAddressUrls(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
|
141487
|
+
const urls = (0, exports.getAddressUrls)(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
|
140119
141488
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
140120
141489
|
let message = "App running at:\n\n";
|
140121
141490
|
if ((0, exports.isSingleEntry)(entrypoints) || apiOnly) {
|
@@ -140517,8 +141886,9 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
140517
141886
|
LESS: "less",
|
140518
141887
|
SASS: "sass",
|
140519
141888
|
SVG: "svg",
|
140520
|
-
|
140521
|
-
|
141889
|
+
PUG: "pug",
|
141890
|
+
TOML: "toml",
|
141891
|
+
YAML: "yaml"
|
140522
141892
|
},
|
140523
141893
|
ONE_OF: {
|
140524
141894
|
JS: "js",
|
@@ -140536,6 +141906,7 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
140536
141906
|
SASS_MODULES: "sass-modules",
|
140537
141907
|
SVG: "svg",
|
140538
141908
|
SVG_URL: "svg-url",
|
141909
|
+
SVG_ASSET: "svg-asset",
|
140539
141910
|
SVG_INLINE: "svg-inline",
|
140540
141911
|
ASSETS: "assets",
|
140541
141912
|
ASSETS_URL: "assets-url",
|
@@ -140547,12 +141918,14 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
140547
141918
|
SASS: "sass",
|
140548
141919
|
LESS: "less",
|
140549
141920
|
URL: "url",
|
141921
|
+
PUG: "pug",
|
140550
141922
|
FILE: "file",
|
140551
141923
|
SVGR: "svgr",
|
140552
141924
|
YAML: "yaml",
|
140553
141925
|
TOML: "toml",
|
140554
141926
|
HTML: "html",
|
140555
141927
|
BABEL: "babel",
|
141928
|
+
ESBUILD: "esbuild",
|
140556
141929
|
STYLE: "style-loader",
|
140557
141930
|
POSTCSS: "postcss",
|
140558
141931
|
MARKDOWN: "markdown",
|
@@ -140577,7 +141950,8 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
140577
141950
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
140578
141951
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
140579
141952
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
140580
|
-
NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
|
141953
|
+
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
141954
|
+
MODULE_DEPENDENCY_ERROR: "module-dependency-error"
|
140581
141955
|
},
|
140582
141956
|
MINIMIZER: {
|
140583
141957
|
JS: "js",
|
@@ -140745,6 +142119,78 @@ var require_locale2 = __commonJSMin((exports) => {
|
|
140745
142119
|
});
|
140746
142120
|
exports.localeKeys = localeKeys3;
|
140747
142121
|
});
|
142122
|
+
var require_package = __commonJSMin((exports) => {
|
142123
|
+
"use strict";
|
142124
|
+
Object.defineProperty(exports, "__esModule", {
|
142125
|
+
value: true
|
142126
|
+
});
|
142127
|
+
exports.getAvailableVersion = getAvailableVersion;
|
142128
|
+
exports.isPackageDeprecated = isPackageDeprecated;
|
142129
|
+
exports.isPackageExist = isPackageExist;
|
142130
|
+
exports.semverDecrease = semverDecrease;
|
142131
|
+
var _utils = require_dist3();
|
142132
|
+
async function isPackageExist(packageName, registry) {
|
142133
|
+
if (await (0, _utils.canUseNpm)()) {
|
142134
|
+
const args = ["view", packageName, "version"];
|
142135
|
+
if (registry) {
|
142136
|
+
args.push(`--registry=${registry}`);
|
142137
|
+
}
|
142138
|
+
const result = await (0, _utils.execa)("npm", args);
|
142139
|
+
return (0, _utils.stripAnsi)(result.stdout);
|
142140
|
+
}
|
142141
|
+
throw new Error("not found npm, please install npm before");
|
142142
|
+
}
|
142143
|
+
async function isPackageDeprecated(packageName, registry) {
|
142144
|
+
if (await (0, _utils.canUseNpm)()) {
|
142145
|
+
const args = ["view", packageName, "deprecated"];
|
142146
|
+
if (registry) {
|
142147
|
+
args.push(`--registry=${registry}`);
|
142148
|
+
}
|
142149
|
+
const result = await (0, _utils.execa)("npm", args);
|
142150
|
+
return (0, _utils.stripAnsi)(result.stdout);
|
142151
|
+
}
|
142152
|
+
throw new Error("not found npm, please install npm before");
|
142153
|
+
}
|
142154
|
+
function semverDecrease(version4) {
|
142155
|
+
const versionObj = _utils.semver.parse(version4, {
|
142156
|
+
loose: true
|
142157
|
+
});
|
142158
|
+
if (!versionObj) {
|
142159
|
+
throw new Error(`Version ${version4} is not valid semver`);
|
142160
|
+
}
|
142161
|
+
versionObj.build = [];
|
142162
|
+
versionObj.prerelease = [];
|
142163
|
+
versionObj.patch--;
|
142164
|
+
const result = versionObj.format();
|
142165
|
+
if (!_utils.semver.valid(result)) {
|
142166
|
+
_utils.logger.debug(`Version ${result} is not valid semver`);
|
142167
|
+
return version4;
|
142168
|
+
}
|
142169
|
+
return result;
|
142170
|
+
}
|
142171
|
+
async function getAvailableVersion(packageName, currentVersion, registry) {
|
142172
|
+
let times = 5;
|
142173
|
+
let version4 = currentVersion;
|
142174
|
+
while (times) {
|
142175
|
+
if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
|
142176
|
+
version4 = _utils.semver.inc(version4, "patch");
|
142177
|
+
times--;
|
142178
|
+
continue;
|
142179
|
+
}
|
142180
|
+
return version4;
|
142181
|
+
}
|
142182
|
+
times = 5;
|
142183
|
+
while (times) {
|
142184
|
+
version4 = semverDecrease(version4);
|
142185
|
+
if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
|
142186
|
+
times--;
|
142187
|
+
continue;
|
142188
|
+
}
|
142189
|
+
return version4;
|
142190
|
+
}
|
142191
|
+
return currentVersion;
|
142192
|
+
}
|
142193
|
+
});
|
140748
142194
|
var require_utils11 = __commonJSMin((exports) => {
|
140749
142195
|
"use strict";
|
140750
142196
|
Object.defineProperty(exports, "__esModule", {
|
@@ -140763,6 +142209,19 @@ var require_utils11 = __commonJSMin((exports) => {
|
|
140763
142209
|
}
|
140764
142210
|
});
|
140765
142211
|
});
|
142212
|
+
var _package = require_package();
|
142213
|
+
Object.keys(_package).forEach(function(key) {
|
142214
|
+
if (key === "default" || key === "__esModule")
|
142215
|
+
return;
|
142216
|
+
if (key in exports && exports[key] === _package[key])
|
142217
|
+
return;
|
142218
|
+
Object.defineProperty(exports, key, {
|
142219
|
+
enumerable: true,
|
142220
|
+
get: function() {
|
142221
|
+
return _package[key];
|
142222
|
+
}
|
142223
|
+
});
|
142224
|
+
});
|
140766
142225
|
});
|
140767
142226
|
var require_node9 = __commonJSMin((exports) => {
|
140768
142227
|
"use strict";
|
@@ -140772,6 +142231,7 @@ var require_node9 = __commonJSMin((exports) => {
|
|
140772
142231
|
var _exportNames = {
|
140773
142232
|
getPackageVersion: true,
|
140774
142233
|
getModernVersion: true,
|
142234
|
+
getModernPluginVersion: true,
|
140775
142235
|
getPackageManagerText: true,
|
140776
142236
|
isTsProject: true,
|
140777
142237
|
getPackageObj: true,
|
@@ -140780,7 +142240,9 @@ var require_node9 = __commonJSMin((exports) => {
|
|
140780
142240
|
validatePackagePath: true,
|
140781
142241
|
getModuleProjectPath: true,
|
140782
142242
|
getMWAProjectPath: true,
|
142243
|
+
ora: true,
|
140783
142244
|
fs: true,
|
142245
|
+
semver: true,
|
140784
142246
|
execa: true,
|
140785
142247
|
readTsConfigByFile: true,
|
140786
142248
|
getPackageManager: true,
|
@@ -140822,6 +142284,7 @@ var require_node9 = __commonJSMin((exports) => {
|
|
140822
142284
|
});
|
140823
142285
|
exports.getAllPackages = getAllPackages;
|
140824
142286
|
exports.getMWAProjectPath = getMWAProjectPath;
|
142287
|
+
exports.getModernPluginVersion = getModernPluginVersion;
|
140825
142288
|
exports.getModernVersion = getModernVersion2;
|
140826
142289
|
exports.getModuleProjectPath = getModuleProjectPath;
|
140827
142290
|
Object.defineProperty(exports, "getPackageManager", {
|
@@ -140846,18 +142309,32 @@ var require_node9 = __commonJSMin((exports) => {
|
|
140846
142309
|
}
|
140847
142310
|
});
|
140848
142311
|
exports.isTsProject = isTsProject;
|
142312
|
+
Object.defineProperty(exports, "ora", {
|
142313
|
+
enumerable: true,
|
142314
|
+
get: function() {
|
142315
|
+
return _utils.ora;
|
142316
|
+
}
|
142317
|
+
});
|
140849
142318
|
Object.defineProperty(exports, "readTsConfigByFile", {
|
140850
142319
|
enumerable: true,
|
140851
142320
|
get: function() {
|
140852
142321
|
return _utils.readTsConfigByFile;
|
140853
142322
|
}
|
140854
142323
|
});
|
142324
|
+
Object.defineProperty(exports, "semver", {
|
142325
|
+
enumerable: true,
|
142326
|
+
get: function() {
|
142327
|
+
return _utils.semver;
|
142328
|
+
}
|
142329
|
+
});
|
140855
142330
|
exports.validatePackageName = validatePackageName;
|
140856
142331
|
exports.validatePackagePath = validatePackagePath;
|
140857
142332
|
var _path = _interopRequireDefault(__require("path"));
|
140858
142333
|
var _utils = require_dist3();
|
142334
|
+
var _generatorCommon = (init_treeshaking4(), __toCommonJS2(treeshaking_exports4));
|
140859
142335
|
var _stripAnsi = require_strip_ansi4();
|
140860
142336
|
var _locale = require_locale2();
|
142337
|
+
var _package = require_package();
|
140861
142338
|
var _utils2 = require_utils11();
|
140862
142339
|
Object.keys(_utils2).forEach(function(key) {
|
140863
142340
|
if (key === "default" || key === "__esModule")
|
@@ -140909,16 +142386,39 @@ var require_node9 = __commonJSMin((exports) => {
|
|
140909
142386
|
spinner.stop();
|
140910
142387
|
throw new Error("not found npm, please install npm before");
|
140911
142388
|
}
|
140912
|
-
|
140913
|
-
|
140914
|
-
|
140915
|
-
monorepo: "@modern-js/monorepo-tools"
|
140916
|
-
};
|
140917
|
-
async function getModernVersion2(solution) {
|
140918
|
-
const dep = SolutionDep[solution];
|
140919
|
-
const modernVersion = await getPackageVersion(dep);
|
142389
|
+
async function getModernVersion2(solution, registry) {
|
142390
|
+
const dep = _generatorCommon.SolutionToolsMap[solution];
|
142391
|
+
const modernVersion = await getPackageVersion(dep, registry);
|
140920
142392
|
return modernVersion;
|
140921
142393
|
}
|
142394
|
+
async function getModernPluginVersion(solution, packageName, options3 = {}) {
|
142395
|
+
const {
|
142396
|
+
cwd = process.cwd(),
|
142397
|
+
registry
|
142398
|
+
} = options3;
|
142399
|
+
const getLatetPluginVersion = async () => {
|
142400
|
+
const version4 = await getPackageVersion(packageName, registry);
|
142401
|
+
return version4;
|
142402
|
+
};
|
142403
|
+
if (!packageName.startsWith("@modern-js")) {
|
142404
|
+
return getLatetPluginVersion();
|
142405
|
+
}
|
142406
|
+
const pkgPath = _path.default.join(__require.resolve(_generatorCommon.SolutionToolsMap[solution], {
|
142407
|
+
paths: [cwd]
|
142408
|
+
}), "../../../../", "package.json");
|
142409
|
+
if (_utils.fs.existsSync(pkgPath)) {
|
142410
|
+
const pkgInfo = _utils.fs.readJSONSync(pkgPath);
|
142411
|
+
const modernVersion = pkgInfo.version;
|
142412
|
+
if (typeof modernVersion !== "string") {
|
142413
|
+
return getLatetPluginVersion();
|
142414
|
+
}
|
142415
|
+
if (_utils.semver.lt(modernVersion, "1.15.0")) {
|
142416
|
+
return getLatetPluginVersion();
|
142417
|
+
}
|
142418
|
+
return (0, _package.getAvailableVersion)(packageName, modernVersion, registry);
|
142419
|
+
}
|
142420
|
+
return getLatetPluginVersion();
|
142421
|
+
}
|
140922
142422
|
function getPackageManagerText2(packageManager) {
|
140923
142423
|
return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
|
140924
142424
|
}
|
@@ -140993,334 +142493,7 @@ var require_node9 = __commonJSMin((exports) => {
|
|
140993
142493
|
var import_codesmith = __toESM2(require_node());
|
140994
142494
|
var import_codesmith_api_app = __toESM2(require_node7());
|
140995
142495
|
var import_codesmith_api_json = __toESM2(require_node8());
|
140996
|
-
|
140997
|
-
var ZH_LOCALE = {
|
140998
|
-
solution: {
|
140999
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
141000
|
-
mwa: "\u5E94\u7528",
|
141001
|
-
module: "\u6A21\u5757",
|
141002
|
-
monorepo: "Monorepo",
|
141003
|
-
custom: "\u81EA\u5B9A\u4E49",
|
141004
|
-
"default": "\u9ED8\u8BA4"
|
141005
|
-
},
|
141006
|
-
scenes: {
|
141007
|
-
self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
|
141008
|
-
},
|
141009
|
-
sub_solution: {
|
141010
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
141011
|
-
mwa: "\u5E94\u7528",
|
141012
|
-
mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
|
141013
|
-
module: "\u6A21\u5757",
|
141014
|
-
inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
|
141015
|
-
},
|
141016
|
-
action: {
|
141017
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
|
141018
|
-
"function": {
|
141019
|
-
self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
|
141020
|
-
tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
|
141021
|
-
less: "\u542F\u7528 Less \u652F\u6301",
|
141022
|
-
sass: "\u542F\u7528 Sass \u652F\u6301",
|
141023
|
-
bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
|
141024
|
-
micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
|
141025
|
-
electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
|
141026
|
-
i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
|
141027
|
-
test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
|
141028
|
-
e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
|
141029
|
-
doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
|
141030
|
-
storybook: "\u542F\u7528\u300CStorybook\u300D",
|
141031
|
-
runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
|
141032
|
-
mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
|
141033
|
-
ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
|
141034
|
-
polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
|
141035
|
-
proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
|
141036
|
-
},
|
141037
|
-
element: {
|
141038
|
-
self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
|
141039
|
-
entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
|
141040
|
-
server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
|
141041
|
-
},
|
141042
|
-
refactor: {
|
141043
|
-
self: "\u81EA\u52A8\u91CD\u6784",
|
141044
|
-
bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
|
141045
|
-
}
|
141046
|
-
},
|
141047
|
-
"boolean": {
|
141048
|
-
yes: "\u662F",
|
141049
|
-
no: "\u5426"
|
141050
|
-
},
|
141051
|
-
language: {
|
141052
|
-
self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
|
141053
|
-
},
|
141054
|
-
packageManager: {
|
141055
|
-
self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
|
141056
|
-
},
|
141057
|
-
runWay: {
|
141058
|
-
self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
|
141059
|
-
no: "\u4E0D\u9700\u8981",
|
141060
|
-
electron: "Electron"
|
141061
|
-
},
|
141062
|
-
needModifyConfig: {
|
141063
|
-
self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
141064
|
-
enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
|
141065
|
-
enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
|
141066
|
-
},
|
141067
|
-
entry: {
|
141068
|
-
name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
|
141069
|
-
no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
141070
|
-
no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
|
141071
|
-
needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
141072
|
-
disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
|
141073
|
-
clientRoute: {
|
141074
|
-
self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
|
141075
|
-
selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
|
141076
|
-
conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
|
141077
|
-
no: "\u4E0D\u542F\u7528"
|
141078
|
-
}
|
141079
|
-
},
|
141080
|
-
packageName: {
|
141081
|
-
self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
|
141082
|
-
sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
|
141083
|
-
no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
|
141084
|
-
},
|
141085
|
-
packagePath: {
|
141086
|
-
self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
|
141087
|
-
no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
141088
|
-
format: "\u76EE\u5F55\u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u5206\u9694\u7EBF\uFF08-\uFF09\u3001\u4E0B\u5212\u7EBF\uFF08_\uFF09\u548C\u76EE\u5F55\u5206\u9694\u7B26\uFF08/\uFF09"
|
141089
|
-
},
|
141090
|
-
framework: {
|
141091
|
-
self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
|
141092
|
-
egg: "Egg",
|
141093
|
-
express: "Express",
|
141094
|
-
koa: "Koa",
|
141095
|
-
nest: "Nest"
|
141096
|
-
},
|
141097
|
-
bff: {
|
141098
|
-
bffType: {
|
141099
|
-
self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
|
141100
|
-
func: "\u51FD\u6570\u6A21\u5F0F",
|
141101
|
-
framework: "\u6846\u67B6\u6A21\u5F0F"
|
141102
|
-
}
|
141103
|
-
}
|
141104
|
-
};
|
141105
|
-
var EN_LOCALE = {
|
141106
|
-
solution: {
|
141107
|
-
self: "Please select the solution you want to create",
|
141108
|
-
mwa: "MWA Solution",
|
141109
|
-
module: "Module Solution",
|
141110
|
-
monorepo: "Monorepo Solution",
|
141111
|
-
custom: "Custom Solution",
|
141112
|
-
"default": "Default"
|
141113
|
-
},
|
141114
|
-
scenes: {
|
141115
|
-
self: "Please select the scene you want to create"
|
141116
|
-
},
|
141117
|
-
sub_solution: {
|
141118
|
-
self: "Please select the solution you want to create",
|
141119
|
-
mwa: "MWA Solution",
|
141120
|
-
mwa_test: "MWA Solution(Test)",
|
141121
|
-
module: "Module Solution",
|
141122
|
-
inner_module: "Module Solution(Inner)",
|
141123
|
-
monorepo: "Monorepo Solution"
|
141124
|
-
},
|
141125
|
-
action: {
|
141126
|
-
self: "Action",
|
141127
|
-
"function": {
|
141128
|
-
self: "Enable features",
|
141129
|
-
tailwindcss: "Enable Tailwind CSS",
|
141130
|
-
less: "Enable Less",
|
141131
|
-
sass: "Enable Sass",
|
141132
|
-
bff: "Enable BFF",
|
141133
|
-
micro_frontend: "Enable Micro Frontend",
|
141134
|
-
electron: "Enable Electron",
|
141135
|
-
i18n: "Enable Internationalization (i18n)",
|
141136
|
-
test: "Enable Unit Test / Integration Test",
|
141137
|
-
e2e_test: "Enable E2E Test",
|
141138
|
-
doc: "Enable Document Station",
|
141139
|
-
storybook: "Enable Storybook",
|
141140
|
-
runtime_api: "Enable Runtime API",
|
141141
|
-
mwa_storybook: "Enable Visual Testing (Storybook)",
|
141142
|
-
ssg: "Enable SSG",
|
141143
|
-
polyfill: "Enable UA-based Polyfill Feature",
|
141144
|
-
proxy: "Enable Global Proxy"
|
141145
|
-
},
|
141146
|
-
element: {
|
141147
|
-
self: "Create project element",
|
141148
|
-
entry: 'New "entry"',
|
141149
|
-
server: 'New "Server Custom" source code directory'
|
141150
|
-
},
|
141151
|
-
refactor: {
|
141152
|
-
self: "Automatic refactor",
|
141153
|
-
bff_to_app: "Transform BFF to frame mode"
|
141154
|
-
}
|
141155
|
-
},
|
141156
|
-
"boolean": {
|
141157
|
-
yes: "Yes",
|
141158
|
-
no: "No"
|
141159
|
-
},
|
141160
|
-
language: {
|
141161
|
-
self: "Development Language"
|
141162
|
-
},
|
141163
|
-
packageManager: {
|
141164
|
-
self: "Package Management Tool"
|
141165
|
-
},
|
141166
|
-
packageName: {
|
141167
|
-
self: "Package Name",
|
141168
|
-
sub_name: "Package Name",
|
141169
|
-
no_empty: "The package name cannot be empty!"
|
141170
|
-
},
|
141171
|
-
packagePath: {
|
141172
|
-
self: "Package Path",
|
141173
|
-
no_empty: "The package path cannot be empty!",
|
141174
|
-
format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
|
141175
|
-
},
|
141176
|
-
runWay: {
|
141177
|
-
self: "Do you need to support the following types of applications",
|
141178
|
-
no: "Not Enabled",
|
141179
|
-
electron: "Electron"
|
141180
|
-
},
|
141181
|
-
needModifyConfig: {
|
141182
|
-
self: "Modify the Default Configuration?",
|
141183
|
-
enableLess: "Enable Less?",
|
141184
|
-
enableSass: "Enable Sass?"
|
141185
|
-
},
|
141186
|
-
entry: {
|
141187
|
-
name: "Entry name",
|
141188
|
-
no_empty: "The entry name cannot be empty!",
|
141189
|
-
no_pages: 'The entry name cannot be "pages"!',
|
141190
|
-
disableStateManagement: "Disable App State Management?",
|
141191
|
-
clientRoute: {
|
141192
|
-
self: "Client Routing",
|
141193
|
-
selfControlRoute: "Enable Self Control Route",
|
141194
|
-
conventionalRoute: "Enable Conventional Route",
|
141195
|
-
no: "Not Enabled"
|
141196
|
-
}
|
141197
|
-
},
|
141198
|
-
framework: {
|
141199
|
-
self: "Please select the framework you want to use",
|
141200
|
-
egg: "Egg",
|
141201
|
-
express: "Express",
|
141202
|
-
koa: "Koa",
|
141203
|
-
nest: "Nest"
|
141204
|
-
},
|
141205
|
-
bff: {
|
141206
|
-
bffType: {
|
141207
|
-
self: "BFF Type",
|
141208
|
-
func: "Function",
|
141209
|
-
framework: "Framework"
|
141210
|
-
}
|
141211
|
-
}
|
141212
|
-
};
|
141213
|
-
var i18n = new I18n2();
|
141214
|
-
var localeKeys = i18n.init("zh", {
|
141215
|
-
zh: ZH_LOCALE,
|
141216
|
-
en: EN_LOCALE
|
141217
|
-
});
|
141218
|
-
init_defineProperty2();
|
141219
|
-
var _SolutionText;
|
141220
|
-
var _SubSolutionText;
|
141221
|
-
var _SolutionGenerator;
|
141222
|
-
var _SubSolutionGenerator;
|
141223
|
-
var Solution;
|
141224
|
-
(function(Solution2) {
|
141225
|
-
Solution2["MWA"] = "mwa";
|
141226
|
-
Solution2["Module"] = "module";
|
141227
|
-
Solution2["Monorepo"] = "monorepo";
|
141228
|
-
})(Solution || (Solution = {}));
|
141229
|
-
var SubSolution;
|
141230
|
-
(function(SubSolution2) {
|
141231
|
-
SubSolution2["MWA"] = "mwa";
|
141232
|
-
SubSolution2["MWATest"] = "mwa_test";
|
141233
|
-
SubSolution2["Module"] = "module";
|
141234
|
-
SubSolution2["InnerModule"] = "inner_module";
|
141235
|
-
})(SubSolution || (SubSolution = {}));
|
141236
|
-
var SolutionText = (_SolutionText = {}, _defineProperty2(_SolutionText, Solution.MWA, function() {
|
141237
|
-
return i18n.t(localeKeys.solution.mwa);
|
141238
|
-
}), _defineProperty2(_SolutionText, Solution.Module, function() {
|
141239
|
-
return i18n.t(localeKeys.solution.module);
|
141240
|
-
}), _defineProperty2(_SolutionText, Solution.Monorepo, function() {
|
141241
|
-
return i18n.t(localeKeys.solution.monorepo);
|
141242
|
-
}), _SolutionText);
|
141243
|
-
var SubSolutionText = (_SubSolutionText = {}, _defineProperty2(_SubSolutionText, SubSolution.MWA, function() {
|
141244
|
-
return i18n.t(localeKeys.sub_solution.mwa);
|
141245
|
-
}), _defineProperty2(_SubSolutionText, SubSolution.MWATest, function() {
|
141246
|
-
return i18n.t(localeKeys.sub_solution.mwa_test);
|
141247
|
-
}), _defineProperty2(_SubSolutionText, SubSolution.Module, function() {
|
141248
|
-
return i18n.t(localeKeys.sub_solution.module);
|
141249
|
-
}), _defineProperty2(_SubSolutionText, SubSolution.InnerModule, function() {
|
141250
|
-
return i18n.t(localeKeys.sub_solution.inner_module);
|
141251
|
-
}), _SubSolutionText);
|
141252
|
-
var BaseGenerator = "@modern-js/base-generator";
|
141253
|
-
var SolutionGenerator = (_SolutionGenerator = {}, _defineProperty2(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty2(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty2(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
|
141254
|
-
var SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty2(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty2(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty2(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty2(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
|
141255
|
-
var ChangesetGenerator = "@modern-js/changeset-generator";
|
141256
|
-
init_defineProperty2();
|
141257
|
-
var _PackageManagerName;
|
141258
|
-
var PackageManager;
|
141259
|
-
(function(PackageManager2) {
|
141260
|
-
PackageManager2["Pnpm"] = "pnpm";
|
141261
|
-
PackageManager2["Yarn"] = "yarn";
|
141262
|
-
PackageManager2["Npm"] = "npm";
|
141263
|
-
})(PackageManager || (PackageManager = {}));
|
141264
|
-
var PackageManagerName = (_PackageManagerName = {}, _defineProperty2(_PackageManagerName, PackageManager.Pnpm, function() {
|
141265
|
-
return "pnpm";
|
141266
|
-
}), _defineProperty2(_PackageManagerName, PackageManager.Yarn, function() {
|
141267
|
-
return "Yarn";
|
141268
|
-
}), _defineProperty2(_PackageManagerName, PackageManager.Npm, function() {
|
141269
|
-
return "npm";
|
141270
|
-
}), _PackageManagerName);
|
141271
|
-
var PackageManagerSchema = {
|
141272
|
-
key: "packageManager",
|
141273
|
-
type: ["string"],
|
141274
|
-
label: function label() {
|
141275
|
-
return i18n.t(localeKeys.packageManager.self);
|
141276
|
-
},
|
141277
|
-
mutualExclusion: true,
|
141278
|
-
when: function when(_values, extra) {
|
141279
|
-
return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
|
141280
|
-
},
|
141281
|
-
items: Object.values(PackageManager).map(function(packageManager) {
|
141282
|
-
return {
|
141283
|
-
key: packageManager,
|
141284
|
-
label: PackageManagerName[packageManager]
|
141285
|
-
};
|
141286
|
-
})
|
141287
|
-
};
|
141288
|
-
init_defineProperty2();
|
141289
|
-
function ownKeys2(object, enumerableOnly) {
|
141290
|
-
var keys = Object.keys(object);
|
141291
|
-
if (Object.getOwnPropertySymbols) {
|
141292
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
141293
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
141294
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
141295
|
-
})), keys.push.apply(keys, symbols);
|
141296
|
-
}
|
141297
|
-
return keys;
|
141298
|
-
}
|
141299
|
-
function _objectSpread22(target) {
|
141300
|
-
for (var i = 1; i < arguments.length; i++) {
|
141301
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
141302
|
-
i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
|
141303
|
-
_defineProperty2(target, key, source[key]);
|
141304
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
|
141305
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
141306
|
-
});
|
141307
|
-
}
|
141308
|
-
return target;
|
141309
|
-
}
|
141310
|
-
var MonorepoPackageManagerSchema = _objectSpread22(_objectSpread22({}, PackageManagerSchema), {}, {
|
141311
|
-
items: PackageManagerSchema.items.filter(function(item) {
|
141312
|
-
return item.key !== PackageManager.Npm;
|
141313
|
-
})
|
141314
|
-
});
|
141315
|
-
var MonorepoSchemas = [MonorepoPackageManagerSchema];
|
141316
|
-
var MonorepoSchema = {
|
141317
|
-
key: "monorepo",
|
141318
|
-
isObject: true,
|
141319
|
-
items: MonorepoSchemas
|
141320
|
-
};
|
141321
|
-
var MonorepoDefaultConfig = {
|
141322
|
-
packageManager: PackageManager.Pnpm
|
141323
|
-
};
|
142496
|
+
init_treeshaking4();
|
141324
142497
|
var import_generator_utils = __toESM2(require_node9());
|
141325
142498
|
init_treeshaking3();
|
141326
142499
|
var ZH_LOCALE2 = {
|
@@ -141370,7 +142543,7 @@ var handleTemplateFile = async (context, generator, appApi) => {
|
|
141370
142543
|
...inputValue,
|
141371
142544
|
isMonorepo: true
|
141372
142545
|
});
|
141373
|
-
const modernVersion = await (0, import_generator_utils.getModernVersion)(Solution.Monorepo);
|
142546
|
+
const modernVersion = await (0, import_generator_utils.getModernVersion)(Solution.Monorepo, context.config.registry);
|
141374
142547
|
generator.logger.debug(`ans=`, ans);
|
141375
142548
|
const { packageManager } = ans;
|
141376
142549
|
await appApi.runSubGenerator(getGeneratorPath(BaseGenerator, context.config.distTag), void 0, { ...context.config, hasPlugin: false });
|