@modern-js/server-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 +1878 -810
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5380,7 +5380,7 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
5380
5380
|
if (typeof Symbol === "function") {
|
|
5381
5381
|
Readable.prototype[Symbol.asyncIterator] = function() {
|
|
5382
5382
|
if (S === void 0) {
|
|
5383
|
-
S = r2(
|
|
5383
|
+
S = r2(87);
|
|
5384
5384
|
}
|
|
5385
5385
|
return S(this);
|
|
5386
5386
|
};
|
|
@@ -6005,7 +6005,7 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6005
6005
|
Writable.prototype._destroy = function(e3, t3) {
|
|
6006
6006
|
t3(e3);
|
|
6007
6007
|
};
|
|
6008
|
-
},
|
|
6008
|
+
}, 87: (e2, t2, r2) => {
|
|
6009
6009
|
"use strict";
|
|
6010
6010
|
var i;
|
|
6011
6011
|
function _defineProperty3(e3, t3, r3) {
|
|
@@ -6761,7 +6761,7 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6761
6761
|
}, 598: (e2, t2, r2) => {
|
|
6762
6762
|
"use strict";
|
|
6763
6763
|
const i = r2(591);
|
|
6764
|
-
const n = r2(
|
|
6764
|
+
const n = r2(580);
|
|
6765
6765
|
e2.exports = i(() => {
|
|
6766
6766
|
n(() => {
|
|
6767
6767
|
process.stderr.write("\x1B[?25h");
|
|
@@ -6820,17 +6820,19 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6820
6820
|
}
|
|
6821
6821
|
return i.SlowBuffer(e3);
|
|
6822
6822
|
};
|
|
6823
|
-
},
|
|
6823
|
+
}, 580: (e2, t2, r2) => {
|
|
6824
6824
|
var i = global.process;
|
|
6825
6825
|
const processOk = function(e3) {
|
|
6826
6826
|
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";
|
|
6827
6827
|
};
|
|
6828
6828
|
if (!processOk(i)) {
|
|
6829
6829
|
e2.exports = function() {
|
|
6830
|
+
return function() {
|
|
6831
|
+
};
|
|
6830
6832
|
};
|
|
6831
6833
|
} else {
|
|
6832
6834
|
var n = r2(491);
|
|
6833
|
-
var s = r2(
|
|
6835
|
+
var s = r2(357);
|
|
6834
6836
|
var a = /^win/i.test(i.platform);
|
|
6835
6837
|
var o = r2(361);
|
|
6836
6838
|
if (typeof o !== "function") {
|
|
@@ -6850,7 +6852,8 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6850
6852
|
}
|
|
6851
6853
|
e2.exports = function(e3, t3) {
|
|
6852
6854
|
if (!processOk(global.process)) {
|
|
6853
|
-
return
|
|
6855
|
+
return function() {
|
|
6856
|
+
};
|
|
6854
6857
|
}
|
|
6855
6858
|
n.equal(typeof e3, "function", "a callback must be provided for exit handler");
|
|
6856
6859
|
if (d === false) {
|
|
@@ -6957,7 +6960,7 @@ var require_ora = __commonJSMin((exports, module2) => {
|
|
|
6957
6960
|
}
|
|
6958
6961
|
};
|
|
6959
6962
|
}
|
|
6960
|
-
},
|
|
6963
|
+
}, 357: (e2) => {
|
|
6961
6964
|
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
|
|
6962
6965
|
if (process.platform !== "win32") {
|
|
6963
6966
|
e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
@@ -7495,13 +7498,13 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
7495
7498
|
} else {
|
|
7496
7499
|
E = String(S);
|
|
7497
7500
|
if (k) {
|
|
7498
|
-
var
|
|
7499
|
-
if (
|
|
7500
|
-
var
|
|
7501
|
+
var x = g - E.length;
|
|
7502
|
+
if (x > 0) {
|
|
7503
|
+
var O = new Array(x + 1).join("0");
|
|
7501
7504
|
if (S < 0)
|
|
7502
|
-
E = "-" +
|
|
7505
|
+
E = "-" + O + E.slice(1);
|
|
7503
7506
|
else
|
|
7504
|
-
E =
|
|
7507
|
+
E = O + E;
|
|
7505
7508
|
}
|
|
7506
7509
|
}
|
|
7507
7510
|
}
|
|
@@ -7808,7 +7811,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
7808
7811
|
}
|
|
7809
7812
|
var i = r2(147);
|
|
7810
7813
|
var a = r2(17);
|
|
7811
|
-
var n = r2(
|
|
7814
|
+
var n = r2(235);
|
|
7812
7815
|
var s = r2(249);
|
|
7813
7816
|
var o = n.Minimatch;
|
|
7814
7817
|
function alphasort(t3, e3) {
|
|
@@ -7983,7 +7986,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
7983
7986
|
}, 978: (t2, e2, r2) => {
|
|
7984
7987
|
t2.exports = glob;
|
|
7985
7988
|
var i = r2(737);
|
|
7986
|
-
var a = r2(
|
|
7989
|
+
var a = r2(235);
|
|
7987
7990
|
var n = a.Minimatch;
|
|
7988
7991
|
var s = r2(315);
|
|
7989
7992
|
var o = r2(361).EventEmitter;
|
|
@@ -8532,7 +8535,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
8532
8535
|
t2.exports = globSync;
|
|
8533
8536
|
globSync.GlobSync = GlobSync;
|
|
8534
8537
|
var i = r2(737);
|
|
8535
|
-
var a = r2(
|
|
8538
|
+
var a = r2(235);
|
|
8536
8539
|
var n = a.Minimatch;
|
|
8537
8540
|
var s = r2(978).Glob;
|
|
8538
8541
|
var o = r2(837);
|
|
@@ -8944,14 +8947,16 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
8944
8947
|
}
|
|
8945
8948
|
};
|
|
8946
8949
|
}
|
|
8947
|
-
},
|
|
8950
|
+
}, 235: (t2, e2, r2) => {
|
|
8948
8951
|
t2.exports = minimatch;
|
|
8949
8952
|
minimatch.Minimatch = Minimatch;
|
|
8950
|
-
var i = {
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8953
|
+
var i = function() {
|
|
8954
|
+
try {
|
|
8955
|
+
return r2(17);
|
|
8956
|
+
} catch (t3) {
|
|
8957
|
+
}
|
|
8958
|
+
}() || { sep: "/" };
|
|
8959
|
+
minimatch.sep = i.sep;
|
|
8955
8960
|
var a = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
8956
8961
|
var n = r2(847);
|
|
8957
8962
|
var s = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } };
|
|
@@ -8975,58 +8980,68 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
8975
8980
|
};
|
|
8976
8981
|
}
|
|
8977
8982
|
function ext(t3, e3) {
|
|
8978
|
-
t3 = t3 || {};
|
|
8979
8983
|
e3 = e3 || {};
|
|
8980
8984
|
var r3 = {};
|
|
8981
|
-
Object.keys(e3).forEach(function(t4) {
|
|
8982
|
-
r3[t4] = e3[t4];
|
|
8983
|
-
});
|
|
8984
8985
|
Object.keys(t3).forEach(function(e4) {
|
|
8985
8986
|
r3[e4] = t3[e4];
|
|
8986
8987
|
});
|
|
8988
|
+
Object.keys(e3).forEach(function(t4) {
|
|
8989
|
+
r3[t4] = e3[t4];
|
|
8990
|
+
});
|
|
8987
8991
|
return r3;
|
|
8988
8992
|
}
|
|
8989
8993
|
minimatch.defaults = function(t3) {
|
|
8990
|
-
if (!t3 || !Object.keys(t3).length)
|
|
8994
|
+
if (!t3 || typeof t3 !== "object" || !Object.keys(t3).length) {
|
|
8991
8995
|
return minimatch;
|
|
8996
|
+
}
|
|
8992
8997
|
var e3 = minimatch;
|
|
8993
8998
|
var r3 = function minimatch2(r4, i2, a2) {
|
|
8994
|
-
return e3
|
|
8999
|
+
return e3(r4, i2, ext(t3, a2));
|
|
8995
9000
|
};
|
|
8996
9001
|
r3.Minimatch = function Minimatch2(r4, i2) {
|
|
8997
9002
|
return new e3.Minimatch(r4, ext(t3, i2));
|
|
8998
9003
|
};
|
|
9004
|
+
r3.Minimatch.defaults = function defaults(r4) {
|
|
9005
|
+
return e3.defaults(ext(t3, r4)).Minimatch;
|
|
9006
|
+
};
|
|
9007
|
+
r3.filter = function filter4(r4, i2) {
|
|
9008
|
+
return e3.filter(r4, ext(t3, i2));
|
|
9009
|
+
};
|
|
9010
|
+
r3.defaults = function defaults(r4) {
|
|
9011
|
+
return e3.defaults(ext(t3, r4));
|
|
9012
|
+
};
|
|
9013
|
+
r3.makeRe = function makeRe2(r4, i2) {
|
|
9014
|
+
return e3.makeRe(r4, ext(t3, i2));
|
|
9015
|
+
};
|
|
9016
|
+
r3.braceExpand = function braceExpand2(r4, i2) {
|
|
9017
|
+
return e3.braceExpand(r4, ext(t3, i2));
|
|
9018
|
+
};
|
|
9019
|
+
r3.match = function(r4, i2, a2) {
|
|
9020
|
+
return e3.match(r4, i2, ext(t3, a2));
|
|
9021
|
+
};
|
|
8999
9022
|
return r3;
|
|
9000
9023
|
};
|
|
9001
9024
|
Minimatch.defaults = function(t3) {
|
|
9002
|
-
if (!t3 || !Object.keys(t3).length)
|
|
9003
|
-
return Minimatch;
|
|
9004
9025
|
return minimatch.defaults(t3).Minimatch;
|
|
9005
9026
|
};
|
|
9006
9027
|
function minimatch(t3, e3, r3) {
|
|
9007
|
-
|
|
9008
|
-
throw new TypeError("glob pattern string required");
|
|
9009
|
-
}
|
|
9028
|
+
assertValidPattern(e3);
|
|
9010
9029
|
if (!r3)
|
|
9011
9030
|
r3 = {};
|
|
9012
9031
|
if (!r3.nocomment && e3.charAt(0) === "#") {
|
|
9013
9032
|
return false;
|
|
9014
9033
|
}
|
|
9015
|
-
if (e3.trim() === "")
|
|
9016
|
-
return t3 === "";
|
|
9017
9034
|
return new Minimatch(e3, r3).match(t3);
|
|
9018
9035
|
}
|
|
9019
9036
|
function Minimatch(t3, e3) {
|
|
9020
9037
|
if (!(this instanceof Minimatch)) {
|
|
9021
9038
|
return new Minimatch(t3, e3);
|
|
9022
9039
|
}
|
|
9023
|
-
|
|
9024
|
-
throw new TypeError("glob pattern string required");
|
|
9025
|
-
}
|
|
9040
|
+
assertValidPattern(t3);
|
|
9026
9041
|
if (!e3)
|
|
9027
9042
|
e3 = {};
|
|
9028
9043
|
t3 = t3.trim();
|
|
9029
|
-
if (i.sep !== "/") {
|
|
9044
|
+
if (!e3.allowWindowsEscape && i.sep !== "/") {
|
|
9030
9045
|
t3 = t3.split(i.sep).join("/");
|
|
9031
9046
|
}
|
|
9032
9047
|
this.options = e3;
|
|
@@ -9036,14 +9051,13 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9036
9051
|
this.negate = false;
|
|
9037
9052
|
this.comment = false;
|
|
9038
9053
|
this.empty = false;
|
|
9054
|
+
this.partial = !!e3.partial;
|
|
9039
9055
|
this.make();
|
|
9040
9056
|
}
|
|
9041
9057
|
Minimatch.prototype.debug = function() {
|
|
9042
9058
|
};
|
|
9043
9059
|
Minimatch.prototype.make = make;
|
|
9044
9060
|
function make() {
|
|
9045
|
-
if (this._made)
|
|
9046
|
-
return;
|
|
9047
9061
|
var t3 = this.pattern;
|
|
9048
9062
|
var e3 = this.options;
|
|
9049
9063
|
if (!e3.nocomment && t3.charAt(0) === "#") {
|
|
@@ -9057,7 +9071,9 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9057
9071
|
this.parseNegate();
|
|
9058
9072
|
var r3 = this.globSet = this.braceExpand();
|
|
9059
9073
|
if (e3.debug)
|
|
9060
|
-
this.debug =
|
|
9074
|
+
this.debug = function debug() {
|
|
9075
|
+
console.error.apply(console, arguments);
|
|
9076
|
+
};
|
|
9061
9077
|
this.debug(this.pattern, r3);
|
|
9062
9078
|
r3 = this.globParts = r3.map(function(t4) {
|
|
9063
9079
|
return t4.split(p);
|
|
@@ -9102,23 +9118,32 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9102
9118
|
}
|
|
9103
9119
|
}
|
|
9104
9120
|
t3 = typeof t3 === "undefined" ? this.pattern : t3;
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
}
|
|
9108
|
-
if (e3.nobrace || !t3.match(/\{.*\}/)) {
|
|
9121
|
+
assertValidPattern(t3);
|
|
9122
|
+
if (e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3)) {
|
|
9109
9123
|
return [t3];
|
|
9110
9124
|
}
|
|
9111
9125
|
return n(t3);
|
|
9112
9126
|
}
|
|
9113
|
-
|
|
9114
|
-
var
|
|
9115
|
-
|
|
9116
|
-
|
|
9127
|
+
var v = 1024 * 64;
|
|
9128
|
+
var assertValidPattern = function(t3) {
|
|
9129
|
+
if (typeof t3 !== "string") {
|
|
9130
|
+
throw new TypeError("invalid pattern");
|
|
9131
|
+
}
|
|
9132
|
+
if (t3.length > v) {
|
|
9117
9133
|
throw new TypeError("pattern is too long");
|
|
9118
9134
|
}
|
|
9135
|
+
};
|
|
9136
|
+
Minimatch.prototype.parse = parse;
|
|
9137
|
+
var d = {};
|
|
9138
|
+
function parse(t3, e3) {
|
|
9139
|
+
assertValidPattern(t3);
|
|
9119
9140
|
var r3 = this.options;
|
|
9120
|
-
if (
|
|
9121
|
-
|
|
9141
|
+
if (t3 === "**") {
|
|
9142
|
+
if (!r3.noglobstar)
|
|
9143
|
+
return a;
|
|
9144
|
+
else
|
|
9145
|
+
t3 = "*";
|
|
9146
|
+
}
|
|
9122
9147
|
if (t3 === "")
|
|
9123
9148
|
return "";
|
|
9124
9149
|
var i2 = "";
|
|
@@ -9126,15 +9151,15 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9126
9151
|
var h2 = false;
|
|
9127
9152
|
var l2 = [];
|
|
9128
9153
|
var p2 = [];
|
|
9129
|
-
var
|
|
9154
|
+
var v2;
|
|
9130
9155
|
var m = false;
|
|
9131
9156
|
var b = -1;
|
|
9132
9157
|
var g = -1;
|
|
9133
9158
|
var y = t3.charAt(0) === "." ? "" : r3.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
|
9134
9159
|
var _ = this;
|
|
9135
9160
|
function clearStateChar() {
|
|
9136
|
-
if (
|
|
9137
|
-
switch (
|
|
9161
|
+
if (v2) {
|
|
9162
|
+
switch (v2) {
|
|
9138
9163
|
case "*":
|
|
9139
9164
|
i2 += c;
|
|
9140
9165
|
n2 = true;
|
|
@@ -9144,11 +9169,11 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9144
9169
|
n2 = true;
|
|
9145
9170
|
break;
|
|
9146
9171
|
default:
|
|
9147
|
-
i2 += "\\" +
|
|
9172
|
+
i2 += "\\" + v2;
|
|
9148
9173
|
break;
|
|
9149
9174
|
}
|
|
9150
|
-
_.debug("clearStateChar %j %j",
|
|
9151
|
-
|
|
9175
|
+
_.debug("clearStateChar %j %j", v2, i2);
|
|
9176
|
+
v2 = false;
|
|
9152
9177
|
}
|
|
9153
9178
|
}
|
|
9154
9179
|
for (var w = 0, k = t3.length, S; w < k && (S = t3.charAt(w)); w++) {
|
|
@@ -9159,8 +9184,9 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9159
9184
|
continue;
|
|
9160
9185
|
}
|
|
9161
9186
|
switch (S) {
|
|
9162
|
-
case "/":
|
|
9187
|
+
case "/": {
|
|
9163
9188
|
return false;
|
|
9189
|
+
}
|
|
9164
9190
|
case "\\":
|
|
9165
9191
|
clearStateChar();
|
|
9166
9192
|
h2 = true;
|
|
@@ -9178,9 +9204,9 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9178
9204
|
i2 += S;
|
|
9179
9205
|
continue;
|
|
9180
9206
|
}
|
|
9181
|
-
_.debug("call clearStateChar %j",
|
|
9207
|
+
_.debug("call clearStateChar %j", v2);
|
|
9182
9208
|
clearStateChar();
|
|
9183
|
-
|
|
9209
|
+
v2 = S;
|
|
9184
9210
|
if (r3.noext)
|
|
9185
9211
|
clearStateChar();
|
|
9186
9212
|
continue;
|
|
@@ -9189,14 +9215,14 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9189
9215
|
i2 += "(";
|
|
9190
9216
|
continue;
|
|
9191
9217
|
}
|
|
9192
|
-
if (!
|
|
9218
|
+
if (!v2) {
|
|
9193
9219
|
i2 += "\\(";
|
|
9194
9220
|
continue;
|
|
9195
9221
|
}
|
|
9196
|
-
l2.push({ type:
|
|
9197
|
-
i2 +=
|
|
9198
|
-
this.debug("plType %j %j",
|
|
9199
|
-
|
|
9222
|
+
l2.push({ type: v2, start: w - 1, reStart: i2.length, open: s[v2].open, close: s[v2].close });
|
|
9223
|
+
i2 += v2 === "!" ? "(?:(?!(?:" : "(?:";
|
|
9224
|
+
this.debug("plType %j %j", v2, i2);
|
|
9225
|
+
v2 = false;
|
|
9200
9226
|
continue;
|
|
9201
9227
|
case ")":
|
|
9202
9228
|
if (m || !l2.length) {
|
|
@@ -9238,17 +9264,15 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9238
9264
|
h2 = false;
|
|
9239
9265
|
continue;
|
|
9240
9266
|
}
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
continue;
|
|
9251
|
-
}
|
|
9267
|
+
var x = t3.substring(g + 1, w);
|
|
9268
|
+
try {
|
|
9269
|
+
RegExp("[" + x + "]");
|
|
9270
|
+
} catch (t4) {
|
|
9271
|
+
var O = this.parse(x, d);
|
|
9272
|
+
i2 = i2.substr(0, b) + "\\[" + O[0] + "\\]";
|
|
9273
|
+
n2 = n2 || O[1];
|
|
9274
|
+
m = false;
|
|
9275
|
+
continue;
|
|
9252
9276
|
}
|
|
9253
9277
|
n2 = true;
|
|
9254
9278
|
m = false;
|
|
@@ -9265,10 +9289,10 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9265
9289
|
}
|
|
9266
9290
|
}
|
|
9267
9291
|
if (m) {
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
i2 = i2.substr(0, b) + "\\[" +
|
|
9271
|
-
n2 = n2 ||
|
|
9292
|
+
x = t3.substr(g + 1);
|
|
9293
|
+
O = this.parse(x, d);
|
|
9294
|
+
i2 = i2.substr(0, b) + "\\[" + O[0];
|
|
9295
|
+
n2 = n2 || O[1];
|
|
9272
9296
|
}
|
|
9273
9297
|
for (E = l2.pop(); E; E = l2.pop()) {
|
|
9274
9298
|
var A = i2.slice(E.reStart + E.open.length);
|
|
@@ -9290,29 +9314,29 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9290
9314
|
}
|
|
9291
9315
|
var j = false;
|
|
9292
9316
|
switch (i2.charAt(0)) {
|
|
9293
|
-
case ".":
|
|
9294
9317
|
case "[":
|
|
9318
|
+
case ".":
|
|
9295
9319
|
case "(":
|
|
9296
9320
|
j = true;
|
|
9297
9321
|
}
|
|
9298
|
-
for (var
|
|
9299
|
-
var
|
|
9300
|
-
var
|
|
9301
|
-
var
|
|
9302
|
-
var
|
|
9303
|
-
var
|
|
9304
|
-
|
|
9305
|
-
var
|
|
9306
|
-
var P =
|
|
9307
|
-
for (w = 0; w <
|
|
9322
|
+
for (var M = p2.length - 1; M > -1; M--) {
|
|
9323
|
+
var I = p2[M];
|
|
9324
|
+
var R = i2.slice(0, I.reStart);
|
|
9325
|
+
var C = i2.slice(I.reStart, I.reEnd - 8);
|
|
9326
|
+
var L = i2.slice(I.reEnd - 8, I.reEnd);
|
|
9327
|
+
var N = i2.slice(I.reEnd);
|
|
9328
|
+
L += N;
|
|
9329
|
+
var T = R.split("(").length - 1;
|
|
9330
|
+
var P = N;
|
|
9331
|
+
for (w = 0; w < T; w++) {
|
|
9308
9332
|
P = P.replace(/\)[+*?]?/, "");
|
|
9309
9333
|
}
|
|
9310
|
-
|
|
9334
|
+
N = P;
|
|
9311
9335
|
var D = "";
|
|
9312
|
-
if (
|
|
9336
|
+
if (N === "" && e3 !== d) {
|
|
9313
9337
|
D = "$";
|
|
9314
9338
|
}
|
|
9315
|
-
var $ =
|
|
9339
|
+
var $ = R + C + N + D + L;
|
|
9316
9340
|
i2 = $;
|
|
9317
9341
|
}
|
|
9318
9342
|
if (i2 !== "" && n2) {
|
|
@@ -9321,7 +9345,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9321
9345
|
if (j) {
|
|
9322
9346
|
i2 = y + i2;
|
|
9323
9347
|
}
|
|
9324
|
-
if (e3 ===
|
|
9348
|
+
if (e3 === d) {
|
|
9325
9349
|
return [i2, n2];
|
|
9326
9350
|
}
|
|
9327
9351
|
if (!n2) {
|
|
@@ -9329,13 +9353,13 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9329
9353
|
}
|
|
9330
9354
|
var F = r3.nocase ? "i" : "";
|
|
9331
9355
|
try {
|
|
9332
|
-
var
|
|
9356
|
+
var B = new RegExp("^" + i2 + "$", F);
|
|
9333
9357
|
} catch (t4) {
|
|
9334
9358
|
return new RegExp("$.");
|
|
9335
9359
|
}
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
return
|
|
9360
|
+
B._glob = t3;
|
|
9361
|
+
B._src = i2;
|
|
9362
|
+
return B;
|
|
9339
9363
|
}
|
|
9340
9364
|
minimatch.makeRe = function(t3, e3) {
|
|
9341
9365
|
return new Minimatch(t3, e3 || {}).makeRe();
|
|
@@ -9378,8 +9402,9 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9378
9402
|
}
|
|
9379
9403
|
return t3;
|
|
9380
9404
|
};
|
|
9381
|
-
Minimatch.prototype.match = match
|
|
9382
|
-
|
|
9405
|
+
Minimatch.prototype.match = function match(t3, e3) {
|
|
9406
|
+
if (typeof e3 === "undefined")
|
|
9407
|
+
e3 = this.partial;
|
|
9383
9408
|
this.debug("match", t3, this.pattern);
|
|
9384
9409
|
if (this.comment)
|
|
9385
9410
|
return false;
|
|
@@ -9418,7 +9443,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9418
9443
|
if (r3.flipNegate)
|
|
9419
9444
|
return false;
|
|
9420
9445
|
return this.negate;
|
|
9421
|
-
}
|
|
9446
|
+
};
|
|
9422
9447
|
Minimatch.prototype.matchOne = function(t3, e3, r3) {
|
|
9423
9448
|
var i2 = this.options;
|
|
9424
9449
|
this.debug("matchOne", { this: this, file: t3, pattern: e3 });
|
|
@@ -9464,19 +9489,15 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9464
9489
|
}
|
|
9465
9490
|
return false;
|
|
9466
9491
|
}
|
|
9467
|
-
var
|
|
9492
|
+
var d2;
|
|
9468
9493
|
if (typeof h2 === "string") {
|
|
9469
|
-
|
|
9470
|
-
|
|
9471
|
-
} else {
|
|
9472
|
-
d = l2 === h2;
|
|
9473
|
-
}
|
|
9474
|
-
this.debug("string match", h2, l2, d);
|
|
9494
|
+
d2 = l2 === h2;
|
|
9495
|
+
this.debug("string match", h2, l2, d2);
|
|
9475
9496
|
} else {
|
|
9476
|
-
|
|
9477
|
-
this.debug("pattern match", h2, l2,
|
|
9497
|
+
d2 = l2.match(h2);
|
|
9498
|
+
this.debug("pattern match", h2, l2, d2);
|
|
9478
9499
|
}
|
|
9479
|
-
if (!
|
|
9500
|
+
if (!d2)
|
|
9480
9501
|
return false;
|
|
9481
9502
|
}
|
|
9482
9503
|
if (n2 === o2 && s2 === c2) {
|
|
@@ -9484,8 +9505,7 @@ var require_glob = __commonJSMin((exports, module2) => {
|
|
|
9484
9505
|
} else if (n2 === o2) {
|
|
9485
9506
|
return r3;
|
|
9486
9507
|
} else if (s2 === c2) {
|
|
9487
|
-
|
|
9488
|
-
return m;
|
|
9508
|
+
return n2 === o2 - 1 && t3[n2] === "";
|
|
9489
9509
|
}
|
|
9490
9510
|
throw new Error("wtf?");
|
|
9491
9511
|
};
|
|
@@ -13110,7 +13130,7 @@ ${o.message}` : x;
|
|
|
13110
13130
|
}, 878: (e2, t2, n2) => {
|
|
13111
13131
|
"use strict";
|
|
13112
13132
|
const r = n2(37);
|
|
13113
|
-
const o = n2(
|
|
13133
|
+
const o = n2(580);
|
|
13114
13134
|
const s = 1e3 * 5;
|
|
13115
13135
|
const spawnedKill = (e3, t3 = "SIGTERM", n3 = {}) => {
|
|
13116
13136
|
const r2 = e3(t3);
|
|
@@ -13733,17 +13753,19 @@ ${o.message}` : x;
|
|
|
13733
13753
|
}, 609: (e2) => {
|
|
13734
13754
|
"use strict";
|
|
13735
13755
|
e2.exports = /^#!(.*)/;
|
|
13736
|
-
},
|
|
13756
|
+
}, 580: (e2, t2, n2) => {
|
|
13737
13757
|
var r = global.process;
|
|
13738
13758
|
const processOk = function(e3) {
|
|
13739
13759
|
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";
|
|
13740
13760
|
};
|
|
13741
13761
|
if (!processOk(r)) {
|
|
13742
13762
|
e2.exports = function() {
|
|
13763
|
+
return function() {
|
|
13764
|
+
};
|
|
13743
13765
|
};
|
|
13744
13766
|
} else {
|
|
13745
13767
|
var o = n2(491);
|
|
13746
|
-
var s = n2(
|
|
13768
|
+
var s = n2(357);
|
|
13747
13769
|
var i = /^win/i.test(r.platform);
|
|
13748
13770
|
var a = n2(361);
|
|
13749
13771
|
if (typeof a !== "function") {
|
|
@@ -13763,7 +13785,8 @@ ${o.message}` : x;
|
|
|
13763
13785
|
}
|
|
13764
13786
|
e2.exports = function(e3, t3) {
|
|
13765
13787
|
if (!processOk(global.process)) {
|
|
13766
|
-
return
|
|
13788
|
+
return function() {
|
|
13789
|
+
};
|
|
13767
13790
|
}
|
|
13768
13791
|
o.equal(typeof e3, "function", "a callback must be provided for exit handler");
|
|
13769
13792
|
if (f === false) {
|
|
@@ -13870,7 +13893,7 @@ ${o.message}` : x;
|
|
|
13870
13893
|
}
|
|
13871
13894
|
};
|
|
13872
13895
|
}
|
|
13873
|
-
},
|
|
13896
|
+
}, 357: (e2) => {
|
|
13874
13897
|
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
|
|
13875
13898
|
if (process.platform !== "win32") {
|
|
13876
13899
|
e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
@@ -19478,8 +19501,8 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
|
19478
19501
|
if (result2 instanceof LazyWrapper) {
|
|
19479
19502
|
result2 = result2.value();
|
|
19480
19503
|
}
|
|
19481
|
-
return arrayReduce(actions, function(result3,
|
|
19482
|
-
return
|
|
19504
|
+
return arrayReduce(actions, function(result3, action2) {
|
|
19505
|
+
return action2.func.apply(action2.thisArg, arrayPush([result3], action2.args));
|
|
19483
19506
|
}, result2);
|
|
19484
19507
|
}
|
|
19485
19508
|
function baseXor(arrays, iteratee2, comparator) {
|
|
@@ -24937,7 +24960,7 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
|
|
|
24937
24960
|
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;
|
|
24938
24961
|
const n = r2(1017);
|
|
24939
24962
|
const s = r2(5976);
|
|
24940
|
-
const i = r2(
|
|
24963
|
+
const i = r2(8627);
|
|
24941
24964
|
const o = "**";
|
|
24942
24965
|
const a = "\\";
|
|
24943
24966
|
const u = /[*?]|^!/;
|
|
@@ -25792,7 +25815,7 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
|
|
|
25792
25815
|
}
|
|
25793
25816
|
return t3;
|
|
25794
25817
|
}
|
|
25795
|
-
},
|
|
25818
|
+
}, 8627: (t2, e2, r2) => {
|
|
25796
25819
|
"use strict";
|
|
25797
25820
|
const n = r2(3837);
|
|
25798
25821
|
const s = r2(1570);
|
|
@@ -25855,9 +25878,9 @@ var require_fast_glob = __commonJSMin((exports, module2) => {
|
|
|
25855
25878
|
r3.onResult(t4);
|
|
25856
25879
|
s2.push(t4.output);
|
|
25857
25880
|
};
|
|
25858
|
-
let i2 = micromatch(t3, e3, { ...r3, onResult });
|
|
25881
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
|
25859
25882
|
for (let t4 of s2) {
|
|
25860
|
-
if (!i2.
|
|
25883
|
+
if (!i2.has(t4)) {
|
|
25861
25884
|
n2.add(t4);
|
|
25862
25885
|
}
|
|
25863
25886
|
}
|
|
@@ -30730,11 +30753,11 @@ var require_browserslist = __commonJSMin((exports, module2) => {
|
|
|
30730
30753
|
BrowserslistError.prototype = Error.prototype;
|
|
30731
30754
|
e2.exports = BrowserslistError;
|
|
30732
30755
|
}, 751: (e2, s2, r2) => {
|
|
30733
|
-
var n = r2(
|
|
30756
|
+
var n = r2(330);
|
|
30734
30757
|
var t = r2(768).agents;
|
|
30735
|
-
var a = r2(
|
|
30758
|
+
var a = r2(97);
|
|
30736
30759
|
var i = r2(17);
|
|
30737
|
-
var o = r2(
|
|
30760
|
+
var o = r2(333);
|
|
30738
30761
|
var l = r2(923);
|
|
30739
30762
|
var f = r2(347);
|
|
30740
30763
|
var u = 365.259641 * 24 * 60 * 60 * 1e3;
|
|
@@ -31883,8 +31906,8 @@ var require_browserslist = __commonJSMin((exports, module2) => {
|
|
|
31883
31906
|
}, currentNode: function currentNode() {
|
|
31884
31907
|
return "node " + process.versions.node;
|
|
31885
31908
|
} };
|
|
31886
|
-
},
|
|
31887
|
-
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" };
|
|
31909
|
+
}, 333: (e2) => {
|
|
31910
|
+
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" };
|
|
31888
31911
|
}, 174: (e2) => {
|
|
31889
31912
|
function webpackEmptyContext(e3) {
|
|
31890
31913
|
var s2 = new Error("Cannot find module '" + e3 + "'");
|
|
@@ -31910,12 +31933,12 @@ var require_browserslist = __commonJSMin((exports, module2) => {
|
|
|
31910
31933
|
}, 17: (e2) => {
|
|
31911
31934
|
"use strict";
|
|
31912
31935
|
e2.exports = __require("path");
|
|
31913
|
-
},
|
|
31936
|
+
}, 330: (e2) => {
|
|
31914
31937
|
"use strict";
|
|
31915
|
-
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}]');
|
|
31916
|
-
},
|
|
31938
|
+
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}]');
|
|
31939
|
+
}, 97: (e2) => {
|
|
31917
31940
|
"use strict";
|
|
31918
|
-
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":""}}');
|
|
31941
|
+
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":""}}');
|
|
31919
31942
|
} };
|
|
31920
31943
|
var s = {};
|
|
31921
31944
|
function __nccwpck_require__(r2) {
|
|
@@ -34626,17 +34649,17 @@ var require_logger = __commonJSMin((exports) => {
|
|
|
34626
34649
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
|
34627
34650
|
return;
|
|
34628
34651
|
}
|
|
34629
|
-
let
|
|
34652
|
+
let label25 = "";
|
|
34630
34653
|
let text = "";
|
|
34631
34654
|
const logType = this.types[type];
|
|
34632
34655
|
if (this.config.displayLabel && logType.label) {
|
|
34633
|
-
|
|
34656
|
+
label25 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
|
34634
34657
|
if (this.config.underlineLabel) {
|
|
34635
|
-
|
|
34658
|
+
label25 = underline(label25).padEnd(this.longestUnderlinedLabel.length + 1);
|
|
34636
34659
|
} else {
|
|
34637
|
-
|
|
34660
|
+
label25 = label25.padEnd(this.longestLabel.length + 1);
|
|
34638
34661
|
}
|
|
34639
|
-
|
|
34662
|
+
label25 = logType.color ? chalk_1.default[logType.color](label25) : label25;
|
|
34640
34663
|
}
|
|
34641
34664
|
if (message instanceof Error) {
|
|
34642
34665
|
if (message.stack) {
|
|
@@ -34652,15 +34675,15 @@ ${grey(rest.join("\n"))}`;
|
|
|
34652
34675
|
if (logType.level === "warn" || logType.level === "error") {
|
|
34653
34676
|
this.retainLog(type, text);
|
|
34654
34677
|
}
|
|
34655
|
-
const log =
|
|
34678
|
+
const log = label25.length > 0 ? `${label25} ${text}` : text;
|
|
34656
34679
|
console.log(log, ...args);
|
|
34657
34680
|
}
|
|
34658
34681
|
getLongestLabel() {
|
|
34659
34682
|
let longestLabel = "";
|
|
34660
34683
|
Object.keys(this.types).forEach((type) => {
|
|
34661
|
-
const { label:
|
|
34662
|
-
if (
|
|
34663
|
-
longestLabel =
|
|
34684
|
+
const { label: label25 = "" } = this.types[type];
|
|
34685
|
+
if (label25.length > longestLabel.length) {
|
|
34686
|
+
longestLabel = label25;
|
|
34664
34687
|
}
|
|
34665
34688
|
});
|
|
34666
34689
|
return longestLabel;
|
|
@@ -35565,18 +35588,14 @@ var require_runtimeExports = __commonJSMin((exports) => {
|
|
|
35565
35588
|
return res;
|
|
35566
35589
|
};
|
|
35567
35590
|
};
|
|
35568
|
-
exports.createRuntimeExportsUtils = memo((pwd = "", namespace
|
|
35569
|
-
const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace
|
|
35570
|
-
const entryExportTsFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.d.ts` : "index.d.ts"}`);
|
|
35591
|
+
exports.createRuntimeExportsUtils = memo((pwd = "", namespace = "index") => {
|
|
35592
|
+
const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace}.js`);
|
|
35571
35593
|
const addExport = (statement) => {
|
|
35572
35594
|
statement = (0, path_2.normalizeOutputPath)(statement);
|
|
35573
35595
|
try {
|
|
35574
35596
|
compiled_1.fs.ensureFileSync(entryExportFile);
|
|
35575
|
-
compiled_1.fs.ensureFileSync(entryExportTsFile);
|
|
35576
35597
|
if (!compiled_1.fs.readFileSync(entryExportFile, "utf8").includes(statement)) {
|
|
35577
35598
|
compiled_1.fs.appendFileSync(entryExportFile, `${statement}
|
|
35578
|
-
`);
|
|
35579
|
-
ts && compiled_1.fs.appendFileSync(entryExportTsFile, `${statement.replace(".js", ".d")}
|
|
35580
35599
|
`);
|
|
35581
35600
|
}
|
|
35582
35601
|
} catch {
|
|
@@ -35652,7 +35671,7 @@ var require_prettyInstructions = __commonJSMin((exports) => {
|
|
|
35652
35671
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
35653
35672
|
};
|
|
35654
35673
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35655
|
-
exports.prettyInstructions = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
|
|
35674
|
+
exports.prettyInstructions = exports.getAddressUrls = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
|
|
35656
35675
|
var os_1 = __importDefault(__require("os"));
|
|
35657
35676
|
var compiled_1 = require_compiled();
|
|
35658
35677
|
var is_1 = require_is();
|
|
@@ -35686,9 +35705,10 @@ var require_prettyInstructions = __commonJSMin((exports) => {
|
|
|
35686
35705
|
return memo;
|
|
35687
35706
|
}, []);
|
|
35688
35707
|
};
|
|
35708
|
+
exports.getAddressUrls = getAddressUrls;
|
|
35689
35709
|
var prettyInstructions = (appContext, config) => {
|
|
35690
35710
|
const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
|
|
35691
|
-
const urls = getAddressUrls(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
|
|
35711
|
+
const urls = (0, exports.getAddressUrls)(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
|
|
35692
35712
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
|
35693
35713
|
let message = "App running at:\n\n";
|
|
35694
35714
|
if ((0, exports.isSingleEntry)(entrypoints) || apiOnly) {
|
|
@@ -36090,8 +36110,9 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36090
36110
|
LESS: "less",
|
|
36091
36111
|
SASS: "sass",
|
|
36092
36112
|
SVG: "svg",
|
|
36093
|
-
|
|
36094
|
-
|
|
36113
|
+
PUG: "pug",
|
|
36114
|
+
TOML: "toml",
|
|
36115
|
+
YAML: "yaml"
|
|
36095
36116
|
},
|
|
36096
36117
|
ONE_OF: {
|
|
36097
36118
|
JS: "js",
|
|
@@ -36109,6 +36130,7 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36109
36130
|
SASS_MODULES: "sass-modules",
|
|
36110
36131
|
SVG: "svg",
|
|
36111
36132
|
SVG_URL: "svg-url",
|
|
36133
|
+
SVG_ASSET: "svg-asset",
|
|
36112
36134
|
SVG_INLINE: "svg-inline",
|
|
36113
36135
|
ASSETS: "assets",
|
|
36114
36136
|
ASSETS_URL: "assets-url",
|
|
@@ -36120,12 +36142,14 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36120
36142
|
SASS: "sass",
|
|
36121
36143
|
LESS: "less",
|
|
36122
36144
|
URL: "url",
|
|
36145
|
+
PUG: "pug",
|
|
36123
36146
|
FILE: "file",
|
|
36124
36147
|
SVGR: "svgr",
|
|
36125
36148
|
YAML: "yaml",
|
|
36126
36149
|
TOML: "toml",
|
|
36127
36150
|
HTML: "html",
|
|
36128
36151
|
BABEL: "babel",
|
|
36152
|
+
ESBUILD: "esbuild",
|
|
36129
36153
|
STYLE: "style-loader",
|
|
36130
36154
|
POSTCSS: "postcss",
|
|
36131
36155
|
MARKDOWN: "markdown",
|
|
@@ -36150,7 +36174,8 @@ var require_chainId = __commonJSMin((exports) => {
|
|
|
36150
36174
|
HTML_CROSS_ORIGIN: "html-cross-origin",
|
|
36151
36175
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
|
36152
36176
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
|
36153
|
-
NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
|
|
36177
|
+
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
|
36178
|
+
MODULE_DEPENDENCY_ERROR: "module-dependency-error"
|
|
36154
36179
|
},
|
|
36155
36180
|
MINIMIZER: {
|
|
36156
36181
|
JS: "js",
|
|
@@ -36250,24 +36275,20 @@ var require_dist = __commonJSMin((exports) => {
|
|
|
36250
36275
|
__exportStar(require_chainId(), exports);
|
|
36251
36276
|
__exportStar(require_reactVersion(), exports);
|
|
36252
36277
|
});
|
|
36253
|
-
|
|
36254
|
-
|
|
36255
|
-
|
|
36256
|
-
|
|
36257
|
-
|
|
36258
|
-
|
|
36259
|
-
|
|
36260
|
-
|
|
36261
|
-
}
|
|
36262
|
-
|
|
36263
|
-
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
36264
|
-
}
|
|
36265
|
-
function stripAnsi(string) {
|
|
36266
|
-
if (typeof string !== "string") {
|
|
36267
|
-
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
36268
|
-
}
|
|
36269
|
-
return string.replace(ansiRegex(), "");
|
|
36278
|
+
function _defineProperty(obj, key, value) {
|
|
36279
|
+
if (key in obj) {
|
|
36280
|
+
Object.defineProperty(obj, key, {
|
|
36281
|
+
value,
|
|
36282
|
+
enumerable: true,
|
|
36283
|
+
configurable: true,
|
|
36284
|
+
writable: true
|
|
36285
|
+
});
|
|
36286
|
+
} else {
|
|
36287
|
+
obj[key] = value;
|
|
36270
36288
|
}
|
|
36289
|
+
return obj;
|
|
36290
|
+
}
|
|
36291
|
+
var init_defineProperty = __esmMin(() => {
|
|
36271
36292
|
});
|
|
36272
36293
|
function _classCallCheck(instance, Constructor) {
|
|
36273
36294
|
if (!(instance instanceof Constructor)) {
|
|
@@ -36298,21 +36319,6 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
36298
36319
|
}
|
|
36299
36320
|
var init_createClass = __esmMin(() => {
|
|
36300
36321
|
});
|
|
36301
|
-
function _defineProperty(obj, key, value) {
|
|
36302
|
-
if (key in obj) {
|
|
36303
|
-
Object.defineProperty(obj, key, {
|
|
36304
|
-
value,
|
|
36305
|
-
enumerable: true,
|
|
36306
|
-
configurable: true,
|
|
36307
|
-
writable: true
|
|
36308
|
-
});
|
|
36309
|
-
} else {
|
|
36310
|
-
obj[key] = value;
|
|
36311
|
-
}
|
|
36312
|
-
return obj;
|
|
36313
|
-
}
|
|
36314
|
-
var init_defineProperty = __esmMin(() => {
|
|
36315
|
-
});
|
|
36316
36322
|
function getObjKeyMap(obj) {
|
|
36317
36323
|
var prefix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
36318
36324
|
var result = {};
|
|
@@ -36415,6 +36421,1374 @@ var init_treeshaking = __esmMin(() => {
|
|
|
36415
36421
|
return I18n3;
|
|
36416
36422
|
}();
|
|
36417
36423
|
});
|
|
36424
|
+
var ZH_LOCALE;
|
|
36425
|
+
var init_zh = __esmMin(() => {
|
|
36426
|
+
ZH_LOCALE = {
|
|
36427
|
+
solution: {
|
|
36428
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
|
36429
|
+
mwa: "\u5E94\u7528",
|
|
36430
|
+
module: "\u6A21\u5757",
|
|
36431
|
+
monorepo: "Monorepo",
|
|
36432
|
+
custom: "\u81EA\u5B9A\u4E49",
|
|
36433
|
+
"default": "\u9ED8\u8BA4"
|
|
36434
|
+
},
|
|
36435
|
+
scenes: {
|
|
36436
|
+
self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
|
|
36437
|
+
},
|
|
36438
|
+
sub_solution: {
|
|
36439
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
|
36440
|
+
mwa: "\u5E94\u7528",
|
|
36441
|
+
mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
|
|
36442
|
+
module: "\u6A21\u5757",
|
|
36443
|
+
inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
|
|
36444
|
+
},
|
|
36445
|
+
action: {
|
|
36446
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
|
|
36447
|
+
"function": {
|
|
36448
|
+
self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
|
|
36449
|
+
tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
|
|
36450
|
+
less: "\u542F\u7528 Less \u652F\u6301",
|
|
36451
|
+
sass: "\u542F\u7528 Sass \u652F\u6301",
|
|
36452
|
+
bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
|
|
36453
|
+
micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
|
|
36454
|
+
electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
|
|
36455
|
+
i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
|
|
36456
|
+
test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
|
|
36457
|
+
e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
|
|
36458
|
+
doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
|
|
36459
|
+
storybook: "\u542F\u7528\u300CStorybook\u300D",
|
|
36460
|
+
runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
|
|
36461
|
+
mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
|
|
36462
|
+
ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
|
|
36463
|
+
polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
|
|
36464
|
+
proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
|
|
36465
|
+
},
|
|
36466
|
+
element: {
|
|
36467
|
+
self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
|
|
36468
|
+
entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
|
|
36469
|
+
server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
|
|
36470
|
+
},
|
|
36471
|
+
refactor: {
|
|
36472
|
+
self: "\u81EA\u52A8\u91CD\u6784",
|
|
36473
|
+
bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
|
|
36474
|
+
}
|
|
36475
|
+
},
|
|
36476
|
+
"boolean": {
|
|
36477
|
+
yes: "\u662F",
|
|
36478
|
+
no: "\u5426"
|
|
36479
|
+
},
|
|
36480
|
+
language: {
|
|
36481
|
+
self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
|
|
36482
|
+
},
|
|
36483
|
+
packageManager: {
|
|
36484
|
+
self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
|
|
36485
|
+
},
|
|
36486
|
+
runWay: {
|
|
36487
|
+
self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
|
|
36488
|
+
no: "\u4E0D\u9700\u8981",
|
|
36489
|
+
electron: "Electron"
|
|
36490
|
+
},
|
|
36491
|
+
needModifyConfig: {
|
|
36492
|
+
self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
|
36493
|
+
enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
|
|
36494
|
+
enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
|
|
36495
|
+
},
|
|
36496
|
+
entry: {
|
|
36497
|
+
name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
|
|
36498
|
+
no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
|
36499
|
+
no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
|
|
36500
|
+
needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
|
36501
|
+
disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
|
|
36502
|
+
clientRoute: {
|
|
36503
|
+
self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
|
|
36504
|
+
selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
|
|
36505
|
+
conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
|
|
36506
|
+
no: "\u4E0D\u542F\u7528"
|
|
36507
|
+
}
|
|
36508
|
+
},
|
|
36509
|
+
packageName: {
|
|
36510
|
+
self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
|
|
36511
|
+
sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
|
|
36512
|
+
no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
|
|
36513
|
+
},
|
|
36514
|
+
packagePath: {
|
|
36515
|
+
self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
|
|
36516
|
+
no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
|
36517
|
+
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"
|
|
36518
|
+
},
|
|
36519
|
+
framework: {
|
|
36520
|
+
self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
|
|
36521
|
+
egg: "Egg",
|
|
36522
|
+
express: "Express",
|
|
36523
|
+
koa: "Koa",
|
|
36524
|
+
nest: "Nest"
|
|
36525
|
+
},
|
|
36526
|
+
bff: {
|
|
36527
|
+
bffType: {
|
|
36528
|
+
self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
|
|
36529
|
+
func: "\u51FD\u6570\u6A21\u5F0F",
|
|
36530
|
+
framework: "\u6846\u67B6\u6A21\u5F0F"
|
|
36531
|
+
}
|
|
36532
|
+
}
|
|
36533
|
+
};
|
|
36534
|
+
});
|
|
36535
|
+
var EN_LOCALE;
|
|
36536
|
+
var init_en = __esmMin(() => {
|
|
36537
|
+
EN_LOCALE = {
|
|
36538
|
+
solution: {
|
|
36539
|
+
self: "Please select the solution you want to create",
|
|
36540
|
+
mwa: "MWA Solution",
|
|
36541
|
+
module: "Module Solution",
|
|
36542
|
+
monorepo: "Monorepo Solution",
|
|
36543
|
+
custom: "Custom Solution",
|
|
36544
|
+
"default": "Default"
|
|
36545
|
+
},
|
|
36546
|
+
scenes: {
|
|
36547
|
+
self: "Please select the scene you want to create"
|
|
36548
|
+
},
|
|
36549
|
+
sub_solution: {
|
|
36550
|
+
self: "Please select the solution you want to create",
|
|
36551
|
+
mwa: "MWA Solution",
|
|
36552
|
+
mwa_test: "MWA Solution(Test)",
|
|
36553
|
+
module: "Module Solution",
|
|
36554
|
+
inner_module: "Module Solution(Inner)",
|
|
36555
|
+
monorepo: "Monorepo Solution"
|
|
36556
|
+
},
|
|
36557
|
+
action: {
|
|
36558
|
+
self: "Action",
|
|
36559
|
+
"function": {
|
|
36560
|
+
self: "Enable features",
|
|
36561
|
+
tailwindcss: "Enable Tailwind CSS",
|
|
36562
|
+
less: "Enable Less",
|
|
36563
|
+
sass: "Enable Sass",
|
|
36564
|
+
bff: "Enable BFF",
|
|
36565
|
+
micro_frontend: "Enable Micro Frontend",
|
|
36566
|
+
electron: "Enable Electron",
|
|
36567
|
+
i18n: "Enable Internationalization (i18n)",
|
|
36568
|
+
test: "Enable Unit Test / Integration Test",
|
|
36569
|
+
e2e_test: "Enable E2E Test",
|
|
36570
|
+
doc: "Enable Document Station",
|
|
36571
|
+
storybook: "Enable Storybook",
|
|
36572
|
+
runtime_api: "Enable Runtime API",
|
|
36573
|
+
mwa_storybook: "Enable Visual Testing (Storybook)",
|
|
36574
|
+
ssg: "Enable SSG",
|
|
36575
|
+
polyfill: "Enable UA-based Polyfill Feature",
|
|
36576
|
+
proxy: "Enable Global Proxy"
|
|
36577
|
+
},
|
|
36578
|
+
element: {
|
|
36579
|
+
self: "Create project element",
|
|
36580
|
+
entry: 'New "entry"',
|
|
36581
|
+
server: 'New "Server Custom" source code directory'
|
|
36582
|
+
},
|
|
36583
|
+
refactor: {
|
|
36584
|
+
self: "Automatic refactor",
|
|
36585
|
+
bff_to_app: "Transform BFF to frame mode"
|
|
36586
|
+
}
|
|
36587
|
+
},
|
|
36588
|
+
"boolean": {
|
|
36589
|
+
yes: "Yes",
|
|
36590
|
+
no: "No"
|
|
36591
|
+
},
|
|
36592
|
+
language: {
|
|
36593
|
+
self: "Development Language"
|
|
36594
|
+
},
|
|
36595
|
+
packageManager: {
|
|
36596
|
+
self: "Package Management Tool"
|
|
36597
|
+
},
|
|
36598
|
+
packageName: {
|
|
36599
|
+
self: "Package Name",
|
|
36600
|
+
sub_name: "Package Name",
|
|
36601
|
+
no_empty: "The package name cannot be empty!"
|
|
36602
|
+
},
|
|
36603
|
+
packagePath: {
|
|
36604
|
+
self: "Package Path",
|
|
36605
|
+
no_empty: "The package path cannot be empty!",
|
|
36606
|
+
format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
|
|
36607
|
+
},
|
|
36608
|
+
runWay: {
|
|
36609
|
+
self: "Do you need to support the following types of applications",
|
|
36610
|
+
no: "Not Enabled",
|
|
36611
|
+
electron: "Electron"
|
|
36612
|
+
},
|
|
36613
|
+
needModifyConfig: {
|
|
36614
|
+
self: "Modify the Default Configuration?",
|
|
36615
|
+
enableLess: "Enable Less?",
|
|
36616
|
+
enableSass: "Enable Sass?"
|
|
36617
|
+
},
|
|
36618
|
+
entry: {
|
|
36619
|
+
name: "Entry name",
|
|
36620
|
+
no_empty: "The entry name cannot be empty!",
|
|
36621
|
+
no_pages: 'The entry name cannot be "pages"!',
|
|
36622
|
+
disableStateManagement: "Disable App State Management?",
|
|
36623
|
+
clientRoute: {
|
|
36624
|
+
self: "Client Routing",
|
|
36625
|
+
selfControlRoute: "Enable Self Control Route",
|
|
36626
|
+
conventionalRoute: "Enable Conventional Route",
|
|
36627
|
+
no: "Not Enabled"
|
|
36628
|
+
}
|
|
36629
|
+
},
|
|
36630
|
+
framework: {
|
|
36631
|
+
self: "Please select the framework you want to use",
|
|
36632
|
+
egg: "Egg",
|
|
36633
|
+
express: "Express",
|
|
36634
|
+
koa: "Koa",
|
|
36635
|
+
nest: "Nest"
|
|
36636
|
+
},
|
|
36637
|
+
bff: {
|
|
36638
|
+
bffType: {
|
|
36639
|
+
self: "BFF Type",
|
|
36640
|
+
func: "Function",
|
|
36641
|
+
framework: "Framework"
|
|
36642
|
+
}
|
|
36643
|
+
}
|
|
36644
|
+
};
|
|
36645
|
+
});
|
|
36646
|
+
var i18n, localeKeys;
|
|
36647
|
+
var init_locale = __esmMin(() => {
|
|
36648
|
+
init_treeshaking();
|
|
36649
|
+
init_zh();
|
|
36650
|
+
init_en();
|
|
36651
|
+
i18n = new I18n();
|
|
36652
|
+
localeKeys = i18n.init("zh", {
|
|
36653
|
+
zh: ZH_LOCALE,
|
|
36654
|
+
en: EN_LOCALE
|
|
36655
|
+
});
|
|
36656
|
+
});
|
|
36657
|
+
var _BooleanConfigName, BooleanConfig, BooleanConfigName, BooleanSchemas;
|
|
36658
|
+
var init_boolean = __esmMin(() => {
|
|
36659
|
+
init_defineProperty();
|
|
36660
|
+
init_locale();
|
|
36661
|
+
(function(BooleanConfig2) {
|
|
36662
|
+
BooleanConfig2["NO"] = "no";
|
|
36663
|
+
BooleanConfig2["YES"] = "yes";
|
|
36664
|
+
})(BooleanConfig || (BooleanConfig = {}));
|
|
36665
|
+
BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
|
|
36666
|
+
return i18n.t(localeKeys["boolean"].no);
|
|
36667
|
+
}), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
|
|
36668
|
+
return i18n.t(localeKeys["boolean"].yes);
|
|
36669
|
+
}), _BooleanConfigName);
|
|
36670
|
+
BooleanSchemas = [{
|
|
36671
|
+
key: BooleanConfig.NO,
|
|
36672
|
+
label: BooleanConfigName[BooleanConfig.NO]
|
|
36673
|
+
}, {
|
|
36674
|
+
key: BooleanConfig.YES,
|
|
36675
|
+
label: BooleanConfigName[BooleanConfig.YES]
|
|
36676
|
+
}];
|
|
36677
|
+
});
|
|
36678
|
+
function _arrayLikeToArray(arr, len) {
|
|
36679
|
+
if (len == null || len > arr.length)
|
|
36680
|
+
len = arr.length;
|
|
36681
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
36682
|
+
arr2[i] = arr[i];
|
|
36683
|
+
}
|
|
36684
|
+
return arr2;
|
|
36685
|
+
}
|
|
36686
|
+
var init_arrayLikeToArray = __esmMin(() => {
|
|
36687
|
+
});
|
|
36688
|
+
function _arrayWithoutHoles(arr) {
|
|
36689
|
+
if (Array.isArray(arr))
|
|
36690
|
+
return _arrayLikeToArray(arr);
|
|
36691
|
+
}
|
|
36692
|
+
var init_arrayWithoutHoles = __esmMin(() => {
|
|
36693
|
+
init_arrayLikeToArray();
|
|
36694
|
+
});
|
|
36695
|
+
function _iterableToArray(iter) {
|
|
36696
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
36697
|
+
return Array.from(iter);
|
|
36698
|
+
}
|
|
36699
|
+
var init_iterableToArray = __esmMin(() => {
|
|
36700
|
+
});
|
|
36701
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
36702
|
+
if (!o)
|
|
36703
|
+
return;
|
|
36704
|
+
if (typeof o === "string")
|
|
36705
|
+
return _arrayLikeToArray(o, minLen);
|
|
36706
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
36707
|
+
if (n === "Object" && o.constructor)
|
|
36708
|
+
n = o.constructor.name;
|
|
36709
|
+
if (n === "Map" || n === "Set")
|
|
36710
|
+
return Array.from(o);
|
|
36711
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
36712
|
+
return _arrayLikeToArray(o, minLen);
|
|
36713
|
+
}
|
|
36714
|
+
var init_unsupportedIterableToArray = __esmMin(() => {
|
|
36715
|
+
init_arrayLikeToArray();
|
|
36716
|
+
});
|
|
36717
|
+
function _nonIterableSpread() {
|
|
36718
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
36719
|
+
}
|
|
36720
|
+
var init_nonIterableSpread = __esmMin(() => {
|
|
36721
|
+
});
|
|
36722
|
+
function _toConsumableArray(arr) {
|
|
36723
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
36724
|
+
}
|
|
36725
|
+
var init_toConsumableArray = __esmMin(() => {
|
|
36726
|
+
init_arrayWithoutHoles();
|
|
36727
|
+
init_iterableToArray();
|
|
36728
|
+
init_unsupportedIterableToArray();
|
|
36729
|
+
init_nonIterableSpread();
|
|
36730
|
+
});
|
|
36731
|
+
function getSolutionNameFromSubSolution(solution) {
|
|
36732
|
+
if (solution === SubSolution.MWATest) {
|
|
36733
|
+
return Solution.MWA;
|
|
36734
|
+
}
|
|
36735
|
+
if (solution === SubSolution.InnerModule) {
|
|
36736
|
+
return Solution.Module;
|
|
36737
|
+
}
|
|
36738
|
+
return solution;
|
|
36739
|
+
}
|
|
36740
|
+
var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
|
|
36741
|
+
var init_solution = __esmMin(() => {
|
|
36742
|
+
init_toConsumableArray();
|
|
36743
|
+
init_defineProperty();
|
|
36744
|
+
init_locale();
|
|
36745
|
+
(function(Solution2) {
|
|
36746
|
+
Solution2["MWA"] = "mwa";
|
|
36747
|
+
Solution2["Module"] = "module";
|
|
36748
|
+
Solution2["Monorepo"] = "monorepo";
|
|
36749
|
+
})(Solution || (Solution = {}));
|
|
36750
|
+
(function(SubSolution2) {
|
|
36751
|
+
SubSolution2["MWA"] = "mwa";
|
|
36752
|
+
SubSolution2["MWATest"] = "mwa_test";
|
|
36753
|
+
SubSolution2["Module"] = "module";
|
|
36754
|
+
SubSolution2["InnerModule"] = "inner_module";
|
|
36755
|
+
})(SubSolution || (SubSolution = {}));
|
|
36756
|
+
SolutionText = (_SolutionText = {}, _defineProperty(_SolutionText, Solution.MWA, function() {
|
|
36757
|
+
return i18n.t(localeKeys.solution.mwa);
|
|
36758
|
+
}), _defineProperty(_SolutionText, Solution.Module, function() {
|
|
36759
|
+
return i18n.t(localeKeys.solution.module);
|
|
36760
|
+
}), _defineProperty(_SolutionText, Solution.Monorepo, function() {
|
|
36761
|
+
return i18n.t(localeKeys.solution.monorepo);
|
|
36762
|
+
}), _SolutionText);
|
|
36763
|
+
SubSolutionText = (_SubSolutionText = {}, _defineProperty(_SubSolutionText, SubSolution.MWA, function() {
|
|
36764
|
+
return i18n.t(localeKeys.sub_solution.mwa);
|
|
36765
|
+
}), _defineProperty(_SubSolutionText, SubSolution.MWATest, function() {
|
|
36766
|
+
return i18n.t(localeKeys.sub_solution.mwa_test);
|
|
36767
|
+
}), _defineProperty(_SubSolutionText, SubSolution.Module, function() {
|
|
36768
|
+
return i18n.t(localeKeys.sub_solution.module);
|
|
36769
|
+
}), _defineProperty(_SubSolutionText, SubSolution.InnerModule, function() {
|
|
36770
|
+
return i18n.t(localeKeys.sub_solution.inner_module);
|
|
36771
|
+
}), _SubSolutionText);
|
|
36772
|
+
SolutionToolsMap = (_SolutionToolsMap = {}, _defineProperty(_SolutionToolsMap, Solution.MWA, "@modern-js/app-tools"), _defineProperty(_SolutionToolsMap, Solution.Module, "@modern-js/module-tools"), _defineProperty(_SolutionToolsMap, Solution.Monorepo, "@modern-js/monorepo-tools"), _SolutionToolsMap);
|
|
36773
|
+
SolutionSchema = {
|
|
36774
|
+
key: "solution_schema",
|
|
36775
|
+
isObject: true,
|
|
36776
|
+
items: [{
|
|
36777
|
+
key: "solution",
|
|
36778
|
+
label: function label() {
|
|
36779
|
+
return i18n.t(localeKeys.solution.self);
|
|
36780
|
+
},
|
|
36781
|
+
type: ["string"],
|
|
36782
|
+
mutualExclusion: true,
|
|
36783
|
+
items: function items(_data, extra) {
|
|
36784
|
+
var _extra$customPlugin, _extra$customPlugin$c;
|
|
36785
|
+
var items5 = Object.values(Solution).filter(function(solution) {
|
|
36786
|
+
return !(extra !== null && extra !== void 0 && extra.isSubProject && solution === Solution.Monorepo);
|
|
36787
|
+
}).map(function(solution) {
|
|
36788
|
+
return {
|
|
36789
|
+
key: solution,
|
|
36790
|
+
label: SolutionText[solution]
|
|
36791
|
+
};
|
|
36792
|
+
});
|
|
36793
|
+
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) {
|
|
36794
|
+
return [].concat(_toConsumableArray(items5), [{
|
|
36795
|
+
key: "custom",
|
|
36796
|
+
label: i18n.t(localeKeys.solution.custom)
|
|
36797
|
+
}]);
|
|
36798
|
+
}
|
|
36799
|
+
return items5;
|
|
36800
|
+
}
|
|
36801
|
+
}, {
|
|
36802
|
+
key: "scenes",
|
|
36803
|
+
label: function label2() {
|
|
36804
|
+
return i18n.t(localeKeys.scenes.self);
|
|
36805
|
+
},
|
|
36806
|
+
type: ["string"],
|
|
36807
|
+
mutualExclusion: true,
|
|
36808
|
+
when: function when(data, extra) {
|
|
36809
|
+
return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[data.solution] && extra.customPlugin[data.solution].length > 0;
|
|
36810
|
+
},
|
|
36811
|
+
items: function items2(data, extra) {
|
|
36812
|
+
var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[data.solution]) || [] : []).map(function(plugin) {
|
|
36813
|
+
return {
|
|
36814
|
+
key: plugin.key,
|
|
36815
|
+
label: plugin.name
|
|
36816
|
+
};
|
|
36817
|
+
});
|
|
36818
|
+
if (data.solution && data.solution !== "custom") {
|
|
36819
|
+
items5.unshift({
|
|
36820
|
+
key: data.solution,
|
|
36821
|
+
label: "".concat(SolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
|
|
36822
|
+
});
|
|
36823
|
+
}
|
|
36824
|
+
return items5;
|
|
36825
|
+
}
|
|
36826
|
+
}]
|
|
36827
|
+
};
|
|
36828
|
+
SubSolutionSchema = {
|
|
36829
|
+
key: "sub_solution_schema",
|
|
36830
|
+
isObject: true,
|
|
36831
|
+
items: [{
|
|
36832
|
+
key: "solution",
|
|
36833
|
+
label: function label3() {
|
|
36834
|
+
return i18n.t(localeKeys.sub_solution.self);
|
|
36835
|
+
},
|
|
36836
|
+
type: ["string"],
|
|
36837
|
+
mutualExclusion: true,
|
|
36838
|
+
items: function items3(_data, extra) {
|
|
36839
|
+
var _extra$customPlugin2, _extra$customPlugin2$;
|
|
36840
|
+
var items5 = Object.values(SubSolution).map(function(solution) {
|
|
36841
|
+
return {
|
|
36842
|
+
key: solution,
|
|
36843
|
+
label: SubSolutionText[solution]
|
|
36844
|
+
};
|
|
36845
|
+
});
|
|
36846
|
+
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) {
|
|
36847
|
+
return [].concat(_toConsumableArray(items5), [{
|
|
36848
|
+
key: "custom",
|
|
36849
|
+
label: i18n.t(localeKeys.solution.custom)
|
|
36850
|
+
}]);
|
|
36851
|
+
}
|
|
36852
|
+
return items5;
|
|
36853
|
+
}
|
|
36854
|
+
}, {
|
|
36855
|
+
key: "scenes",
|
|
36856
|
+
label: function label4() {
|
|
36857
|
+
return i18n.t(localeKeys.scenes.self);
|
|
36858
|
+
},
|
|
36859
|
+
type: ["string"],
|
|
36860
|
+
mutualExclusion: true,
|
|
36861
|
+
when: function when2(data, extra) {
|
|
36862
|
+
return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)] && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)].length > 0;
|
|
36863
|
+
},
|
|
36864
|
+
items: function items4(data, extra) {
|
|
36865
|
+
var solution = getSolutionNameFromSubSolution(data.solution);
|
|
36866
|
+
var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map(function(plugin) {
|
|
36867
|
+
return {
|
|
36868
|
+
key: plugin.key,
|
|
36869
|
+
label: plugin.name
|
|
36870
|
+
};
|
|
36871
|
+
});
|
|
36872
|
+
if (data.solution && data.solution !== "custom") {
|
|
36873
|
+
items5.unshift({
|
|
36874
|
+
key: data.solution,
|
|
36875
|
+
label: "".concat(SubSolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
|
|
36876
|
+
});
|
|
36877
|
+
}
|
|
36878
|
+
return items5;
|
|
36879
|
+
}
|
|
36880
|
+
}]
|
|
36881
|
+
};
|
|
36882
|
+
BaseGenerator = "@modern-js/base-generator";
|
|
36883
|
+
SolutionGenerator = (_SolutionGenerator = {}, _defineProperty(_SolutionGenerator, Solution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SolutionGenerator, Solution.Module, "@modern-js/module-generator"), _defineProperty(_SolutionGenerator, Solution.Monorepo, "@modern-js/monorepo-generator"), _SolutionGenerator);
|
|
36884
|
+
SubSolutionGenerator = (_SubSolutionGenerator = {}, _defineProperty(_SubSolutionGenerator, SubSolution.MWA, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.MWATest, "@modern-js/mwa-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.Module, "@modern-js/module-generator"), _defineProperty(_SubSolutionGenerator, SubSolution.InnerModule, "@modern-js/module-generator"), _SubSolutionGenerator);
|
|
36885
|
+
ChangesetGenerator = "@modern-js/changeset-generator";
|
|
36886
|
+
DependenceGenerator = "@modern-js/dependence-generator";
|
|
36887
|
+
EntryGenerator = "@modern-js/entry-generator";
|
|
36888
|
+
ElectronGenerator = "@modern-js/electron-generator";
|
|
36889
|
+
EslintGenerator = "@modern-js/eslint-generator";
|
|
36890
|
+
});
|
|
36891
|
+
var _LanguageName, Language, LanguageName, LanguageSchema;
|
|
36892
|
+
var init_language = __esmMin(() => {
|
|
36893
|
+
init_defineProperty();
|
|
36894
|
+
init_locale();
|
|
36895
|
+
(function(Language2) {
|
|
36896
|
+
Language2["TS"] = "ts";
|
|
36897
|
+
Language2["JS"] = "js";
|
|
36898
|
+
})(Language || (Language = {}));
|
|
36899
|
+
LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
|
|
36900
|
+
return "TS";
|
|
36901
|
+
}), _defineProperty(_LanguageName, Language.JS, function() {
|
|
36902
|
+
return "ES6+";
|
|
36903
|
+
}), _LanguageName);
|
|
36904
|
+
LanguageSchema = {
|
|
36905
|
+
key: "language",
|
|
36906
|
+
type: ["string"],
|
|
36907
|
+
label: function label5() {
|
|
36908
|
+
return i18n.t(localeKeys.language.self);
|
|
36909
|
+
},
|
|
36910
|
+
mutualExclusion: true,
|
|
36911
|
+
items: Object.values(Language).map(function(language) {
|
|
36912
|
+
return {
|
|
36913
|
+
key: language,
|
|
36914
|
+
label: LanguageName[language]
|
|
36915
|
+
};
|
|
36916
|
+
})
|
|
36917
|
+
};
|
|
36918
|
+
});
|
|
36919
|
+
var _PackageManagerName, PackageManager, PackageManagerName, PackageManagerSchema;
|
|
36920
|
+
var init_package_manager = __esmMin(() => {
|
|
36921
|
+
init_defineProperty();
|
|
36922
|
+
init_locale();
|
|
36923
|
+
(function(PackageManager2) {
|
|
36924
|
+
PackageManager2["Pnpm"] = "pnpm";
|
|
36925
|
+
PackageManager2["Yarn"] = "yarn";
|
|
36926
|
+
PackageManager2["Npm"] = "npm";
|
|
36927
|
+
})(PackageManager || (PackageManager = {}));
|
|
36928
|
+
PackageManagerName = (_PackageManagerName = {}, _defineProperty(_PackageManagerName, PackageManager.Pnpm, function() {
|
|
36929
|
+
return "pnpm";
|
|
36930
|
+
}), _defineProperty(_PackageManagerName, PackageManager.Yarn, function() {
|
|
36931
|
+
return "Yarn";
|
|
36932
|
+
}), _defineProperty(_PackageManagerName, PackageManager.Npm, function() {
|
|
36933
|
+
return "npm";
|
|
36934
|
+
}), _PackageManagerName);
|
|
36935
|
+
PackageManagerSchema = {
|
|
36936
|
+
key: "packageManager",
|
|
36937
|
+
type: ["string"],
|
|
36938
|
+
label: function label6() {
|
|
36939
|
+
return i18n.t(localeKeys.packageManager.self);
|
|
36940
|
+
},
|
|
36941
|
+
mutualExclusion: true,
|
|
36942
|
+
when: function when3(_values, extra) {
|
|
36943
|
+
return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
|
|
36944
|
+
},
|
|
36945
|
+
items: Object.values(PackageManager).map(function(packageManager) {
|
|
36946
|
+
return {
|
|
36947
|
+
key: packageManager,
|
|
36948
|
+
label: PackageManagerName[packageManager]
|
|
36949
|
+
};
|
|
36950
|
+
})
|
|
36951
|
+
};
|
|
36952
|
+
});
|
|
36953
|
+
var PackageNameSchema;
|
|
36954
|
+
var init_package_name = __esmMin(() => {
|
|
36955
|
+
init_locale();
|
|
36956
|
+
PackageNameSchema = {
|
|
36957
|
+
key: "packageName",
|
|
36958
|
+
label: function label7(_, extra) {
|
|
36959
|
+
return extra !== null && extra !== void 0 && extra.isMonorepoSubProject ? i18n.t(localeKeys.packageName.sub_name) : i18n.t(localeKeys.packageName.self);
|
|
36960
|
+
},
|
|
36961
|
+
type: ["string"],
|
|
36962
|
+
when: function when4(_, extra) {
|
|
36963
|
+
return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra !== null && extra !== void 0 && extra.isMwa);
|
|
36964
|
+
},
|
|
36965
|
+
validate: function validate(value) {
|
|
36966
|
+
if (!value) {
|
|
36967
|
+
return {
|
|
36968
|
+
success: false,
|
|
36969
|
+
error: i18n.t(localeKeys.packageName.no_empty)
|
|
36970
|
+
};
|
|
36971
|
+
}
|
|
36972
|
+
return {
|
|
36973
|
+
success: true
|
|
36974
|
+
};
|
|
36975
|
+
}
|
|
36976
|
+
};
|
|
36977
|
+
});
|
|
36978
|
+
var PackagePathRegex, PackagePathSchema;
|
|
36979
|
+
var init_package_path = __esmMin(() => {
|
|
36980
|
+
init_locale();
|
|
36981
|
+
PackagePathRegex = new RegExp("^[a-z0-9]*[-_/]?([a-z0-9]*[-_]?[a-z0-9]*)*[-_/]?[a-z0-9-_]+$");
|
|
36982
|
+
PackagePathSchema = {
|
|
36983
|
+
key: "packagePath",
|
|
36984
|
+
label: function label8() {
|
|
36985
|
+
return i18n.t(localeKeys.packagePath.self);
|
|
36986
|
+
},
|
|
36987
|
+
type: ["string"],
|
|
36988
|
+
when: function when5(_, extra) {
|
|
36989
|
+
return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject);
|
|
36990
|
+
},
|
|
36991
|
+
state: {
|
|
36992
|
+
value: {
|
|
36993
|
+
effectedByFields: ["packageName"],
|
|
36994
|
+
action: function action(data) {
|
|
36995
|
+
return "".concat(data.packageName || "");
|
|
36996
|
+
}
|
|
36997
|
+
}
|
|
36998
|
+
},
|
|
36999
|
+
validate: function validate2(value) {
|
|
37000
|
+
if (!value) {
|
|
37001
|
+
return {
|
|
37002
|
+
success: false,
|
|
37003
|
+
error: i18n.t(localeKeys.packagePath.no_empty)
|
|
37004
|
+
};
|
|
37005
|
+
}
|
|
37006
|
+
if (!PackagePathRegex.test(value)) {
|
|
37007
|
+
return {
|
|
37008
|
+
success: false,
|
|
37009
|
+
error: i18n.t(localeKeys.packagePath.format)
|
|
37010
|
+
};
|
|
37011
|
+
}
|
|
37012
|
+
return {
|
|
37013
|
+
success: true
|
|
37014
|
+
};
|
|
37015
|
+
}
|
|
37016
|
+
};
|
|
37017
|
+
});
|
|
37018
|
+
var init_common = __esmMin(() => {
|
|
37019
|
+
init_boolean();
|
|
37020
|
+
init_solution();
|
|
37021
|
+
init_language();
|
|
37022
|
+
init_package_manager();
|
|
37023
|
+
init_package_name();
|
|
37024
|
+
init_package_path();
|
|
37025
|
+
});
|
|
37026
|
+
var BaseSchemas, BaseSchema, BaseDefaultConfig;
|
|
37027
|
+
var init_project = __esmMin(() => {
|
|
37028
|
+
init_common();
|
|
37029
|
+
BaseSchemas = [PackageManagerSchema];
|
|
37030
|
+
BaseSchema = {
|
|
37031
|
+
key: "base",
|
|
37032
|
+
isObject: true,
|
|
37033
|
+
items: BaseSchemas
|
|
37034
|
+
};
|
|
37035
|
+
BaseDefaultConfig = {
|
|
37036
|
+
packageManager: PackageManager.Pnpm
|
|
37037
|
+
};
|
|
37038
|
+
});
|
|
37039
|
+
var init_base = __esmMin(() => {
|
|
37040
|
+
init_project();
|
|
37041
|
+
});
|
|
37042
|
+
function ownKeys(object, enumerableOnly) {
|
|
37043
|
+
var keys = Object.keys(object);
|
|
37044
|
+
if (Object.getOwnPropertySymbols) {
|
|
37045
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
37046
|
+
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
37047
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
37048
|
+
})), keys.push.apply(keys, symbols);
|
|
37049
|
+
}
|
|
37050
|
+
return keys;
|
|
37051
|
+
}
|
|
37052
|
+
function _objectSpread2(target) {
|
|
37053
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
37054
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
37055
|
+
i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
|
37056
|
+
_defineProperty(target, key, source[key]);
|
|
37057
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
37058
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
37059
|
+
});
|
|
37060
|
+
}
|
|
37061
|
+
return target;
|
|
37062
|
+
}
|
|
37063
|
+
var init_objectSpread2 = __esmMin(() => {
|
|
37064
|
+
init_defineProperty();
|
|
37065
|
+
});
|
|
37066
|
+
var EnableLessSchema, EnableSassSchema;
|
|
37067
|
+
var init_css = __esmMin(() => {
|
|
37068
|
+
init_locale();
|
|
37069
|
+
init_boolean();
|
|
37070
|
+
EnableLessSchema = {
|
|
37071
|
+
key: "enableLess",
|
|
37072
|
+
type: ["string"],
|
|
37073
|
+
label: function label9() {
|
|
37074
|
+
return i18n.t(localeKeys.needModifyConfig.enableLess);
|
|
37075
|
+
},
|
|
37076
|
+
mutualExclusion: true,
|
|
37077
|
+
state: {
|
|
37078
|
+
value: BooleanConfig.NO
|
|
37079
|
+
},
|
|
37080
|
+
items: BooleanSchemas
|
|
37081
|
+
};
|
|
37082
|
+
EnableSassSchema = {
|
|
37083
|
+
key: "enableSass",
|
|
37084
|
+
type: ["string"],
|
|
37085
|
+
label: function label10() {
|
|
37086
|
+
return i18n.t(localeKeys.needModifyConfig.enableSass);
|
|
37087
|
+
},
|
|
37088
|
+
mutualExclusion: true,
|
|
37089
|
+
state: {
|
|
37090
|
+
value: BooleanConfig.NO
|
|
37091
|
+
},
|
|
37092
|
+
items: BooleanSchemas
|
|
37093
|
+
};
|
|
37094
|
+
});
|
|
37095
|
+
var moduleConfigWhenFunc, EnableModuleLessSchema, EnableModuleSassSchema, NeedModifyModuleConfigSchema, ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
|
|
37096
|
+
var init_project2 = __esmMin(() => {
|
|
37097
|
+
init_objectSpread2();
|
|
37098
|
+
init_locale();
|
|
37099
|
+
init_common();
|
|
37100
|
+
init_css();
|
|
37101
|
+
moduleConfigWhenFunc = function moduleConfigWhenFunc2(values) {
|
|
37102
|
+
return values.needModifyModuleConfig === BooleanConfig.YES;
|
|
37103
|
+
};
|
|
37104
|
+
EnableModuleLessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
|
|
37105
|
+
when: moduleConfigWhenFunc
|
|
37106
|
+
});
|
|
37107
|
+
EnableModuleSassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
|
|
37108
|
+
when: moduleConfigWhenFunc
|
|
37109
|
+
});
|
|
37110
|
+
NeedModifyModuleConfigSchema = {
|
|
37111
|
+
key: "needModifyModuleConfig",
|
|
37112
|
+
label: function label11() {
|
|
37113
|
+
return i18n.t(localeKeys.needModifyConfig.self);
|
|
37114
|
+
},
|
|
37115
|
+
type: ["string"],
|
|
37116
|
+
mutualExclusion: true,
|
|
37117
|
+
state: {
|
|
37118
|
+
value: BooleanConfig.NO
|
|
37119
|
+
},
|
|
37120
|
+
items: BooleanSchemas
|
|
37121
|
+
};
|
|
37122
|
+
ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, NeedModifyModuleConfigSchema, EnableModuleLessSchema, EnableModuleSassSchema];
|
|
37123
|
+
ModuleSchema = {
|
|
37124
|
+
key: "module",
|
|
37125
|
+
isObject: true,
|
|
37126
|
+
items: ModuleSchemas
|
|
37127
|
+
};
|
|
37128
|
+
ModuleDefaultConfig = {
|
|
37129
|
+
language: Language.TS,
|
|
37130
|
+
packageManager: PackageManager.Pnpm,
|
|
37131
|
+
needModifyModuleConfig: BooleanConfig.NO,
|
|
37132
|
+
enableLess: BooleanConfig.NO,
|
|
37133
|
+
enableSass: BooleanConfig.NO
|
|
37134
|
+
};
|
|
37135
|
+
});
|
|
37136
|
+
var init_module = __esmMin(() => {
|
|
37137
|
+
init_project2();
|
|
37138
|
+
});
|
|
37139
|
+
var MonorepoPackageManagerSchema, MonorepoSchemas, MonorepoSchema, MonorepoDefaultConfig;
|
|
37140
|
+
var init_project3 = __esmMin(() => {
|
|
37141
|
+
init_objectSpread2();
|
|
37142
|
+
init_common();
|
|
37143
|
+
MonorepoPackageManagerSchema = _objectSpread2(_objectSpread2({}, PackageManagerSchema), {}, {
|
|
37144
|
+
items: PackageManagerSchema.items.filter(function(item) {
|
|
37145
|
+
return item.key !== PackageManager.Npm;
|
|
37146
|
+
})
|
|
37147
|
+
});
|
|
37148
|
+
MonorepoSchemas = [MonorepoPackageManagerSchema];
|
|
37149
|
+
MonorepoSchema = {
|
|
37150
|
+
key: "monorepo",
|
|
37151
|
+
isObject: true,
|
|
37152
|
+
items: MonorepoSchemas
|
|
37153
|
+
};
|
|
37154
|
+
MonorepoDefaultConfig = {
|
|
37155
|
+
packageManager: PackageManager.Pnpm
|
|
37156
|
+
};
|
|
37157
|
+
});
|
|
37158
|
+
var init_monorepo = __esmMin(() => {
|
|
37159
|
+
init_project3();
|
|
37160
|
+
});
|
|
37161
|
+
var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema, NeedModifyMWAConfigSchema, Framework, FrameworkSchema, FrameworkAppendTypeContent;
|
|
37162
|
+
var init_common2 = __esmMin(() => {
|
|
37163
|
+
init_defineProperty();
|
|
37164
|
+
init_objectSpread2();
|
|
37165
|
+
init_locale();
|
|
37166
|
+
init_boolean();
|
|
37167
|
+
init_css();
|
|
37168
|
+
mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
|
|
37169
|
+
return values.needModifyMWAConfig === BooleanConfig.YES;
|
|
37170
|
+
};
|
|
37171
|
+
(function(RunWay2) {
|
|
37172
|
+
RunWay2["No"] = "no";
|
|
37173
|
+
RunWay2["Electron"] = "electron";
|
|
37174
|
+
})(RunWay || (RunWay = {}));
|
|
37175
|
+
RunWaySchema = {
|
|
37176
|
+
key: "runWay",
|
|
37177
|
+
type: ["string"],
|
|
37178
|
+
label: function label12() {
|
|
37179
|
+
return i18n.t(localeKeys.runWay.self);
|
|
37180
|
+
},
|
|
37181
|
+
mutualExclusion: true,
|
|
37182
|
+
when: function when6(_, extra) {
|
|
37183
|
+
return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
|
|
37184
|
+
},
|
|
37185
|
+
state: {
|
|
37186
|
+
value: RunWay.No
|
|
37187
|
+
},
|
|
37188
|
+
items: Object.values(RunWay).map(function(runWay) {
|
|
37189
|
+
return {
|
|
37190
|
+
key: runWay,
|
|
37191
|
+
label: function label25() {
|
|
37192
|
+
return i18n.t(localeKeys.runWay[runWay]);
|
|
37193
|
+
}
|
|
37194
|
+
};
|
|
37195
|
+
})
|
|
37196
|
+
};
|
|
37197
|
+
(function(ClientRoute2) {
|
|
37198
|
+
ClientRoute2["SelfControlRoute"] = "selfControlRoute";
|
|
37199
|
+
ClientRoute2["ConventionalRoute"] = "conventionalRoute";
|
|
37200
|
+
ClientRoute2["No"] = "no";
|
|
37201
|
+
})(ClientRoute || (ClientRoute = {}));
|
|
37202
|
+
ClientRouteSchema = {
|
|
37203
|
+
key: "clientRoute",
|
|
37204
|
+
type: ["string"],
|
|
37205
|
+
label: function label13() {
|
|
37206
|
+
return i18n.t(localeKeys.entry.clientRoute.self);
|
|
37207
|
+
},
|
|
37208
|
+
mutualExclusion: true,
|
|
37209
|
+
when: mwaConfigWhenFunc,
|
|
37210
|
+
state: {
|
|
37211
|
+
value: ClientRoute.SelfControlRoute
|
|
37212
|
+
},
|
|
37213
|
+
items: Object.values(ClientRoute).map(function(clientRoute) {
|
|
37214
|
+
return {
|
|
37215
|
+
key: clientRoute,
|
|
37216
|
+
label: function label25() {
|
|
37217
|
+
return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
|
|
37218
|
+
}
|
|
37219
|
+
};
|
|
37220
|
+
})
|
|
37221
|
+
};
|
|
37222
|
+
DisableStateManagementSchema = {
|
|
37223
|
+
key: "disableStateManagement",
|
|
37224
|
+
type: ["string"],
|
|
37225
|
+
label: function label14() {
|
|
37226
|
+
return i18n.t(localeKeys.entry.disableStateManagement);
|
|
37227
|
+
},
|
|
37228
|
+
mutualExclusion: true,
|
|
37229
|
+
when: mwaConfigWhenFunc,
|
|
37230
|
+
state: {
|
|
37231
|
+
value: BooleanConfig.NO
|
|
37232
|
+
},
|
|
37233
|
+
items: BooleanSchemas
|
|
37234
|
+
};
|
|
37235
|
+
EnableMWALessSchema = _objectSpread2(_objectSpread2({}, EnableLessSchema), {}, {
|
|
37236
|
+
when: mwaConfigWhenFunc
|
|
37237
|
+
});
|
|
37238
|
+
EnableMWASassSchema = _objectSpread2(_objectSpread2({}, EnableSassSchema), {}, {
|
|
37239
|
+
when: mwaConfigWhenFunc
|
|
37240
|
+
});
|
|
37241
|
+
NeedModifyMWAConfigSchema = {
|
|
37242
|
+
key: "needModifyMWAConfig",
|
|
37243
|
+
label: function label15() {
|
|
37244
|
+
return i18n.t(localeKeys.needModifyConfig.self);
|
|
37245
|
+
},
|
|
37246
|
+
type: ["string"],
|
|
37247
|
+
mutualExclusion: true,
|
|
37248
|
+
state: {
|
|
37249
|
+
value: BooleanConfig.NO
|
|
37250
|
+
},
|
|
37251
|
+
items: BooleanSchemas
|
|
37252
|
+
};
|
|
37253
|
+
(function(Framework2) {
|
|
37254
|
+
Framework2["Express"] = "express";
|
|
37255
|
+
Framework2["Koa"] = "koa";
|
|
37256
|
+
Framework2["Egg"] = "egg";
|
|
37257
|
+
Framework2["Nest"] = "nest";
|
|
37258
|
+
})(Framework || (Framework = {}));
|
|
37259
|
+
FrameworkSchema = {
|
|
37260
|
+
key: "framework",
|
|
37261
|
+
type: ["string"],
|
|
37262
|
+
label: function label16() {
|
|
37263
|
+
return i18n.t(localeKeys.framework.self);
|
|
37264
|
+
},
|
|
37265
|
+
mutualExclusion: true,
|
|
37266
|
+
items: Object.values(Framework).map(function(framework) {
|
|
37267
|
+
return {
|
|
37268
|
+
key: framework,
|
|
37269
|
+
label: function label25() {
|
|
37270
|
+
return i18n.t(localeKeys.framework[framework]);
|
|
37271
|
+
}
|
|
37272
|
+
};
|
|
37273
|
+
})
|
|
37274
|
+
};
|
|
37275
|
+
FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
|
|
37276
|
+
});
|
|
37277
|
+
var EntryNameSchema, EntrySchemas, EntrySchema, MWADefaultEntryConfig;
|
|
37278
|
+
var init_entry = __esmMin(() => {
|
|
37279
|
+
init_locale();
|
|
37280
|
+
init_common();
|
|
37281
|
+
init_common2();
|
|
37282
|
+
EntryNameSchema = {
|
|
37283
|
+
key: "name",
|
|
37284
|
+
type: ["string"],
|
|
37285
|
+
label: function label17() {
|
|
37286
|
+
return i18n.t(localeKeys.entry.name);
|
|
37287
|
+
},
|
|
37288
|
+
state: {
|
|
37289
|
+
value: "entry"
|
|
37290
|
+
},
|
|
37291
|
+
validate: function validate3(value) {
|
|
37292
|
+
if (!value) {
|
|
37293
|
+
return {
|
|
37294
|
+
success: false,
|
|
37295
|
+
error: i18n.t(localeKeys.entry.no_empty)
|
|
37296
|
+
};
|
|
37297
|
+
}
|
|
37298
|
+
if (value === "pages") {
|
|
37299
|
+
return {
|
|
37300
|
+
success: false,
|
|
37301
|
+
error: i18n.t(localeKeys.entry.no_pages)
|
|
37302
|
+
};
|
|
37303
|
+
}
|
|
37304
|
+
return {
|
|
37305
|
+
success: true
|
|
37306
|
+
};
|
|
37307
|
+
},
|
|
37308
|
+
when: function when7(_values, extra) {
|
|
37309
|
+
if (extra !== null && extra !== void 0 && extra.isEmptySrc) {
|
|
37310
|
+
return false;
|
|
37311
|
+
}
|
|
37312
|
+
return true;
|
|
37313
|
+
}
|
|
37314
|
+
};
|
|
37315
|
+
EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema];
|
|
37316
|
+
EntrySchema = {
|
|
37317
|
+
key: "entry",
|
|
37318
|
+
label: function label18() {
|
|
37319
|
+
return i18n.t(localeKeys.action.element.entry);
|
|
37320
|
+
},
|
|
37321
|
+
isObject: true,
|
|
37322
|
+
items: EntrySchemas
|
|
37323
|
+
};
|
|
37324
|
+
MWADefaultEntryConfig = {
|
|
37325
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
|
37326
|
+
clientRoute: ClientRoute.SelfControlRoute,
|
|
37327
|
+
disableStateManagement: BooleanConfig.NO
|
|
37328
|
+
};
|
|
37329
|
+
});
|
|
37330
|
+
var BFFType, BFFTypeSchema, BFFSchemas, BFFSchema, MWADefaultBffConfig;
|
|
37331
|
+
var init_bff = __esmMin(() => {
|
|
37332
|
+
init_locale();
|
|
37333
|
+
init_common2();
|
|
37334
|
+
(function(BFFType2) {
|
|
37335
|
+
BFFType2["Func"] = "func";
|
|
37336
|
+
BFFType2["Framework"] = "framework";
|
|
37337
|
+
})(BFFType || (BFFType = {}));
|
|
37338
|
+
BFFTypeSchema = {
|
|
37339
|
+
key: "bffType",
|
|
37340
|
+
type: ["string"],
|
|
37341
|
+
label: function label19() {
|
|
37342
|
+
return i18n.t(localeKeys.bff.bffType.self);
|
|
37343
|
+
},
|
|
37344
|
+
mutualExclusion: true,
|
|
37345
|
+
items: Object.values(BFFType).map(function(bffType) {
|
|
37346
|
+
return {
|
|
37347
|
+
key: bffType,
|
|
37348
|
+
label: function label25() {
|
|
37349
|
+
return i18n.t(localeKeys.bff.bffType[bffType]);
|
|
37350
|
+
}
|
|
37351
|
+
};
|
|
37352
|
+
})
|
|
37353
|
+
};
|
|
37354
|
+
BFFSchemas = [BFFTypeSchema, FrameworkSchema];
|
|
37355
|
+
BFFSchema = {
|
|
37356
|
+
key: "bff",
|
|
37357
|
+
label: function label20() {
|
|
37358
|
+
return i18n.t(localeKeys.action["function"].bff);
|
|
37359
|
+
},
|
|
37360
|
+
isObject: true,
|
|
37361
|
+
items: BFFSchemas
|
|
37362
|
+
};
|
|
37363
|
+
MWADefaultBffConfig = {
|
|
37364
|
+
bffType: BFFType.Func,
|
|
37365
|
+
frameWork: Framework.Express
|
|
37366
|
+
};
|
|
37367
|
+
});
|
|
37368
|
+
var MWASchemas, MWASchema, MWADefaultConfig;
|
|
37369
|
+
var init_project4 = __esmMin(() => {
|
|
37370
|
+
init_common();
|
|
37371
|
+
init_common2();
|
|
37372
|
+
MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema, DisableStateManagementSchema, EnableMWALessSchema, EnableMWASassSchema];
|
|
37373
|
+
MWASchema = {
|
|
37374
|
+
key: "mwa",
|
|
37375
|
+
isObject: true,
|
|
37376
|
+
items: MWASchemas
|
|
37377
|
+
};
|
|
37378
|
+
MWADefaultConfig = {
|
|
37379
|
+
language: Language.TS,
|
|
37380
|
+
packageManager: PackageManager.Pnpm,
|
|
37381
|
+
runWay: RunWay.No,
|
|
37382
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
|
37383
|
+
clientRoute: ClientRoute.SelfControlRoute,
|
|
37384
|
+
disableStateManagement: BooleanConfig.NO,
|
|
37385
|
+
enableLess: BooleanConfig.NO,
|
|
37386
|
+
enableSass: BooleanConfig.NO
|
|
37387
|
+
};
|
|
37388
|
+
});
|
|
37389
|
+
var ServerSchemas, ServerSchema, MWADefaultServerConfig;
|
|
37390
|
+
var init_server = __esmMin(() => {
|
|
37391
|
+
init_locale();
|
|
37392
|
+
init_common2();
|
|
37393
|
+
ServerSchemas = [FrameworkSchema];
|
|
37394
|
+
ServerSchema = {
|
|
37395
|
+
key: "server",
|
|
37396
|
+
label: function label21() {
|
|
37397
|
+
return i18n.t(localeKeys.action.element.server);
|
|
37398
|
+
},
|
|
37399
|
+
isObject: true,
|
|
37400
|
+
items: ServerSchemas
|
|
37401
|
+
};
|
|
37402
|
+
MWADefaultServerConfig = {
|
|
37403
|
+
framework: Framework.Express
|
|
37404
|
+
};
|
|
37405
|
+
});
|
|
37406
|
+
var init_mwa = __esmMin(() => {
|
|
37407
|
+
init_common2();
|
|
37408
|
+
init_entry();
|
|
37409
|
+
init_bff();
|
|
37410
|
+
init_project4();
|
|
37411
|
+
init_server();
|
|
37412
|
+
});
|
|
37413
|
+
var _ActionTypeText, _ActionElementText, _ActionFunctionText, _ActionTypeTextMap, ActionType, ActionElement, ActionFunction, ActionRefactor, ActionTypeText, ActionElementText, ActionFunctionText, ActionRefactorText, ActionTypeTextMap;
|
|
37414
|
+
var init_common3 = __esmMin(() => {
|
|
37415
|
+
init_defineProperty();
|
|
37416
|
+
init_locale();
|
|
37417
|
+
(function(ActionType2) {
|
|
37418
|
+
ActionType2["Function"] = "function";
|
|
37419
|
+
ActionType2["Element"] = "element";
|
|
37420
|
+
ActionType2["Refactor"] = "refactor";
|
|
37421
|
+
})(ActionType || (ActionType = {}));
|
|
37422
|
+
(function(ActionElement2) {
|
|
37423
|
+
ActionElement2["Entry"] = "entry";
|
|
37424
|
+
ActionElement2["Server"] = "server";
|
|
37425
|
+
})(ActionElement || (ActionElement = {}));
|
|
37426
|
+
(function(ActionFunction2) {
|
|
37427
|
+
ActionFunction2["TailwindCSS"] = "tailwindcss";
|
|
37428
|
+
ActionFunction2["Less"] = "less";
|
|
37429
|
+
ActionFunction2["Sass"] = "sass";
|
|
37430
|
+
ActionFunction2["BFF"] = "bff";
|
|
37431
|
+
ActionFunction2["MicroFrontend"] = "micro_frontend";
|
|
37432
|
+
ActionFunction2["Electron"] = "electron";
|
|
37433
|
+
ActionFunction2["I18n"] = "i18n";
|
|
37434
|
+
ActionFunction2["Test"] = "test";
|
|
37435
|
+
ActionFunction2["E2ETest"] = "e2e_test";
|
|
37436
|
+
ActionFunction2["Doc"] = "doc";
|
|
37437
|
+
ActionFunction2["Storybook"] = "storybook";
|
|
37438
|
+
ActionFunction2["RuntimeApi"] = "runtimeApi";
|
|
37439
|
+
ActionFunction2["SSG"] = "ssg";
|
|
37440
|
+
ActionFunction2["Polyfill"] = "polyfill";
|
|
37441
|
+
ActionFunction2["Proxy"] = "proxy";
|
|
37442
|
+
})(ActionFunction || (ActionFunction = {}));
|
|
37443
|
+
(function(ActionRefactor2) {
|
|
37444
|
+
ActionRefactor2["BFFToApp"] = "bff_to_app";
|
|
37445
|
+
})(ActionRefactor || (ActionRefactor = {}));
|
|
37446
|
+
ActionTypeText = (_ActionTypeText = {}, _defineProperty(_ActionTypeText, ActionType.Function, function() {
|
|
37447
|
+
return i18n.t(localeKeys.action["function"].self);
|
|
37448
|
+
}), _defineProperty(_ActionTypeText, ActionType.Element, function() {
|
|
37449
|
+
return i18n.t(localeKeys.action.element.self);
|
|
37450
|
+
}), _defineProperty(_ActionTypeText, ActionType.Refactor, function() {
|
|
37451
|
+
return i18n.t(localeKeys.action.refactor.self);
|
|
37452
|
+
}), _ActionTypeText);
|
|
37453
|
+
ActionElementText = (_ActionElementText = {}, _defineProperty(_ActionElementText, ActionElement.Entry, function() {
|
|
37454
|
+
return i18n.t(localeKeys.action.element.entry);
|
|
37455
|
+
}), _defineProperty(_ActionElementText, ActionElement.Server, function() {
|
|
37456
|
+
return i18n.t(localeKeys.action.element.server);
|
|
37457
|
+
}), _ActionElementText);
|
|
37458
|
+
ActionFunctionText = (_ActionFunctionText = {}, _defineProperty(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
|
|
37459
|
+
return i18n.t(localeKeys.action["function"].tailwindcss);
|
|
37460
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Less, function() {
|
|
37461
|
+
return i18n.t(localeKeys.action["function"].less);
|
|
37462
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Sass, function() {
|
|
37463
|
+
return i18n.t(localeKeys.action["function"].sass);
|
|
37464
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.BFF, function() {
|
|
37465
|
+
return i18n.t(localeKeys.action["function"].bff);
|
|
37466
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
|
|
37467
|
+
return i18n.t(localeKeys.action["function"].micro_frontend);
|
|
37468
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Electron, function() {
|
|
37469
|
+
return i18n.t(localeKeys.action["function"].electron);
|
|
37470
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.I18n, function() {
|
|
37471
|
+
return i18n.t(localeKeys.action["function"].i18n);
|
|
37472
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Test, function() {
|
|
37473
|
+
return i18n.t(localeKeys.action["function"].test);
|
|
37474
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.E2ETest, function() {
|
|
37475
|
+
return i18n.t(localeKeys.action["function"].e2e_test);
|
|
37476
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Doc, function() {
|
|
37477
|
+
return i18n.t(localeKeys.action["function"].doc);
|
|
37478
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Storybook, function() {
|
|
37479
|
+
return i18n.t(localeKeys.action["function"].storybook);
|
|
37480
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.RuntimeApi, function() {
|
|
37481
|
+
return i18n.t(localeKeys.action["function"].runtime_api);
|
|
37482
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.SSG, function() {
|
|
37483
|
+
return i18n.t(localeKeys.action["function"].ssg);
|
|
37484
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Polyfill, function() {
|
|
37485
|
+
return i18n.t(localeKeys.action["function"].polyfill);
|
|
37486
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Proxy, function() {
|
|
37487
|
+
return i18n.t(localeKeys.action["function"].proxy);
|
|
37488
|
+
}), _ActionFunctionText);
|
|
37489
|
+
ActionRefactorText = _defineProperty({}, ActionRefactor.BFFToApp, function() {
|
|
37490
|
+
return i18n.t(localeKeys.action.refactor.bff_to_app);
|
|
37491
|
+
});
|
|
37492
|
+
ActionTypeTextMap = (_ActionTypeTextMap = {}, _defineProperty(_ActionTypeTextMap, ActionType.Element, ActionElementText), _defineProperty(_ActionTypeTextMap, ActionType.Function, ActionFunctionText), _defineProperty(_ActionTypeTextMap, ActionType.Refactor, ActionRefactorText), _ActionTypeTextMap);
|
|
37493
|
+
});
|
|
37494
|
+
var _MWAActionTypesMap, _MWAActionFunctionsDe, _MWAActionFunctionsDe2, _ActionType$Element, _ActionType$Function, _MWANewActionGenerato, MWAActionTypes, MWAActionFunctions, MWAActionElements, MWAActionReactors, MWAActionTypesMap, MWASpecialSchemaMap, MWANewActionSchema, MWAActionFunctionsDevDependencies, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWANewActionGenerators;
|
|
37495
|
+
var init_mwa2 = __esmMin(() => {
|
|
37496
|
+
init_defineProperty();
|
|
37497
|
+
init_common3();
|
|
37498
|
+
init_locale();
|
|
37499
|
+
MWAActionTypes = [
|
|
37500
|
+
ActionType.Element,
|
|
37501
|
+
ActionType.Function
|
|
37502
|
+
];
|
|
37503
|
+
MWAActionFunctions = [
|
|
37504
|
+
ActionFunction.TailwindCSS,
|
|
37505
|
+
ActionFunction.Less,
|
|
37506
|
+
ActionFunction.Sass,
|
|
37507
|
+
ActionFunction.BFF,
|
|
37508
|
+
ActionFunction.SSG,
|
|
37509
|
+
ActionFunction.MicroFrontend,
|
|
37510
|
+
ActionFunction.Electron,
|
|
37511
|
+
ActionFunction.Test,
|
|
37512
|
+
ActionFunction.Storybook,
|
|
37513
|
+
ActionFunction.Polyfill,
|
|
37514
|
+
ActionFunction.Proxy
|
|
37515
|
+
];
|
|
37516
|
+
MWAActionElements = [ActionElement.Entry, ActionElement.Server];
|
|
37517
|
+
MWAActionReactors = [ActionRefactor.BFFToApp];
|
|
37518
|
+
MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
|
|
37519
|
+
MWASpecialSchemaMap = _defineProperty({}, ActionFunction.Storybook, {
|
|
37520
|
+
key: ActionFunction.Storybook,
|
|
37521
|
+
label: function label22() {
|
|
37522
|
+
return i18n.t(localeKeys.action["function"].mwa_storybook);
|
|
37523
|
+
}
|
|
37524
|
+
});
|
|
37525
|
+
MWANewActionSchema = {
|
|
37526
|
+
key: "mwa_new_action",
|
|
37527
|
+
isObject: true,
|
|
37528
|
+
items: [{
|
|
37529
|
+
key: "actionType",
|
|
37530
|
+
label: function label23() {
|
|
37531
|
+
return i18n.t(localeKeys.action.self);
|
|
37532
|
+
},
|
|
37533
|
+
type: ["string"],
|
|
37534
|
+
mutualExclusion: true,
|
|
37535
|
+
items: MWAActionTypes.map(function(type) {
|
|
37536
|
+
return {
|
|
37537
|
+
key: type,
|
|
37538
|
+
label: ActionTypeText[type],
|
|
37539
|
+
type: ["string"],
|
|
37540
|
+
mutualExclusion: true,
|
|
37541
|
+
items: MWAActionTypesMap[type].map(function(item) {
|
|
37542
|
+
return MWASpecialSchemaMap[item] || {
|
|
37543
|
+
key: item,
|
|
37544
|
+
label: ActionTypeTextMap[type][item]
|
|
37545
|
+
};
|
|
37546
|
+
})
|
|
37547
|
+
};
|
|
37548
|
+
})
|
|
37549
|
+
}]
|
|
37550
|
+
};
|
|
37551
|
+
MWAActionFunctionsDevDependencies = (_MWAActionFunctionsDe = {}, _defineProperty(_MWAActionFunctionsDe, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.SSG, "@modern-js/plugin-ssg"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Test, "@modern-js/plugin-testing"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.E2ETest, "@modern-js/plugin-e2e"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Electron, "@modern-js/plugin-electron"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.Proxy, "@modern-js/plugin-proxy"), _defineProperty(_MWAActionFunctionsDe, ActionFunction.TailwindCSS, "tailwindcss"), _MWAActionFunctionsDe);
|
|
37552
|
+
MWAActionFunctionsDependencies = (_MWAActionFunctionsDe2 = {}, _defineProperty(_MWAActionFunctionsDe2, ActionFunction.BFF, "@modern-js/plugin-bff"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.MicroFrontend, "@modern-js/plugin-garfish"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _defineProperty(_MWAActionFunctionsDe2, ActionFunction.Polyfill, "@modern-js/plugin-polyfill"), _MWAActionFunctionsDe2);
|
|
37553
|
+
MWAActionFunctionsAppendTypeContent = _defineProperty({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
|
|
37554
|
+
MWANewActionGenerators = (_MWANewActionGenerato = {}, _defineProperty(_MWANewActionGenerato, ActionType.Element, (_ActionType$Element = {}, _defineProperty(_ActionType$Element, ActionElement.Entry, "@modern-js/entry-generator"), _defineProperty(_ActionType$Element, ActionElement.Server, "@modern-js/server-generator"), _ActionType$Element)), _defineProperty(_MWANewActionGenerato, ActionType.Function, (_ActionType$Function = {}, _defineProperty(_ActionType$Function, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.BFF, "@modern-js/bff-generator"), _defineProperty(_ActionType$Function, ActionFunction.MicroFrontend, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Electron, "@modern-js/electron-generator"), _defineProperty(_ActionType$Function, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Test, "@modern-js/test-generator"), _defineProperty(_ActionType$Function, ActionFunction.E2ETest, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Storybook, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.SSG, "@modern-js/ssg-generator"), _defineProperty(_ActionType$Function, ActionFunction.Polyfill, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function, ActionFunction.Proxy, "@modern-js/dependence-generator"), _ActionType$Function)), _defineProperty(_MWANewActionGenerato, ActionType.Refactor, _defineProperty({}, ActionRefactor.BFFToApp, "@modern-js/bff-refactor-generator")), _MWANewActionGenerato);
|
|
37555
|
+
});
|
|
37556
|
+
var _ModuleActionFunction, _ModuleActionFunction2, _ModuleActionFunction3, _ActionType$Function2, ModuleActionTypes, ModuleActionFunctions, ModuleActionTypesMap, ModuleSpecialSchemaMap, ModuleNewActionSchema, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleActionFunctionsDependencies, ModuleNewActionGenerators;
|
|
37557
|
+
var init_module2 = __esmMin(() => {
|
|
37558
|
+
init_defineProperty();
|
|
37559
|
+
init_common3();
|
|
37560
|
+
init_locale();
|
|
37561
|
+
ModuleActionTypes = [ActionType.Function];
|
|
37562
|
+
ModuleActionFunctions = [
|
|
37563
|
+
ActionFunction.TailwindCSS,
|
|
37564
|
+
ActionFunction.Less,
|
|
37565
|
+
ActionFunction.Sass,
|
|
37566
|
+
ActionFunction.Storybook,
|
|
37567
|
+
ActionFunction.RuntimeApi
|
|
37568
|
+
];
|
|
37569
|
+
ModuleActionTypesMap = _defineProperty({}, ActionType.Function, ModuleActionFunctions);
|
|
37570
|
+
ModuleSpecialSchemaMap = {};
|
|
37571
|
+
ModuleNewActionSchema = {
|
|
37572
|
+
key: "Module_new_action",
|
|
37573
|
+
isObject: true,
|
|
37574
|
+
items: [{
|
|
37575
|
+
key: "actionType",
|
|
37576
|
+
label: function label24() {
|
|
37577
|
+
return i18n.t(localeKeys.action.self);
|
|
37578
|
+
},
|
|
37579
|
+
type: ["string"],
|
|
37580
|
+
mutualExclusion: true,
|
|
37581
|
+
items: ModuleActionTypes.map(function(type) {
|
|
37582
|
+
return {
|
|
37583
|
+
key: type,
|
|
37584
|
+
label: ActionTypeText[type],
|
|
37585
|
+
type: ["string"],
|
|
37586
|
+
mutualExclusion: true,
|
|
37587
|
+
items: ModuleActionFunctions.map(function(func) {
|
|
37588
|
+
return ModuleSpecialSchemaMap[func] || {
|
|
37589
|
+
key: func,
|
|
37590
|
+
label: ActionFunctionText[func]
|
|
37591
|
+
};
|
|
37592
|
+
})
|
|
37593
|
+
};
|
|
37594
|
+
})
|
|
37595
|
+
}]
|
|
37596
|
+
};
|
|
37597
|
+
ModuleActionFunctionsDevDependencies = (_ModuleActionFunction = {}, _defineProperty(_ModuleActionFunction, ActionFunction.Less, "@modern-js/plugin-less"), _defineProperty(_ModuleActionFunction, ActionFunction.Sass, "@modern-js/plugin-sass"), _defineProperty(_ModuleActionFunction, ActionFunction.Storybook, "@modern-js/plugin-storybook"), _defineProperty(_ModuleActionFunction, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction);
|
|
37598
|
+
ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
|
|
37599
|
+
ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
|
|
37600
|
+
ModuleNewActionGenerators = _defineProperty({}, ActionType.Function, (_ActionType$Function2 = {}, _defineProperty(_ActionType$Function2, ActionFunction.TailwindCSS, "@modern-js/tailwindcss-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Less, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Sass, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.I18n, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Test, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Doc, "@modern-js/dependence-generator"), _defineProperty(_ActionType$Function2, ActionFunction.Storybook, "@modern-js/storybook-generator"), _defineProperty(_ActionType$Function2, ActionFunction.RuntimeApi, "@modern-js/dependence-generator"), _ActionType$Function2));
|
|
37601
|
+
});
|
|
37602
|
+
var _MonorepoNewActionCon, MonorepoNewActionSchema, MonorepoNewActionConfig;
|
|
37603
|
+
var init_monorepo2 = __esmMin(() => {
|
|
37604
|
+
init_defineProperty();
|
|
37605
|
+
init_common();
|
|
37606
|
+
MonorepoNewActionSchema = {
|
|
37607
|
+
key: "monorepo_new_action",
|
|
37608
|
+
isObject: true,
|
|
37609
|
+
items: [SubSolutionSchema]
|
|
37610
|
+
};
|
|
37611
|
+
MonorepoNewActionConfig = (_MonorepoNewActionCon = {}, _defineProperty(_MonorepoNewActionCon, SubSolution.MWA, {
|
|
37612
|
+
isMonorepoSubProject: true,
|
|
37613
|
+
isTest: false
|
|
37614
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.MWATest, {
|
|
37615
|
+
isMonorepoSubProject: true,
|
|
37616
|
+
isTest: true
|
|
37617
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.Module, {
|
|
37618
|
+
isMonorepoSubProject: true,
|
|
37619
|
+
isPublic: true
|
|
37620
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.InnerModule, {
|
|
37621
|
+
isMonorepoSubProject: true,
|
|
37622
|
+
isPublic: false
|
|
37623
|
+
}), _MonorepoNewActionCon);
|
|
37624
|
+
});
|
|
37625
|
+
var init_newAction = __esmMin(() => {
|
|
37626
|
+
init_common3();
|
|
37627
|
+
init_mwa2();
|
|
37628
|
+
init_module2();
|
|
37629
|
+
init_monorepo2();
|
|
37630
|
+
});
|
|
37631
|
+
var GeneratorSchemas, GeneratorSchema, GeneratorDefaultConfig;
|
|
37632
|
+
var init_generator = __esmMin(() => {
|
|
37633
|
+
init_common();
|
|
37634
|
+
GeneratorSchemas = [PackageNameSchema, PackagePathSchema, PackageManagerSchema, LanguageSchema];
|
|
37635
|
+
GeneratorSchema = {
|
|
37636
|
+
key: "generator-generator",
|
|
37637
|
+
isObject: true,
|
|
37638
|
+
items: Object.values(GeneratorSchemas)
|
|
37639
|
+
};
|
|
37640
|
+
GeneratorDefaultConfig = {
|
|
37641
|
+
packageManager: PackageManager.Pnpm,
|
|
37642
|
+
language: Language.TS
|
|
37643
|
+
};
|
|
37644
|
+
});
|
|
37645
|
+
var init_expand = __esmMin(() => {
|
|
37646
|
+
init_generator();
|
|
37647
|
+
});
|
|
37648
|
+
var treeshaking_exports2 = {};
|
|
37649
|
+
__export2(treeshaking_exports2, {
|
|
37650
|
+
ActionElement: () => ActionElement,
|
|
37651
|
+
ActionElementText: () => ActionElementText,
|
|
37652
|
+
ActionFunction: () => ActionFunction,
|
|
37653
|
+
ActionFunctionText: () => ActionFunctionText,
|
|
37654
|
+
ActionRefactor: () => ActionRefactor,
|
|
37655
|
+
ActionRefactorText: () => ActionRefactorText,
|
|
37656
|
+
ActionType: () => ActionType,
|
|
37657
|
+
ActionTypeText: () => ActionTypeText,
|
|
37658
|
+
ActionTypeTextMap: () => ActionTypeTextMap,
|
|
37659
|
+
BFFSchema: () => BFFSchema,
|
|
37660
|
+
BFFSchemas: () => BFFSchemas,
|
|
37661
|
+
BFFType: () => BFFType,
|
|
37662
|
+
BFFTypeSchema: () => BFFTypeSchema,
|
|
37663
|
+
BaseDefaultConfig: () => BaseDefaultConfig,
|
|
37664
|
+
BaseGenerator: () => BaseGenerator,
|
|
37665
|
+
BaseSchema: () => BaseSchema,
|
|
37666
|
+
BaseSchemas: () => BaseSchemas,
|
|
37667
|
+
BooleanConfig: () => BooleanConfig,
|
|
37668
|
+
BooleanConfigName: () => BooleanConfigName,
|
|
37669
|
+
BooleanSchemas: () => BooleanSchemas,
|
|
37670
|
+
ChangesetGenerator: () => ChangesetGenerator,
|
|
37671
|
+
ClientRoute: () => ClientRoute,
|
|
37672
|
+
ClientRouteSchema: () => ClientRouteSchema,
|
|
37673
|
+
DependenceGenerator: () => DependenceGenerator,
|
|
37674
|
+
DisableStateManagementSchema: () => DisableStateManagementSchema,
|
|
37675
|
+
ElectronGenerator: () => ElectronGenerator,
|
|
37676
|
+
EnableMWALessSchema: () => EnableMWALessSchema,
|
|
37677
|
+
EnableMWASassSchema: () => EnableMWASassSchema,
|
|
37678
|
+
EnableModuleLessSchema: () => EnableModuleLessSchema,
|
|
37679
|
+
EnableModuleSassSchema: () => EnableModuleSassSchema,
|
|
37680
|
+
EntryGenerator: () => EntryGenerator,
|
|
37681
|
+
EntrySchema: () => EntrySchema,
|
|
37682
|
+
EntrySchemas: () => EntrySchemas,
|
|
37683
|
+
EslintGenerator: () => EslintGenerator,
|
|
37684
|
+
Framework: () => Framework,
|
|
37685
|
+
FrameworkAppendTypeContent: () => FrameworkAppendTypeContent,
|
|
37686
|
+
FrameworkSchema: () => FrameworkSchema,
|
|
37687
|
+
GeneratorDefaultConfig: () => GeneratorDefaultConfig,
|
|
37688
|
+
GeneratorSchema: () => GeneratorSchema,
|
|
37689
|
+
Language: () => Language,
|
|
37690
|
+
LanguageName: () => LanguageName,
|
|
37691
|
+
LanguageSchema: () => LanguageSchema,
|
|
37692
|
+
MWAActionElements: () => MWAActionElements,
|
|
37693
|
+
MWAActionFunctions: () => MWAActionFunctions,
|
|
37694
|
+
MWAActionFunctionsAppendTypeContent: () => MWAActionFunctionsAppendTypeContent,
|
|
37695
|
+
MWAActionFunctionsDependencies: () => MWAActionFunctionsDependencies,
|
|
37696
|
+
MWAActionFunctionsDevDependencies: () => MWAActionFunctionsDevDependencies,
|
|
37697
|
+
MWAActionReactors: () => MWAActionReactors,
|
|
37698
|
+
MWAActionTypes: () => MWAActionTypes,
|
|
37699
|
+
MWAActionTypesMap: () => MWAActionTypesMap,
|
|
37700
|
+
MWADefaultBffConfig: () => MWADefaultBffConfig,
|
|
37701
|
+
MWADefaultConfig: () => MWADefaultConfig,
|
|
37702
|
+
MWADefaultEntryConfig: () => MWADefaultEntryConfig,
|
|
37703
|
+
MWADefaultServerConfig: () => MWADefaultServerConfig,
|
|
37704
|
+
MWANewActionGenerators: () => MWANewActionGenerators,
|
|
37705
|
+
MWANewActionSchema: () => MWANewActionSchema,
|
|
37706
|
+
MWASchema: () => MWASchema,
|
|
37707
|
+
MWASchemas: () => MWASchemas,
|
|
37708
|
+
MWASpecialSchemaMap: () => MWASpecialSchemaMap,
|
|
37709
|
+
ModuleActionFunctions: () => ModuleActionFunctions,
|
|
37710
|
+
ModuleActionFunctionsDependencies: () => ModuleActionFunctionsDependencies,
|
|
37711
|
+
ModuleActionFunctionsDevDependencies: () => ModuleActionFunctionsDevDependencies,
|
|
37712
|
+
ModuleActionFunctionsPeerDependencies: () => ModuleActionFunctionsPeerDependencies,
|
|
37713
|
+
ModuleActionTypes: () => ModuleActionTypes,
|
|
37714
|
+
ModuleActionTypesMap: () => ModuleActionTypesMap,
|
|
37715
|
+
ModuleDefaultConfig: () => ModuleDefaultConfig,
|
|
37716
|
+
ModuleNewActionGenerators: () => ModuleNewActionGenerators,
|
|
37717
|
+
ModuleNewActionSchema: () => ModuleNewActionSchema,
|
|
37718
|
+
ModuleSchema: () => ModuleSchema,
|
|
37719
|
+
ModuleSchemas: () => ModuleSchemas,
|
|
37720
|
+
ModuleSpecialSchemaMap: () => ModuleSpecialSchemaMap,
|
|
37721
|
+
MonorepoDefaultConfig: () => MonorepoDefaultConfig,
|
|
37722
|
+
MonorepoNewActionConfig: () => MonorepoNewActionConfig,
|
|
37723
|
+
MonorepoNewActionSchema: () => MonorepoNewActionSchema,
|
|
37724
|
+
MonorepoSchema: () => MonorepoSchema,
|
|
37725
|
+
MonorepoSchemas: () => MonorepoSchemas,
|
|
37726
|
+
NeedModifyMWAConfigSchema: () => NeedModifyMWAConfigSchema,
|
|
37727
|
+
NeedModifyModuleConfigSchema: () => NeedModifyModuleConfigSchema,
|
|
37728
|
+
PackageManager: () => PackageManager,
|
|
37729
|
+
PackageManagerName: () => PackageManagerName,
|
|
37730
|
+
PackageManagerSchema: () => PackageManagerSchema,
|
|
37731
|
+
PackageNameSchema: () => PackageNameSchema,
|
|
37732
|
+
PackagePathSchema: () => PackagePathSchema,
|
|
37733
|
+
RunWay: () => RunWay,
|
|
37734
|
+
RunWaySchema: () => RunWaySchema,
|
|
37735
|
+
ServerSchema: () => ServerSchema,
|
|
37736
|
+
ServerSchemas: () => ServerSchemas,
|
|
37737
|
+
Solution: () => Solution,
|
|
37738
|
+
SolutionDefaultConfig: () => SolutionDefaultConfig,
|
|
37739
|
+
SolutionGenerator: () => SolutionGenerator,
|
|
37740
|
+
SolutionSchema: () => SolutionSchema,
|
|
37741
|
+
SolutionSchemas: () => SolutionSchemas,
|
|
37742
|
+
SolutionText: () => SolutionText,
|
|
37743
|
+
SolutionToolsMap: () => SolutionToolsMap,
|
|
37744
|
+
SubSolution: () => SubSolution,
|
|
37745
|
+
SubSolutionGenerator: () => SubSolutionGenerator,
|
|
37746
|
+
SubSolutionSchema: () => SubSolutionSchema,
|
|
37747
|
+
SubSolutionText: () => SubSolutionText,
|
|
37748
|
+
getSolutionNameFromSubSolution: () => getSolutionNameFromSubSolution,
|
|
37749
|
+
i18n: () => i18n,
|
|
37750
|
+
localeKeys: () => localeKeys,
|
|
37751
|
+
moduleConfigWhenFunc: () => moduleConfigWhenFunc,
|
|
37752
|
+
mwaConfigWhenFunc: () => mwaConfigWhenFunc
|
|
37753
|
+
});
|
|
37754
|
+
var _SolutionDefaultConfi, _SolutionSchemas, SolutionDefaultConfig, SolutionSchemas;
|
|
37755
|
+
var init_treeshaking2 = __esmMin(() => {
|
|
37756
|
+
init_defineProperty();
|
|
37757
|
+
init_base();
|
|
37758
|
+
init_common();
|
|
37759
|
+
init_module();
|
|
37760
|
+
init_monorepo();
|
|
37761
|
+
init_mwa();
|
|
37762
|
+
init_locale();
|
|
37763
|
+
init_common();
|
|
37764
|
+
init_newAction();
|
|
37765
|
+
init_mwa();
|
|
37766
|
+
init_module();
|
|
37767
|
+
init_monorepo();
|
|
37768
|
+
init_expand();
|
|
37769
|
+
init_base();
|
|
37770
|
+
SolutionDefaultConfig = (_SolutionDefaultConfi = {}, _defineProperty(_SolutionDefaultConfi, Solution.MWA, MWADefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Module, ModuleDefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Monorepo, MonorepoDefaultConfig), _SolutionDefaultConfi);
|
|
37771
|
+
SolutionSchemas = (_SolutionSchemas = {}, _defineProperty(_SolutionSchemas, Solution.MWA, MWASchemas), _defineProperty(_SolutionSchemas, Solution.Module, ModuleSchemas), _defineProperty(_SolutionSchemas, Solution.Monorepo, MonorepoSchemas), _defineProperty(_SolutionSchemas, "custom", BaseSchemas), _SolutionSchemas);
|
|
37772
|
+
});
|
|
37773
|
+
var require_strip_ansi2 = __commonJSMin((exports) => {
|
|
37774
|
+
"use strict";
|
|
37775
|
+
Object.defineProperty(exports, "__esModule", {
|
|
37776
|
+
value: true
|
|
37777
|
+
});
|
|
37778
|
+
exports.stripAnsi = stripAnsi;
|
|
37779
|
+
function ansiRegex({
|
|
37780
|
+
onlyFirst = false
|
|
37781
|
+
} = {}) {
|
|
37782
|
+
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");
|
|
37783
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
37784
|
+
}
|
|
37785
|
+
function stripAnsi(string) {
|
|
37786
|
+
if (typeof string !== "string") {
|
|
37787
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
37788
|
+
}
|
|
37789
|
+
return string.replace(ansiRegex(), "");
|
|
37790
|
+
}
|
|
37791
|
+
});
|
|
36418
37792
|
var require_zh = __commonJSMin((exports) => {
|
|
36419
37793
|
"use strict";
|
|
36420
37794
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -36464,6 +37838,78 @@ var require_locale = __commonJSMin((exports) => {
|
|
|
36464
37838
|
});
|
|
36465
37839
|
exports.localeKeys = localeKeys2;
|
|
36466
37840
|
});
|
|
37841
|
+
var require_package = __commonJSMin((exports) => {
|
|
37842
|
+
"use strict";
|
|
37843
|
+
Object.defineProperty(exports, "__esModule", {
|
|
37844
|
+
value: true
|
|
37845
|
+
});
|
|
37846
|
+
exports.getAvailableVersion = getAvailableVersion;
|
|
37847
|
+
exports.isPackageDeprecated = isPackageDeprecated;
|
|
37848
|
+
exports.isPackageExist = isPackageExist;
|
|
37849
|
+
exports.semverDecrease = semverDecrease;
|
|
37850
|
+
var _utils = require_dist();
|
|
37851
|
+
async function isPackageExist(packageName, registry) {
|
|
37852
|
+
if (await (0, _utils.canUseNpm)()) {
|
|
37853
|
+
const args = ["view", packageName, "version"];
|
|
37854
|
+
if (registry) {
|
|
37855
|
+
args.push(`--registry=${registry}`);
|
|
37856
|
+
}
|
|
37857
|
+
const result = await (0, _utils.execa)("npm", args);
|
|
37858
|
+
return (0, _utils.stripAnsi)(result.stdout);
|
|
37859
|
+
}
|
|
37860
|
+
throw new Error("not found npm, please install npm before");
|
|
37861
|
+
}
|
|
37862
|
+
async function isPackageDeprecated(packageName, registry) {
|
|
37863
|
+
if (await (0, _utils.canUseNpm)()) {
|
|
37864
|
+
const args = ["view", packageName, "deprecated"];
|
|
37865
|
+
if (registry) {
|
|
37866
|
+
args.push(`--registry=${registry}`);
|
|
37867
|
+
}
|
|
37868
|
+
const result = await (0, _utils.execa)("npm", args);
|
|
37869
|
+
return (0, _utils.stripAnsi)(result.stdout);
|
|
37870
|
+
}
|
|
37871
|
+
throw new Error("not found npm, please install npm before");
|
|
37872
|
+
}
|
|
37873
|
+
function semverDecrease(version4) {
|
|
37874
|
+
const versionObj = _utils.semver.parse(version4, {
|
|
37875
|
+
loose: true
|
|
37876
|
+
});
|
|
37877
|
+
if (!versionObj) {
|
|
37878
|
+
throw new Error(`Version ${version4} is not valid semver`);
|
|
37879
|
+
}
|
|
37880
|
+
versionObj.build = [];
|
|
37881
|
+
versionObj.prerelease = [];
|
|
37882
|
+
versionObj.patch--;
|
|
37883
|
+
const result = versionObj.format();
|
|
37884
|
+
if (!_utils.semver.valid(result)) {
|
|
37885
|
+
_utils.logger.debug(`Version ${result} is not valid semver`);
|
|
37886
|
+
return version4;
|
|
37887
|
+
}
|
|
37888
|
+
return result;
|
|
37889
|
+
}
|
|
37890
|
+
async function getAvailableVersion(packageName, currentVersion, registry) {
|
|
37891
|
+
let times = 5;
|
|
37892
|
+
let version4 = currentVersion;
|
|
37893
|
+
while (times) {
|
|
37894
|
+
if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
|
|
37895
|
+
version4 = _utils.semver.inc(version4, "patch");
|
|
37896
|
+
times--;
|
|
37897
|
+
continue;
|
|
37898
|
+
}
|
|
37899
|
+
return version4;
|
|
37900
|
+
}
|
|
37901
|
+
times = 5;
|
|
37902
|
+
while (times) {
|
|
37903
|
+
version4 = semverDecrease(version4);
|
|
37904
|
+
if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
|
|
37905
|
+
times--;
|
|
37906
|
+
continue;
|
|
37907
|
+
}
|
|
37908
|
+
return version4;
|
|
37909
|
+
}
|
|
37910
|
+
return currentVersion;
|
|
37911
|
+
}
|
|
37912
|
+
});
|
|
36467
37913
|
var require_utils = __commonJSMin((exports) => {
|
|
36468
37914
|
"use strict";
|
|
36469
37915
|
Object.defineProperty(exports, "__esModule", {
|
|
@@ -36482,6 +37928,19 @@ var require_utils = __commonJSMin((exports) => {
|
|
|
36482
37928
|
}
|
|
36483
37929
|
});
|
|
36484
37930
|
});
|
|
37931
|
+
var _package = require_package();
|
|
37932
|
+
Object.keys(_package).forEach(function(key) {
|
|
37933
|
+
if (key === "default" || key === "__esModule")
|
|
37934
|
+
return;
|
|
37935
|
+
if (key in exports && exports[key] === _package[key])
|
|
37936
|
+
return;
|
|
37937
|
+
Object.defineProperty(exports, key, {
|
|
37938
|
+
enumerable: true,
|
|
37939
|
+
get: function() {
|
|
37940
|
+
return _package[key];
|
|
37941
|
+
}
|
|
37942
|
+
});
|
|
37943
|
+
});
|
|
36485
37944
|
});
|
|
36486
37945
|
var require_node = __commonJSMin((exports) => {
|
|
36487
37946
|
"use strict";
|
|
@@ -36491,6 +37950,7 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36491
37950
|
var _exportNames = {
|
|
36492
37951
|
getPackageVersion: true,
|
|
36493
37952
|
getModernVersion: true,
|
|
37953
|
+
getModernPluginVersion: true,
|
|
36494
37954
|
getPackageManagerText: true,
|
|
36495
37955
|
isTsProject: true,
|
|
36496
37956
|
getPackageObj: true,
|
|
@@ -36499,7 +37959,9 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36499
37959
|
validatePackagePath: true,
|
|
36500
37960
|
getModuleProjectPath: true,
|
|
36501
37961
|
getMWAProjectPath: true,
|
|
37962
|
+
ora: true,
|
|
36502
37963
|
fs: true,
|
|
37964
|
+
semver: true,
|
|
36503
37965
|
execa: true,
|
|
36504
37966
|
readTsConfigByFile: true,
|
|
36505
37967
|
getPackageManager: true,
|
|
@@ -36541,6 +38003,7 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36541
38003
|
});
|
|
36542
38004
|
exports.getAllPackages = getAllPackages;
|
|
36543
38005
|
exports.getMWAProjectPath = getMWAProjectPath;
|
|
38006
|
+
exports.getModernPluginVersion = getModernPluginVersion2;
|
|
36544
38007
|
exports.getModernVersion = getModernVersion;
|
|
36545
38008
|
exports.getModuleProjectPath = getModuleProjectPath;
|
|
36546
38009
|
Object.defineProperty(exports, "getPackageManager", {
|
|
@@ -36565,18 +38028,32 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36565
38028
|
}
|
|
36566
38029
|
});
|
|
36567
38030
|
exports.isTsProject = isTsProject2;
|
|
38031
|
+
Object.defineProperty(exports, "ora", {
|
|
38032
|
+
enumerable: true,
|
|
38033
|
+
get: function() {
|
|
38034
|
+
return _utils.ora;
|
|
38035
|
+
}
|
|
38036
|
+
});
|
|
36568
38037
|
Object.defineProperty(exports, "readTsConfigByFile", {
|
|
36569
38038
|
enumerable: true,
|
|
36570
38039
|
get: function() {
|
|
36571
38040
|
return _utils.readTsConfigByFile;
|
|
36572
38041
|
}
|
|
36573
38042
|
});
|
|
38043
|
+
Object.defineProperty(exports, "semver", {
|
|
38044
|
+
enumerable: true,
|
|
38045
|
+
get: function() {
|
|
38046
|
+
return _utils.semver;
|
|
38047
|
+
}
|
|
38048
|
+
});
|
|
36574
38049
|
exports.validatePackageName = validatePackageName;
|
|
36575
38050
|
exports.validatePackagePath = validatePackagePath;
|
|
36576
38051
|
var _path = _interopRequireDefault(__require("path"));
|
|
36577
38052
|
var _utils = require_dist();
|
|
38053
|
+
var _generatorCommon = (init_treeshaking2(), __toCommonJS2(treeshaking_exports2));
|
|
36578
38054
|
var _stripAnsi = require_strip_ansi2();
|
|
36579
38055
|
var _locale = require_locale();
|
|
38056
|
+
var _package = require_package();
|
|
36580
38057
|
var _utils2 = require_utils();
|
|
36581
38058
|
Object.keys(_utils2).forEach(function(key) {
|
|
36582
38059
|
if (key === "default" || key === "__esModule")
|
|
@@ -36628,16 +38105,39 @@ var require_node = __commonJSMin((exports) => {
|
|
|
36628
38105
|
spinner.stop();
|
|
36629
38106
|
throw new Error("not found npm, please install npm before");
|
|
36630
38107
|
}
|
|
36631
|
-
|
|
36632
|
-
|
|
36633
|
-
|
|
36634
|
-
monorepo: "@modern-js/monorepo-tools"
|
|
36635
|
-
};
|
|
36636
|
-
async function getModernVersion(solution) {
|
|
36637
|
-
const dep = SolutionDep[solution];
|
|
36638
|
-
const modernVersion = await getPackageVersion2(dep);
|
|
38108
|
+
async function getModernVersion(solution, registry) {
|
|
38109
|
+
const dep = _generatorCommon.SolutionToolsMap[solution];
|
|
38110
|
+
const modernVersion = await getPackageVersion2(dep, registry);
|
|
36639
38111
|
return modernVersion;
|
|
36640
38112
|
}
|
|
38113
|
+
async function getModernPluginVersion2(solution, packageName, options3 = {}) {
|
|
38114
|
+
const {
|
|
38115
|
+
cwd = process.cwd(),
|
|
38116
|
+
registry
|
|
38117
|
+
} = options3;
|
|
38118
|
+
const getLatetPluginVersion = async () => {
|
|
38119
|
+
const version4 = await getPackageVersion2(packageName, registry);
|
|
38120
|
+
return version4;
|
|
38121
|
+
};
|
|
38122
|
+
if (!packageName.startsWith("@modern-js")) {
|
|
38123
|
+
return getLatetPluginVersion();
|
|
38124
|
+
}
|
|
38125
|
+
const pkgPath = _path.default.join(__require.resolve(_generatorCommon.SolutionToolsMap[solution], {
|
|
38126
|
+
paths: [cwd]
|
|
38127
|
+
}), "../../../../", "package.json");
|
|
38128
|
+
if (_utils.fs.existsSync(pkgPath)) {
|
|
38129
|
+
const pkgInfo = _utils.fs.readJSONSync(pkgPath);
|
|
38130
|
+
const modernVersion = pkgInfo.version;
|
|
38131
|
+
if (typeof modernVersion !== "string") {
|
|
38132
|
+
return getLatetPluginVersion();
|
|
38133
|
+
}
|
|
38134
|
+
if (_utils.semver.lt(modernVersion, "1.15.0")) {
|
|
38135
|
+
return getLatetPluginVersion();
|
|
38136
|
+
}
|
|
38137
|
+
return (0, _package.getAvailableVersion)(packageName, modernVersion, registry);
|
|
38138
|
+
}
|
|
38139
|
+
return getLatetPluginVersion();
|
|
38140
|
+
}
|
|
36641
38141
|
function getPackageManagerText(packageManager) {
|
|
36642
38142
|
return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
|
|
36643
38143
|
}
|
|
@@ -67083,17 +68583,17 @@ var require_logger2 = __commonJSMin((exports) => {
|
|
|
67083
68583
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
|
67084
68584
|
return;
|
|
67085
68585
|
}
|
|
67086
|
-
let
|
|
68586
|
+
let label25 = "";
|
|
67087
68587
|
let text = "";
|
|
67088
68588
|
const logType = this.types[type];
|
|
67089
68589
|
if (this.config.displayLabel && logType.label) {
|
|
67090
|
-
|
|
68590
|
+
label25 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
|
67091
68591
|
if (this.config.underlineLabel) {
|
|
67092
|
-
|
|
68592
|
+
label25 = underline(label25).padEnd(this.longestUnderlinedLabel.length + 1);
|
|
67093
68593
|
} else {
|
|
67094
|
-
|
|
68594
|
+
label25 = label25.padEnd(this.longestLabel.length + 1);
|
|
67095
68595
|
}
|
|
67096
|
-
|
|
68596
|
+
label25 = logType.color ? chalk_1.default[logType.color](label25) : label25;
|
|
67097
68597
|
}
|
|
67098
68598
|
if (message instanceof Error) {
|
|
67099
68599
|
if (message.stack) {
|
|
@@ -67109,15 +68609,15 @@ ${grey(rest.join("\n"))}`;
|
|
|
67109
68609
|
if (logType.level === "warn" || logType.level === "error") {
|
|
67110
68610
|
this.retainLog(type, text);
|
|
67111
68611
|
}
|
|
67112
|
-
const log =
|
|
68612
|
+
const log = label25.length > 0 ? `${label25} ${text}` : text;
|
|
67113
68613
|
console.log(log, ...args);
|
|
67114
68614
|
}
|
|
67115
68615
|
getLongestLabel() {
|
|
67116
68616
|
let longestLabel = "";
|
|
67117
68617
|
Object.keys(this.types).forEach((type) => {
|
|
67118
|
-
const { label:
|
|
67119
|
-
if (
|
|
67120
|
-
longestLabel =
|
|
68618
|
+
const { label: label25 = "" } = this.types[type];
|
|
68619
|
+
if (label25.length > longestLabel.length) {
|
|
68620
|
+
longestLabel = label25;
|
|
67121
68621
|
}
|
|
67122
68622
|
});
|
|
67123
68623
|
return longestLabel;
|
|
@@ -69805,9 +71305,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
69805
71305
|
}();
|
|
69806
71306
|
exports2.BlockStatement = BlockStatement;
|
|
69807
71307
|
var BreakStatement = function() {
|
|
69808
|
-
function BreakStatement2(
|
|
71308
|
+
function BreakStatement2(label25) {
|
|
69809
71309
|
this.type = syntax_1.Syntax.BreakStatement;
|
|
69810
|
-
this.label =
|
|
71310
|
+
this.label = label25;
|
|
69811
71311
|
}
|
|
69812
71312
|
return BreakStatement2;
|
|
69813
71313
|
}();
|
|
@@ -69879,9 +71379,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
69879
71379
|
}();
|
|
69880
71380
|
exports2.ConditionalExpression = ConditionalExpression;
|
|
69881
71381
|
var ContinueStatement = function() {
|
|
69882
|
-
function ContinueStatement2(
|
|
71382
|
+
function ContinueStatement2(label25) {
|
|
69883
71383
|
this.type = syntax_1.Syntax.ContinueStatement;
|
|
69884
|
-
this.label =
|
|
71384
|
+
this.label = label25;
|
|
69885
71385
|
}
|
|
69886
71386
|
return ContinueStatement2;
|
|
69887
71387
|
}();
|
|
@@ -70072,9 +71572,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
70072
71572
|
}();
|
|
70073
71573
|
exports2.ImportSpecifier = ImportSpecifier;
|
|
70074
71574
|
var LabeledStatement = function() {
|
|
70075
|
-
function LabeledStatement2(
|
|
71575
|
+
function LabeledStatement2(label25, body) {
|
|
70076
71576
|
this.type = syntax_1.Syntax.LabeledStatement;
|
|
70077
|
-
this.label =
|
|
71577
|
+
this.label = label25;
|
|
70078
71578
|
this.body = body;
|
|
70079
71579
|
}
|
|
70080
71580
|
return LabeledStatement2;
|
|
@@ -72221,38 +73721,38 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
|
72221
73721
|
Parser2.prototype.parseContinueStatement = function() {
|
|
72222
73722
|
var node = this.createNode();
|
|
72223
73723
|
this.expectKeyword("continue");
|
|
72224
|
-
var
|
|
73724
|
+
var label25 = null;
|
|
72225
73725
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
|
72226
73726
|
var id = this.parseVariableIdentifier();
|
|
72227
|
-
|
|
73727
|
+
label25 = id;
|
|
72228
73728
|
var key = "$" + id.name;
|
|
72229
73729
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
|
72230
73730
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
|
72231
73731
|
}
|
|
72232
73732
|
}
|
|
72233
73733
|
this.consumeSemicolon();
|
|
72234
|
-
if (
|
|
73734
|
+
if (label25 === null && !this.context.inIteration) {
|
|
72235
73735
|
this.throwError(messages_1.Messages.IllegalContinue);
|
|
72236
73736
|
}
|
|
72237
|
-
return this.finalize(node, new Node.ContinueStatement(
|
|
73737
|
+
return this.finalize(node, new Node.ContinueStatement(label25));
|
|
72238
73738
|
};
|
|
72239
73739
|
Parser2.prototype.parseBreakStatement = function() {
|
|
72240
73740
|
var node = this.createNode();
|
|
72241
73741
|
this.expectKeyword("break");
|
|
72242
|
-
var
|
|
73742
|
+
var label25 = null;
|
|
72243
73743
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
|
72244
73744
|
var id = this.parseVariableIdentifier();
|
|
72245
73745
|
var key = "$" + id.name;
|
|
72246
73746
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
|
72247
73747
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
|
72248
73748
|
}
|
|
72249
|
-
|
|
73749
|
+
label25 = id;
|
|
72250
73750
|
}
|
|
72251
73751
|
this.consumeSemicolon();
|
|
72252
|
-
if (
|
|
73752
|
+
if (label25 === null && !this.context.inIteration && !this.context.inSwitch) {
|
|
72253
73753
|
this.throwError(messages_1.Messages.IllegalBreak);
|
|
72254
73754
|
}
|
|
72255
|
-
return this.finalize(node, new Node.BreakStatement(
|
|
73755
|
+
return this.finalize(node, new Node.BreakStatement(label25));
|
|
72256
73756
|
};
|
|
72257
73757
|
Parser2.prototype.parseReturnStatement = function() {
|
|
72258
73758
|
if (!this.context.inFunctionBody) {
|
|
@@ -75731,7 +77231,7 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
|
75731
77231
|
splice(...args) {
|
|
75732
77232
|
const { length } = this;
|
|
75733
77233
|
const ret = super.splice(...args);
|
|
75734
|
-
let [begin, deleteCount, ...
|
|
77234
|
+
let [begin, deleteCount, ...items5] = args;
|
|
75735
77235
|
if (begin < 0) {
|
|
75736
77236
|
begin += length;
|
|
75737
77237
|
}
|
|
@@ -75742,7 +77242,7 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
|
75742
77242
|
}
|
|
75743
77243
|
const {
|
|
75744
77244
|
length: item_length
|
|
75745
|
-
} =
|
|
77245
|
+
} = items5;
|
|
75746
77246
|
const offset = item_length - deleteCount;
|
|
75747
77247
|
const start = begin + deleteCount;
|
|
75748
77248
|
const count = length - start;
|
|
@@ -75769,12 +77269,12 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
|
75769
77269
|
move_comments(array, this, begin, before - begin, -begin);
|
|
75770
77270
|
return array;
|
|
75771
77271
|
}
|
|
75772
|
-
unshift(...
|
|
77272
|
+
unshift(...items5) {
|
|
75773
77273
|
const { length } = this;
|
|
75774
|
-
const ret = super.unshift(...
|
|
77274
|
+
const ret = super.unshift(...items5);
|
|
75775
77275
|
const {
|
|
75776
77276
|
length: items_length
|
|
75777
|
-
} =
|
|
77277
|
+
} = items5;
|
|
75778
77278
|
if (items_length > 0) {
|
|
75779
77279
|
move_comments(this, this, 0, length, items_length, true);
|
|
75780
77280
|
}
|
|
@@ -75797,14 +77297,14 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
|
75797
77297
|
remove_comments(this, this.length);
|
|
75798
77298
|
return ret;
|
|
75799
77299
|
}
|
|
75800
|
-
concat(...
|
|
77300
|
+
concat(...items5) {
|
|
75801
77301
|
let { length } = this;
|
|
75802
|
-
const ret = super.concat(...
|
|
75803
|
-
if (!
|
|
77302
|
+
const ret = super.concat(...items5);
|
|
77303
|
+
if (!items5.length) {
|
|
75804
77304
|
return ret;
|
|
75805
77305
|
}
|
|
75806
77306
|
move_comments(ret, this, 0, this.length, 0);
|
|
75807
|
-
|
|
77307
|
+
items5.forEach((item) => {
|
|
75808
77308
|
const prev = length;
|
|
75809
77309
|
length += isArray(item) ? item.length : 1;
|
|
75810
77310
|
if (!(item instanceof CommentArray)) {
|
|
@@ -86511,18 +88011,18 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
|
86511
88011
|
}
|
|
86512
88012
|
return token;
|
|
86513
88013
|
}
|
|
86514
|
-
var symbol, preErrorSymbol, state,
|
|
88014
|
+
var symbol, preErrorSymbol, state, action2, a, r, yyval = {}, p, len, newState, expected;
|
|
86515
88015
|
while (true) {
|
|
86516
88016
|
state = stack[stack.length - 1];
|
|
86517
88017
|
if (this.defaultActions[state]) {
|
|
86518
|
-
|
|
88018
|
+
action2 = this.defaultActions[state];
|
|
86519
88019
|
} else {
|
|
86520
88020
|
if (symbol === null || typeof symbol == "undefined") {
|
|
86521
88021
|
symbol = lex();
|
|
86522
88022
|
}
|
|
86523
|
-
|
|
88023
|
+
action2 = table[state] && table[state][symbol];
|
|
86524
88024
|
}
|
|
86525
|
-
if (typeof
|
|
88025
|
+
if (typeof action2 === "undefined" || !action2.length || !action2[0]) {
|
|
86526
88026
|
var errStr = "";
|
|
86527
88027
|
if (!recovering) {
|
|
86528
88028
|
expected = [];
|
|
@@ -86538,15 +88038,15 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
|
86538
88038
|
this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
|
|
86539
88039
|
}
|
|
86540
88040
|
}
|
|
86541
|
-
if (
|
|
88041
|
+
if (action2[0] instanceof Array && action2.length > 1) {
|
|
86542
88042
|
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
|
86543
88043
|
}
|
|
86544
|
-
switch (
|
|
88044
|
+
switch (action2[0]) {
|
|
86545
88045
|
case 1:
|
|
86546
88046
|
stack.push(symbol);
|
|
86547
88047
|
vstack.push(this.lexer.yytext);
|
|
86548
88048
|
lstack.push(this.lexer.yylloc);
|
|
86549
|
-
stack.push(
|
|
88049
|
+
stack.push(action2[1]);
|
|
86550
88050
|
symbol = null;
|
|
86551
88051
|
if (!preErrorSymbol) {
|
|
86552
88052
|
yyleng = this.lexer.yyleng;
|
|
@@ -86561,13 +88061,13 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
|
86561
88061
|
}
|
|
86562
88062
|
break;
|
|
86563
88063
|
case 2:
|
|
86564
|
-
len = this.productions_[
|
|
88064
|
+
len = this.productions_[action2[1]][1];
|
|
86565
88065
|
yyval.$ = vstack[vstack.length - len];
|
|
86566
88066
|
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 };
|
|
86567
88067
|
if (ranges) {
|
|
86568
88068
|
yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
|
|
86569
88069
|
}
|
|
86570
|
-
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy,
|
|
88070
|
+
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action2[1], vstack, lstack);
|
|
86571
88071
|
if (typeof r !== "undefined") {
|
|
86572
88072
|
return r;
|
|
86573
88073
|
}
|
|
@@ -86576,7 +88076,7 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
|
86576
88076
|
vstack = vstack.slice(0, -1 * len);
|
|
86577
88077
|
lstack = lstack.slice(0, -1 * len);
|
|
86578
88078
|
}
|
|
86579
|
-
stack.push(this.productions_[
|
|
88079
|
+
stack.push(this.productions_[action2[1]][0]);
|
|
86580
88080
|
vstack.push(yyval.$);
|
|
86581
88081
|
lstack.push(yyval._$);
|
|
86582
88082
|
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
@@ -90041,11 +91541,11 @@ var require_javascript_compiler = __commonJSMin((exports, module2) => {
|
|
|
90041
91541
|
var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams);
|
|
90042
91542
|
this.push(functionCall);
|
|
90043
91543
|
},
|
|
90044
|
-
itemsSeparatedBy: function itemsSeparatedBy(
|
|
91544
|
+
itemsSeparatedBy: function itemsSeparatedBy(items5, separator) {
|
|
90045
91545
|
var result = [];
|
|
90046
|
-
result.push(
|
|
90047
|
-
for (var i = 1; i <
|
|
90048
|
-
result.push(separator,
|
|
91546
|
+
result.push(items5[0]);
|
|
91547
|
+
for (var i = 1; i < items5.length; i++) {
|
|
91548
|
+
result.push(separator, items5[i]);
|
|
90049
91549
|
}
|
|
90050
91550
|
return result;
|
|
90051
91551
|
},
|
|
@@ -95420,8 +96920,8 @@ var require_AsapAction = __commonJSMin((exports) => {
|
|
|
95420
96920
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
95421
96921
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
95422
96922
|
}
|
|
95423
|
-
if (!scheduler.actions.some(function(
|
|
95424
|
-
return
|
|
96923
|
+
if (!scheduler.actions.some(function(action2) {
|
|
96924
|
+
return action2.id === id;
|
|
95425
96925
|
})) {
|
|
95426
96926
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
|
95427
96927
|
scheduler._scheduled = void 0;
|
|
@@ -95494,23 +96994,23 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
|
|
|
95494
96994
|
_this._scheduled = void 0;
|
|
95495
96995
|
return _this;
|
|
95496
96996
|
}
|
|
95497
|
-
AsyncScheduler2.prototype.flush = function(
|
|
96997
|
+
AsyncScheduler2.prototype.flush = function(action2) {
|
|
95498
96998
|
var actions = this.actions;
|
|
95499
96999
|
if (this._active) {
|
|
95500
|
-
actions.push(
|
|
97000
|
+
actions.push(action2);
|
|
95501
97001
|
return;
|
|
95502
97002
|
}
|
|
95503
97003
|
var error;
|
|
95504
97004
|
this._active = true;
|
|
95505
97005
|
do {
|
|
95506
|
-
if (error =
|
|
97006
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
95507
97007
|
break;
|
|
95508
97008
|
}
|
|
95509
|
-
} while (
|
|
97009
|
+
} while (action2 = actions.shift());
|
|
95510
97010
|
this._active = false;
|
|
95511
97011
|
if (error) {
|
|
95512
|
-
while (
|
|
95513
|
-
|
|
97012
|
+
while (action2 = actions.shift()) {
|
|
97013
|
+
action2.unsubscribe();
|
|
95514
97014
|
}
|
|
95515
97015
|
throw error;
|
|
95516
97016
|
}
|
|
@@ -95550,22 +97050,22 @@ var require_AsapScheduler = __commonJSMin((exports) => {
|
|
|
95550
97050
|
function AsapScheduler2() {
|
|
95551
97051
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
95552
97052
|
}
|
|
95553
|
-
AsapScheduler2.prototype.flush = function(
|
|
97053
|
+
AsapScheduler2.prototype.flush = function(action2) {
|
|
95554
97054
|
this._active = true;
|
|
95555
97055
|
var flushId = this._scheduled;
|
|
95556
97056
|
this._scheduled = void 0;
|
|
95557
97057
|
var actions = this.actions;
|
|
95558
97058
|
var error;
|
|
95559
|
-
|
|
97059
|
+
action2 = action2 || actions.shift();
|
|
95560
97060
|
do {
|
|
95561
|
-
if (error =
|
|
97061
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
95562
97062
|
break;
|
|
95563
97063
|
}
|
|
95564
|
-
} while ((
|
|
97064
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
|
95565
97065
|
this._active = false;
|
|
95566
97066
|
if (error) {
|
|
95567
|
-
while ((
|
|
95568
|
-
|
|
97067
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
|
97068
|
+
action2.unsubscribe();
|
|
95569
97069
|
}
|
|
95570
97070
|
throw error;
|
|
95571
97071
|
}
|
|
@@ -95752,8 +97252,8 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
|
|
|
95752
97252
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
95753
97253
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
95754
97254
|
}
|
|
95755
|
-
if (!scheduler.actions.some(function(
|
|
95756
|
-
return
|
|
97255
|
+
if (!scheduler.actions.some(function(action2) {
|
|
97256
|
+
return action2.id === id;
|
|
95757
97257
|
})) {
|
|
95758
97258
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
95759
97259
|
scheduler._scheduled = void 0;
|
|
@@ -95795,22 +97295,22 @@ var require_AnimationFrameScheduler = __commonJSMin((exports) => {
|
|
|
95795
97295
|
function AnimationFrameScheduler2() {
|
|
95796
97296
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
95797
97297
|
}
|
|
95798
|
-
AnimationFrameScheduler2.prototype.flush = function(
|
|
97298
|
+
AnimationFrameScheduler2.prototype.flush = function(action2) {
|
|
95799
97299
|
this._active = true;
|
|
95800
97300
|
var flushId = this._scheduled;
|
|
95801
97301
|
this._scheduled = void 0;
|
|
95802
97302
|
var actions = this.actions;
|
|
95803
97303
|
var error;
|
|
95804
|
-
|
|
97304
|
+
action2 = action2 || actions.shift();
|
|
95805
97305
|
do {
|
|
95806
|
-
if (error =
|
|
97306
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
95807
97307
|
break;
|
|
95808
97308
|
}
|
|
95809
|
-
} while ((
|
|
97309
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
|
95810
97310
|
this._active = false;
|
|
95811
97311
|
if (error) {
|
|
95812
|
-
while ((
|
|
95813
|
-
|
|
97312
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
|
97313
|
+
action2.unsubscribe();
|
|
95814
97314
|
}
|
|
95815
97315
|
throw error;
|
|
95816
97316
|
}
|
|
@@ -95876,17 +97376,17 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
|
95876
97376
|
VirtualTimeScheduler2.prototype.flush = function() {
|
|
95877
97377
|
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
|
95878
97378
|
var error;
|
|
95879
|
-
var
|
|
95880
|
-
while ((
|
|
97379
|
+
var action2;
|
|
97380
|
+
while ((action2 = actions[0]) && action2.delay <= maxFrames) {
|
|
95881
97381
|
actions.shift();
|
|
95882
|
-
this.frame =
|
|
95883
|
-
if (error =
|
|
97382
|
+
this.frame = action2.delay;
|
|
97383
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
95884
97384
|
break;
|
|
95885
97385
|
}
|
|
95886
97386
|
}
|
|
95887
97387
|
if (error) {
|
|
95888
|
-
while (
|
|
95889
|
-
|
|
97388
|
+
while (action2 = actions.shift()) {
|
|
97389
|
+
action2.unsubscribe();
|
|
95890
97390
|
}
|
|
95891
97391
|
throw error;
|
|
95892
97392
|
}
|
|
@@ -95918,9 +97418,9 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
|
95918
97418
|
return _super.prototype.schedule.call(this, state, delay);
|
|
95919
97419
|
}
|
|
95920
97420
|
this.active = false;
|
|
95921
|
-
var
|
|
95922
|
-
this.add(
|
|
95923
|
-
return
|
|
97421
|
+
var action2 = new VirtualAction2(this.scheduler, this.work);
|
|
97422
|
+
this.add(action2);
|
|
97423
|
+
return action2.schedule(state, delay);
|
|
95924
97424
|
} else {
|
|
95925
97425
|
return Subscription_1.Subscription.EMPTY;
|
|
95926
97426
|
}
|
|
@@ -109630,15 +111130,15 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
|
109630
111130
|
return new Ora(options3);
|
|
109631
111131
|
};
|
|
109632
111132
|
module2.exports = oraFactory;
|
|
109633
|
-
module2.exports.promise = (
|
|
109634
|
-
if (typeof
|
|
111133
|
+
module2.exports.promise = (action2, options3) => {
|
|
111134
|
+
if (typeof action2.then !== "function") {
|
|
109635
111135
|
throw new TypeError("Parameter `action` must be a Promise");
|
|
109636
111136
|
}
|
|
109637
111137
|
const spinner = new Ora(options3);
|
|
109638
111138
|
spinner.start();
|
|
109639
111139
|
(async () => {
|
|
109640
111140
|
try {
|
|
109641
|
-
await
|
|
111141
|
+
await action2;
|
|
109642
111142
|
spinner.succeed();
|
|
109643
111143
|
} catch {
|
|
109644
111144
|
spinner.fail();
|
|
@@ -109819,13 +111319,13 @@ var require_base3 = __commonJSMin((exports, module2) => {
|
|
|
109819
111319
|
}
|
|
109820
111320
|
handleSubmitEvents(submit) {
|
|
109821
111321
|
const self2 = this;
|
|
109822
|
-
const
|
|
111322
|
+
const validate4 = runAsync(this.opt.validate);
|
|
109823
111323
|
const asyncFilter = runAsync(this.opt.filter);
|
|
109824
111324
|
const validation = submit.pipe(flatMap((value) => {
|
|
109825
111325
|
this.startSpinner(value, this.opt.filteringText);
|
|
109826
111326
|
return asyncFilter(value, self2.answers).then((filteredValue) => {
|
|
109827
111327
|
this.startSpinner(filteredValue, this.opt.validatingText);
|
|
109828
|
-
return
|
|
111328
|
+
return validate4(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
|
|
109829
111329
|
}, (err) => ({ isValid: err }));
|
|
109830
111330
|
}), share());
|
|
109831
111331
|
const success = validation.pipe(filter3((state) => state.isValid === true), take(1));
|
|
@@ -129311,8 +130811,8 @@ var require_AsapAction2 = __commonJSMin((exports) => {
|
|
|
129311
130811
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
129312
130812
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
129313
130813
|
}
|
|
129314
|
-
if (!scheduler.actions.some(function(
|
|
129315
|
-
return
|
|
130814
|
+
if (!scheduler.actions.some(function(action2) {
|
|
130815
|
+
return action2.id === id;
|
|
129316
130816
|
})) {
|
|
129317
130817
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
|
129318
130818
|
scheduler._scheduled = void 0;
|
|
@@ -129385,23 +130885,23 @@ var require_AsyncScheduler2 = __commonJSMin((exports) => {
|
|
|
129385
130885
|
_this._scheduled = void 0;
|
|
129386
130886
|
return _this;
|
|
129387
130887
|
}
|
|
129388
|
-
AsyncScheduler2.prototype.flush = function(
|
|
130888
|
+
AsyncScheduler2.prototype.flush = function(action2) {
|
|
129389
130889
|
var actions = this.actions;
|
|
129390
130890
|
if (this._active) {
|
|
129391
|
-
actions.push(
|
|
130891
|
+
actions.push(action2);
|
|
129392
130892
|
return;
|
|
129393
130893
|
}
|
|
129394
130894
|
var error;
|
|
129395
130895
|
this._active = true;
|
|
129396
130896
|
do {
|
|
129397
|
-
if (error =
|
|
130897
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
129398
130898
|
break;
|
|
129399
130899
|
}
|
|
129400
|
-
} while (
|
|
130900
|
+
} while (action2 = actions.shift());
|
|
129401
130901
|
this._active = false;
|
|
129402
130902
|
if (error) {
|
|
129403
|
-
while (
|
|
129404
|
-
|
|
130903
|
+
while (action2 = actions.shift()) {
|
|
130904
|
+
action2.unsubscribe();
|
|
129405
130905
|
}
|
|
129406
130906
|
throw error;
|
|
129407
130907
|
}
|
|
@@ -129441,22 +130941,22 @@ var require_AsapScheduler2 = __commonJSMin((exports) => {
|
|
|
129441
130941
|
function AsapScheduler2() {
|
|
129442
130942
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
129443
130943
|
}
|
|
129444
|
-
AsapScheduler2.prototype.flush = function(
|
|
130944
|
+
AsapScheduler2.prototype.flush = function(action2) {
|
|
129445
130945
|
this._active = true;
|
|
129446
130946
|
var flushId = this._scheduled;
|
|
129447
130947
|
this._scheduled = void 0;
|
|
129448
130948
|
var actions = this.actions;
|
|
129449
130949
|
var error;
|
|
129450
|
-
|
|
130950
|
+
action2 = action2 || actions.shift();
|
|
129451
130951
|
do {
|
|
129452
|
-
if (error =
|
|
130952
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
129453
130953
|
break;
|
|
129454
130954
|
}
|
|
129455
|
-
} while ((
|
|
130955
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
|
129456
130956
|
this._active = false;
|
|
129457
130957
|
if (error) {
|
|
129458
|
-
while ((
|
|
129459
|
-
|
|
130958
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
|
130959
|
+
action2.unsubscribe();
|
|
129460
130960
|
}
|
|
129461
130961
|
throw error;
|
|
129462
130962
|
}
|
|
@@ -129643,8 +131143,8 @@ var require_AnimationFrameAction2 = __commonJSMin((exports) => {
|
|
|
129643
131143
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
|
129644
131144
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
129645
131145
|
}
|
|
129646
|
-
if (!scheduler.actions.some(function(
|
|
129647
|
-
return
|
|
131146
|
+
if (!scheduler.actions.some(function(action2) {
|
|
131147
|
+
return action2.id === id;
|
|
129648
131148
|
})) {
|
|
129649
131149
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
129650
131150
|
scheduler._scheduled = void 0;
|
|
@@ -129686,22 +131186,22 @@ var require_AnimationFrameScheduler2 = __commonJSMin((exports) => {
|
|
|
129686
131186
|
function AnimationFrameScheduler2() {
|
|
129687
131187
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
129688
131188
|
}
|
|
129689
|
-
AnimationFrameScheduler2.prototype.flush = function(
|
|
131189
|
+
AnimationFrameScheduler2.prototype.flush = function(action2) {
|
|
129690
131190
|
this._active = true;
|
|
129691
131191
|
var flushId = this._scheduled;
|
|
129692
131192
|
this._scheduled = void 0;
|
|
129693
131193
|
var actions = this.actions;
|
|
129694
131194
|
var error;
|
|
129695
|
-
|
|
131195
|
+
action2 = action2 || actions.shift();
|
|
129696
131196
|
do {
|
|
129697
|
-
if (error =
|
|
131197
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
129698
131198
|
break;
|
|
129699
131199
|
}
|
|
129700
|
-
} while ((
|
|
131200
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
|
129701
131201
|
this._active = false;
|
|
129702
131202
|
if (error) {
|
|
129703
|
-
while ((
|
|
129704
|
-
|
|
131203
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
|
131204
|
+
action2.unsubscribe();
|
|
129705
131205
|
}
|
|
129706
131206
|
throw error;
|
|
129707
131207
|
}
|
|
@@ -129767,17 +131267,17 @@ var require_VirtualTimeScheduler2 = __commonJSMin((exports) => {
|
|
|
129767
131267
|
VirtualTimeScheduler2.prototype.flush = function() {
|
|
129768
131268
|
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
|
129769
131269
|
var error;
|
|
129770
|
-
var
|
|
129771
|
-
while ((
|
|
131270
|
+
var action2;
|
|
131271
|
+
while ((action2 = actions[0]) && action2.delay <= maxFrames) {
|
|
129772
131272
|
actions.shift();
|
|
129773
|
-
this.frame =
|
|
129774
|
-
if (error =
|
|
131273
|
+
this.frame = action2.delay;
|
|
131274
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
|
129775
131275
|
break;
|
|
129776
131276
|
}
|
|
129777
131277
|
}
|
|
129778
131278
|
if (error) {
|
|
129779
|
-
while (
|
|
129780
|
-
|
|
131279
|
+
while (action2 = actions.shift()) {
|
|
131280
|
+
action2.unsubscribe();
|
|
129781
131281
|
}
|
|
129782
131282
|
throw error;
|
|
129783
131283
|
}
|
|
@@ -129809,9 +131309,9 @@ var require_VirtualTimeScheduler2 = __commonJSMin((exports) => {
|
|
|
129809
131309
|
return _super.prototype.schedule.call(this, state, delay);
|
|
129810
131310
|
}
|
|
129811
131311
|
this.active = false;
|
|
129812
|
-
var
|
|
129813
|
-
this.add(
|
|
129814
|
-
return
|
|
131312
|
+
var action2 = new VirtualAction2(this.scheduler, this.work);
|
|
131313
|
+
this.add(action2);
|
|
131314
|
+
return action2.schedule(state, delay);
|
|
129815
131315
|
} else {
|
|
129816
131316
|
return Subscription_1.Subscription.EMPTY;
|
|
129817
131317
|
}
|
|
@@ -136169,7 +137669,7 @@ var require_cjs2 = __commonJSMin((exports) => {
|
|
|
136169
137669
|
return zipWith_1.zipWith;
|
|
136170
137670
|
} });
|
|
136171
137671
|
});
|
|
136172
|
-
function
|
|
137672
|
+
function _arrayLikeToArray2(arr, len) {
|
|
136173
137673
|
if (len == null || len > arr.length)
|
|
136174
137674
|
len = arr.length;
|
|
136175
137675
|
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
@@ -136177,28 +137677,28 @@ function _arrayLikeToArray(arr, len) {
|
|
|
136177
137677
|
}
|
|
136178
137678
|
return arr2;
|
|
136179
137679
|
}
|
|
136180
|
-
var
|
|
137680
|
+
var init_arrayLikeToArray2 = __esmMin(() => {
|
|
136181
137681
|
});
|
|
136182
|
-
function
|
|
137682
|
+
function _unsupportedIterableToArray2(o, minLen) {
|
|
136183
137683
|
if (!o)
|
|
136184
137684
|
return;
|
|
136185
137685
|
if (typeof o === "string")
|
|
136186
|
-
return
|
|
137686
|
+
return _arrayLikeToArray2(o, minLen);
|
|
136187
137687
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
136188
137688
|
if (n === "Object" && o.constructor)
|
|
136189
137689
|
n = o.constructor.name;
|
|
136190
137690
|
if (n === "Map" || n === "Set")
|
|
136191
137691
|
return Array.from(o);
|
|
136192
137692
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
136193
|
-
return
|
|
137693
|
+
return _arrayLikeToArray2(o, minLen);
|
|
136194
137694
|
}
|
|
136195
|
-
var
|
|
136196
|
-
|
|
137695
|
+
var init_unsupportedIterableToArray2 = __esmMin(() => {
|
|
137696
|
+
init_arrayLikeToArray2();
|
|
136197
137697
|
});
|
|
136198
137698
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
136199
137699
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
136200
137700
|
if (!it) {
|
|
136201
|
-
if (Array.isArray(o) || (it =
|
|
137701
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray2(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
136202
137702
|
if (it)
|
|
136203
137703
|
o = it;
|
|
136204
137704
|
var i = 0;
|
|
@@ -136250,7 +137750,7 @@ function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
|
136250
137750
|
};
|
|
136251
137751
|
}
|
|
136252
137752
|
var init_createForOfIteratorHelper = __esmMin(() => {
|
|
136253
|
-
|
|
137753
|
+
init_unsupportedIterableToArray2();
|
|
136254
137754
|
});
|
|
136255
137755
|
function _defineProperty2(obj, key, value) {
|
|
136256
137756
|
if (key in obj) {
|
|
@@ -136267,7 +137767,7 @@ function _defineProperty2(obj, key, value) {
|
|
|
136267
137767
|
}
|
|
136268
137768
|
var init_defineProperty2 = __esmMin(() => {
|
|
136269
137769
|
});
|
|
136270
|
-
function
|
|
137770
|
+
function ownKeys2(object, enumerableOnly) {
|
|
136271
137771
|
var keys = Object.keys(object);
|
|
136272
137772
|
if (Object.getOwnPropertySymbols) {
|
|
136273
137773
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -136277,18 +137777,18 @@ function ownKeys(object, enumerableOnly) {
|
|
|
136277
137777
|
}
|
|
136278
137778
|
return keys;
|
|
136279
137779
|
}
|
|
136280
|
-
function
|
|
137780
|
+
function _objectSpread22(target) {
|
|
136281
137781
|
for (var i = 1; i < arguments.length; i++) {
|
|
136282
137782
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
136283
|
-
i % 2 ?
|
|
137783
|
+
i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
|
|
136284
137784
|
_defineProperty2(target, key, source[key]);
|
|
136285
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) :
|
|
137785
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
|
|
136286
137786
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
136287
137787
|
});
|
|
136288
137788
|
}
|
|
136289
137789
|
return target;
|
|
136290
137790
|
}
|
|
136291
|
-
var
|
|
137791
|
+
var init_objectSpread22 = __esmMin(() => {
|
|
136292
137792
|
init_defineProperty2();
|
|
136293
137793
|
});
|
|
136294
137794
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -136419,32 +137919,32 @@ var init_constant = __esmMin(() => {
|
|
|
136419
137919
|
SCHEMA_SHOULD_NOT_BE_EMPTY: "schema should not be empty"
|
|
136420
137920
|
};
|
|
136421
137921
|
});
|
|
136422
|
-
function
|
|
137922
|
+
function _arrayWithoutHoles2(arr) {
|
|
136423
137923
|
if (Array.isArray(arr))
|
|
136424
|
-
return
|
|
137924
|
+
return _arrayLikeToArray2(arr);
|
|
136425
137925
|
}
|
|
136426
|
-
var
|
|
136427
|
-
|
|
137926
|
+
var init_arrayWithoutHoles2 = __esmMin(() => {
|
|
137927
|
+
init_arrayLikeToArray2();
|
|
136428
137928
|
});
|
|
136429
|
-
function
|
|
137929
|
+
function _iterableToArray2(iter) {
|
|
136430
137930
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
136431
137931
|
return Array.from(iter);
|
|
136432
137932
|
}
|
|
136433
|
-
var
|
|
137933
|
+
var init_iterableToArray2 = __esmMin(() => {
|
|
136434
137934
|
});
|
|
136435
|
-
function
|
|
137935
|
+
function _nonIterableSpread2() {
|
|
136436
137936
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
136437
137937
|
}
|
|
136438
|
-
var
|
|
137938
|
+
var init_nonIterableSpread2 = __esmMin(() => {
|
|
136439
137939
|
});
|
|
136440
|
-
function
|
|
136441
|
-
return
|
|
137940
|
+
function _toConsumableArray2(arr) {
|
|
137941
|
+
return _arrayWithoutHoles2(arr) || _iterableToArray2(arr) || _unsupportedIterableToArray2(arr) || _nonIterableSpread2();
|
|
136442
137942
|
}
|
|
136443
|
-
var
|
|
136444
|
-
|
|
136445
|
-
|
|
136446
|
-
|
|
136447
|
-
|
|
137943
|
+
var init_toConsumableArray2 = __esmMin(() => {
|
|
137944
|
+
init_arrayWithoutHoles2();
|
|
137945
|
+
init_iterableToArray2();
|
|
137946
|
+
init_unsupportedIterableToArray2();
|
|
137947
|
+
init_nonIterableSpread2();
|
|
136448
137948
|
});
|
|
136449
137949
|
var require_mergeWith3 = __commonJSMin((exports, module2) => {
|
|
136450
137950
|
var baseMerge = require_baseMerge();
|
|
@@ -136456,13 +137956,13 @@ var require_mergeWith3 = __commonJSMin((exports, module2) => {
|
|
|
136456
137956
|
});
|
|
136457
137957
|
var import_mergeWith, import_isArray, mergeObjWithCombineArray, toBoolean, booleanToString;
|
|
136458
137958
|
var init_tools = __esmMin(() => {
|
|
136459
|
-
|
|
137959
|
+
init_toConsumableArray2();
|
|
136460
137960
|
import_mergeWith = __toESM2(require_mergeWith3());
|
|
136461
137961
|
import_isArray = __toESM2(require_isArray());
|
|
136462
137962
|
mergeObjWithCombineArray = function mergeObjWithCombineArray2(src, obj) {
|
|
136463
137963
|
var customizer = function customizer2(objValue, srcValue) {
|
|
136464
137964
|
if ((0, import_isArray.default)(objValue)) {
|
|
136465
|
-
return [].concat(
|
|
137965
|
+
return [].concat(_toConsumableArray2(srcValue), _toConsumableArray2(objValue));
|
|
136466
137966
|
}
|
|
136467
137967
|
return void 0;
|
|
136468
137968
|
};
|
|
@@ -136524,7 +138024,7 @@ var init_stateField = __esmMin(() => {
|
|
|
136524
138024
|
if (typeof value.action === "function") {
|
|
136525
138025
|
schema.state.value = {
|
|
136526
138026
|
effectedByFields: value.effectedByFields,
|
|
136527
|
-
action: function
|
|
138027
|
+
action: function action2(data, lastValue) {
|
|
136528
138028
|
return value.action(data, lastValue || initValue);
|
|
136529
138029
|
}
|
|
136530
138030
|
};
|
|
@@ -136731,7 +138231,7 @@ var init_keyField = __esmMin(() => {
|
|
|
136731
138231
|
});
|
|
136732
138232
|
var fieldValue, getSchemaLabel, getSchemaDisabled, getSchemaType, getSchemaDefaultState, getNodeInfo;
|
|
136733
138233
|
var init_nodeInfo = __esmMin(() => {
|
|
136734
|
-
|
|
138234
|
+
init_objectSpread22();
|
|
136735
138235
|
fieldValue = function fieldValue2(key, schema, data, extra) {
|
|
136736
138236
|
if (schema[key] && typeof schema[key] === "function") {
|
|
136737
138237
|
return schema[key](data, extra);
|
|
@@ -136768,7 +138268,7 @@ var init_nodeInfo = __esmMin(() => {
|
|
|
136768
138268
|
return schema.state;
|
|
136769
138269
|
};
|
|
136770
138270
|
getNodeInfo = function getNodeInfo2(schema, data, extra) {
|
|
136771
|
-
return
|
|
138271
|
+
return _objectSpread22(_objectSpread22({
|
|
136772
138272
|
label: getSchemaLabel(schema, data, extra),
|
|
136773
138273
|
state: schema.state,
|
|
136774
138274
|
formState: data,
|
|
@@ -136842,8 +138342,8 @@ var init_checkSchema = __esmMin(() => {
|
|
|
136842
138342
|
};
|
|
136843
138343
|
checkRepeatItems = function checkRepeatItems2(schema, extra) {
|
|
136844
138344
|
if (schema.items && schema.items.length > 0) {
|
|
136845
|
-
var
|
|
136846
|
-
var keys =
|
|
138345
|
+
var items5 = getItems(schema, {}, extra);
|
|
138346
|
+
var keys = items5.map(function(x) {
|
|
136847
138347
|
return x.key;
|
|
136848
138348
|
});
|
|
136849
138349
|
var tmp = [];
|
|
@@ -136887,7 +138387,7 @@ var init_checkSchema = __esmMin(() => {
|
|
|
136887
138387
|
var _excluded, BaseReader;
|
|
136888
138388
|
var init_baseReader = __esmMin(() => {
|
|
136889
138389
|
init_createForOfIteratorHelper();
|
|
136890
|
-
|
|
138390
|
+
init_objectSpread22();
|
|
136891
138391
|
init_objectWithoutProperties();
|
|
136892
138392
|
init_typeof();
|
|
136893
138393
|
init_classCallCheck2();
|
|
@@ -137025,9 +138525,9 @@ var init_baseReader = __esmMin(() => {
|
|
|
137025
138525
|
initValues[_schema.key] = _this.getSchemaDefaultValue(_schema, brothers, isRoot);
|
|
137026
138526
|
}
|
|
137027
138527
|
if (_schema.items) {
|
|
137028
|
-
var
|
|
137029
|
-
|
|
137030
|
-
return readDefaultValue2(each,
|
|
138528
|
+
var items5 = getItems(_schema, _this.data, _this.extra);
|
|
138529
|
+
items5.forEach(function(each) {
|
|
138530
|
+
return readDefaultValue2(each, items5.map(function(x) {
|
|
137031
138531
|
return x.key;
|
|
137032
138532
|
}), false);
|
|
137033
138533
|
});
|
|
@@ -137045,7 +138545,7 @@ var init_baseReader = __esmMin(() => {
|
|
|
137045
138545
|
if (!isEffectedValue(val)) {
|
|
137046
138546
|
return val;
|
|
137047
138547
|
}
|
|
137048
|
-
var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields,
|
|
138548
|
+
var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields, action2 = _ref.action, rest = _objectWithoutProperties(_ref, _excluded);
|
|
137049
138549
|
if (isRoot) {
|
|
137050
138550
|
throw Error("[".concat(schema.key, "] top level should not have effects"));
|
|
137051
138551
|
}
|
|
@@ -137055,9 +138555,9 @@ var init_baseReader = __esmMin(() => {
|
|
|
137055
138555
|
if (curNodeEffectedByFields.length === 0) {
|
|
137056
138556
|
return rest;
|
|
137057
138557
|
}
|
|
137058
|
-
return
|
|
138558
|
+
return _objectSpread22({
|
|
137059
138559
|
effectedByFields: curNodeEffectedByFields,
|
|
137060
|
-
action
|
|
138560
|
+
action: action2
|
|
137061
138561
|
}, rest);
|
|
137062
138562
|
};
|
|
137063
138563
|
return handleEffects(state.value);
|
|
@@ -137466,7 +138966,7 @@ var init_graph = __esmMin(() => {
|
|
|
137466
138966
|
var CycleEffectError, EffectUtil;
|
|
137467
138967
|
var init_effectUtil = __esmMin(() => {
|
|
137468
138968
|
init_createForOfIteratorHelper();
|
|
137469
|
-
|
|
138969
|
+
init_objectSpread22();
|
|
137470
138970
|
init_defineProperty2();
|
|
137471
138971
|
init_createClass2();
|
|
137472
138972
|
init_classCallCheck2();
|
|
@@ -137500,12 +139000,12 @@ var init_effectUtil = __esmMin(() => {
|
|
|
137500
139000
|
roots.forEach(function(root) {
|
|
137501
139001
|
result[root.data.key] = root.data.value;
|
|
137502
139002
|
});
|
|
137503
|
-
return
|
|
139003
|
+
return _objectSpread22(_objectSpread22({}, result), _this2.doGetEffectedValue(result, roots));
|
|
137504
139004
|
});
|
|
137505
139005
|
_defineProperty2(this, "getEffectedValue", function(value, formData) {
|
|
137506
139006
|
var keys = Object.keys(value);
|
|
137507
139007
|
var rootNodes = _this2.graph.getNodesByKeys(keys);
|
|
137508
|
-
return _this2.doGetEffectedValue(
|
|
139008
|
+
return _this2.doGetEffectedValue(_objectSpread22(_objectSpread22({}, formData), value), rootNodes);
|
|
137509
139009
|
});
|
|
137510
139010
|
_defineProperty2(this, "doGetEffectedValue", function(formData, rootNodes) {
|
|
137511
139011
|
var result = {};
|
|
@@ -137621,8 +139121,8 @@ var init_effectUtil = __esmMin(() => {
|
|
|
137621
139121
|
return EffectUtil2;
|
|
137622
139122
|
}();
|
|
137623
139123
|
});
|
|
137624
|
-
var
|
|
137625
|
-
__export2(
|
|
139124
|
+
var treeshaking_exports3 = {};
|
|
139125
|
+
__export2(treeshaking_exports3, {
|
|
137626
139126
|
BaseReader: () => BaseReader,
|
|
137627
139127
|
EffectUtil: () => EffectUtil,
|
|
137628
139128
|
MESSAGE: () => MESSAGE,
|
|
@@ -137651,7 +139151,7 @@ __export2(treeshaking_exports2, {
|
|
|
137651
139151
|
setSchemaInitValue: () => setSchemaInitValue,
|
|
137652
139152
|
toBoolean: () => toBoolean
|
|
137653
139153
|
});
|
|
137654
|
-
var
|
|
139154
|
+
var init_treeshaking3 = __esmMin(() => {
|
|
137655
139155
|
init_baseReader();
|
|
137656
139156
|
init_types();
|
|
137657
139157
|
init_constant();
|
|
@@ -137683,7 +139183,7 @@ var require_baseCliReader = __commonJSMin((exports) => {
|
|
|
137683
139183
|
value: true
|
|
137684
139184
|
});
|
|
137685
139185
|
exports.BaseCliReader = void 0;
|
|
137686
|
-
var _easyFormCore = (
|
|
139186
|
+
var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
|
|
137687
139187
|
var _constant = require_constant2();
|
|
137688
139188
|
function ownKeys3(object, enumerableOnly) {
|
|
137689
139189
|
var keys = Object.keys(object);
|
|
@@ -137861,7 +139361,7 @@ var require_utils9 = __commonJSMin((exports) => {
|
|
|
137861
139361
|
value: true
|
|
137862
139362
|
});
|
|
137863
139363
|
exports.toPromiseQuestionHandlerLoop = exports.toPromiseQuestionHandler = exports.getWhen = exports.getValidate = exports.getTransformer = exports.getQuestion = exports.getMessage = exports.getFilter = exports.getDefaultValue = exports.getChoices = void 0;
|
|
137864
|
-
var _easyFormCore = (
|
|
139364
|
+
var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
|
|
137865
139365
|
function ownKeys3(object, enumerableOnly) {
|
|
137866
139366
|
var keys = Object.keys(object);
|
|
137867
139367
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -138041,7 +139541,7 @@ var require_utils9 = __commonJSMin((exports) => {
|
|
|
138041
139541
|
}, choices);
|
|
138042
139542
|
};
|
|
138043
139543
|
exports.getQuestion = getQuestion;
|
|
138044
|
-
var
|
|
139544
|
+
var when8 = (schema, answers, extra) => {
|
|
138045
139545
|
if (schema.when && typeof schema.when === "function") {
|
|
138046
139546
|
return schema.when(answers, extra);
|
|
138047
139547
|
}
|
|
@@ -138067,7 +139567,7 @@ var require_utils9 = __commonJSMin((exports) => {
|
|
|
138067
139567
|
});
|
|
138068
139568
|
return (answers) => {
|
|
138069
139569
|
try {
|
|
138070
|
-
if (!
|
|
139570
|
+
if (!when8(schema, answers, nodeInfo.extra)) {
|
|
138071
139571
|
return Promise.resolve(true);
|
|
138072
139572
|
}
|
|
138073
139573
|
const question = getQuestion({
|
|
@@ -138687,7 +140187,7 @@ var require_node6 = __commonJSMin((exports) => {
|
|
|
138687
140187
|
}
|
|
138688
140188
|
});
|
|
138689
140189
|
});
|
|
138690
|
-
var _easyFormCore = (
|
|
140190
|
+
var _easyFormCore = (init_treeshaking3(), __toCommonJS2(treeshaking_exports3));
|
|
138691
140191
|
Object.keys(_easyFormCore).forEach(function(key) {
|
|
138692
140192
|
if (key === "default" || key === "__esModule")
|
|
138693
140193
|
return;
|
|
@@ -138725,18 +140225,18 @@ var require_transformSchema = __commonJSMin((exports) => {
|
|
|
138725
140225
|
schemaItem.label = schemaItem.state.cliLabel;
|
|
138726
140226
|
}
|
|
138727
140227
|
const {
|
|
138728
|
-
when:
|
|
138729
|
-
validate
|
|
140228
|
+
when: when8,
|
|
140229
|
+
validate: validate4
|
|
138730
140230
|
} = schemaItem;
|
|
138731
140231
|
schemaItem.when = (values, extra) => {
|
|
138732
140232
|
if (!(0, _isUndefined2.default)(configValue[schemaItem.key])) {
|
|
138733
140233
|
return false;
|
|
138734
140234
|
}
|
|
138735
|
-
return
|
|
140235
|
+
return when8 ? when8(values, extra) : true;
|
|
138736
140236
|
};
|
|
138737
140237
|
schemaItem.validate = async (value, data, extra) => {
|
|
138738
|
-
if (
|
|
138739
|
-
const result = await
|
|
140238
|
+
if (validate4) {
|
|
140239
|
+
const result = await validate4(value, data, extra);
|
|
138740
140240
|
if (!result.success) {
|
|
138741
140241
|
return result;
|
|
138742
140242
|
}
|
|
@@ -139614,12 +141114,12 @@ var import_lodash3;
|
|
|
139614
141114
|
var init_utils3 = __esmMin(() => {
|
|
139615
141115
|
import_lodash3 = __toESM2(require_lodash3());
|
|
139616
141116
|
});
|
|
139617
|
-
var
|
|
139618
|
-
__export2(
|
|
141117
|
+
var treeshaking_exports4 = {};
|
|
141118
|
+
__export2(treeshaking_exports4, {
|
|
139619
141119
|
I18n: () => I18n2
|
|
139620
141120
|
});
|
|
139621
141121
|
var import_lodash4, I18n2;
|
|
139622
|
-
var
|
|
141122
|
+
var init_treeshaking4 = __esmMin(() => {
|
|
139623
141123
|
init_classCallCheck();
|
|
139624
141124
|
init_createClass();
|
|
139625
141125
|
init_defineProperty();
|
|
@@ -139778,7 +141278,7 @@ var require_locale2 = __commonJSMin((exports) => {
|
|
|
139778
141278
|
}
|
|
139779
141279
|
});
|
|
139780
141280
|
exports.localeKeys = exports.i18n = void 0;
|
|
139781
|
-
var _pluginI18n = (
|
|
141281
|
+
var _pluginI18n = (init_treeshaking4(), __toCommonJS2(treeshaking_exports4));
|
|
139782
141282
|
var _zh = require_zh2();
|
|
139783
141283
|
var _en = require_en2();
|
|
139784
141284
|
var i18n2 = new _pluginI18n.I18n();
|
|
@@ -140992,444 +142492,7 @@ var require_node9 = __commonJSMin((exports) => {
|
|
|
140992
142492
|
var import_generator_utils = __toESM2(require_node());
|
|
140993
142493
|
var import_codesmith_api_app = __toESM2(require_node8());
|
|
140994
142494
|
var import_codesmith_api_json = __toESM2(require_node9());
|
|
140995
|
-
|
|
140996
|
-
init_treeshaking();
|
|
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 I18n();
|
|
141214
|
-
var localeKeys = i18n.init("zh", {
|
|
141215
|
-
zh: ZH_LOCALE,
|
|
141216
|
-
en: EN_LOCALE
|
|
141217
|
-
});
|
|
141218
|
-
var _BooleanConfigName;
|
|
141219
|
-
var BooleanConfig;
|
|
141220
|
-
(function(BooleanConfig2) {
|
|
141221
|
-
BooleanConfig2["NO"] = "no";
|
|
141222
|
-
BooleanConfig2["YES"] = "yes";
|
|
141223
|
-
})(BooleanConfig || (BooleanConfig = {}));
|
|
141224
|
-
var BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
|
|
141225
|
-
return i18n.t(localeKeys["boolean"].no);
|
|
141226
|
-
}), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
|
|
141227
|
-
return i18n.t(localeKeys["boolean"].yes);
|
|
141228
|
-
}), _BooleanConfigName);
|
|
141229
|
-
var BooleanSchemas = [{
|
|
141230
|
-
key: BooleanConfig.NO,
|
|
141231
|
-
label: BooleanConfigName[BooleanConfig.NO]
|
|
141232
|
-
}, {
|
|
141233
|
-
key: BooleanConfig.YES,
|
|
141234
|
-
label: BooleanConfigName[BooleanConfig.YES]
|
|
141235
|
-
}];
|
|
141236
|
-
init_defineProperty();
|
|
141237
|
-
var _LanguageName;
|
|
141238
|
-
var Language;
|
|
141239
|
-
(function(Language2) {
|
|
141240
|
-
Language2["TS"] = "ts";
|
|
141241
|
-
Language2["JS"] = "js";
|
|
141242
|
-
})(Language || (Language = {}));
|
|
141243
|
-
var LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
|
|
141244
|
-
return "TS";
|
|
141245
|
-
}), _defineProperty(_LanguageName, Language.JS, function() {
|
|
141246
|
-
return "ES6+";
|
|
141247
|
-
}), _LanguageName);
|
|
141248
|
-
var LanguageSchema = {
|
|
141249
|
-
key: "language",
|
|
141250
|
-
type: ["string"],
|
|
141251
|
-
label: function label() {
|
|
141252
|
-
return i18n.t(localeKeys.language.self);
|
|
141253
|
-
},
|
|
141254
|
-
mutualExclusion: true,
|
|
141255
|
-
items: Object.values(Language).map(function(language) {
|
|
141256
|
-
return {
|
|
141257
|
-
key: language,
|
|
141258
|
-
label: LanguageName[language]
|
|
141259
|
-
};
|
|
141260
|
-
})
|
|
141261
|
-
};
|
|
141262
|
-
init_defineProperty();
|
|
141263
|
-
function ownKeys2(object, enumerableOnly) {
|
|
141264
|
-
var keys = Object.keys(object);
|
|
141265
|
-
if (Object.getOwnPropertySymbols) {
|
|
141266
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
141267
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
141268
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
141269
|
-
})), keys.push.apply(keys, symbols);
|
|
141270
|
-
}
|
|
141271
|
-
return keys;
|
|
141272
|
-
}
|
|
141273
|
-
function _objectSpread22(target) {
|
|
141274
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
141275
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
141276
|
-
i % 2 ? ownKeys2(Object(source), true).forEach(function(key) {
|
|
141277
|
-
_defineProperty(target, key, source[key]);
|
|
141278
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys2(Object(source)).forEach(function(key) {
|
|
141279
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
141280
|
-
});
|
|
141281
|
-
}
|
|
141282
|
-
return target;
|
|
141283
|
-
}
|
|
141284
|
-
var EnableLessSchema = {
|
|
141285
|
-
key: "enableLess",
|
|
141286
|
-
type: ["string"],
|
|
141287
|
-
label: function label2() {
|
|
141288
|
-
return i18n.t(localeKeys.needModifyConfig.enableLess);
|
|
141289
|
-
},
|
|
141290
|
-
mutualExclusion: true,
|
|
141291
|
-
state: {
|
|
141292
|
-
value: BooleanConfig.NO
|
|
141293
|
-
},
|
|
141294
|
-
items: BooleanSchemas
|
|
141295
|
-
};
|
|
141296
|
-
var EnableSassSchema = {
|
|
141297
|
-
key: "enableSass",
|
|
141298
|
-
type: ["string"],
|
|
141299
|
-
label: function label3() {
|
|
141300
|
-
return i18n.t(localeKeys.needModifyConfig.enableSass);
|
|
141301
|
-
},
|
|
141302
|
-
mutualExclusion: true,
|
|
141303
|
-
state: {
|
|
141304
|
-
value: BooleanConfig.NO
|
|
141305
|
-
},
|
|
141306
|
-
items: BooleanSchemas
|
|
141307
|
-
};
|
|
141308
|
-
init_defineProperty();
|
|
141309
|
-
var _FrameworkAppendTypeC;
|
|
141310
|
-
var mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
|
|
141311
|
-
return values.needModifyMWAConfig === BooleanConfig.YES;
|
|
141312
|
-
};
|
|
141313
|
-
var RunWay;
|
|
141314
|
-
(function(RunWay2) {
|
|
141315
|
-
RunWay2["No"] = "no";
|
|
141316
|
-
RunWay2["Electron"] = "electron";
|
|
141317
|
-
})(RunWay || (RunWay = {}));
|
|
141318
|
-
var RunWaySchema = {
|
|
141319
|
-
key: "runWay",
|
|
141320
|
-
type: ["string"],
|
|
141321
|
-
label: function label4() {
|
|
141322
|
-
return i18n.t(localeKeys.runWay.self);
|
|
141323
|
-
},
|
|
141324
|
-
mutualExclusion: true,
|
|
141325
|
-
when: function when(_, extra) {
|
|
141326
|
-
return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
|
|
141327
|
-
},
|
|
141328
|
-
state: {
|
|
141329
|
-
value: RunWay.No
|
|
141330
|
-
},
|
|
141331
|
-
items: Object.values(RunWay).map(function(runWay) {
|
|
141332
|
-
return {
|
|
141333
|
-
key: runWay,
|
|
141334
|
-
label: function label10() {
|
|
141335
|
-
return i18n.t(localeKeys.runWay[runWay]);
|
|
141336
|
-
}
|
|
141337
|
-
};
|
|
141338
|
-
})
|
|
141339
|
-
};
|
|
141340
|
-
var ClientRoute;
|
|
141341
|
-
(function(ClientRoute2) {
|
|
141342
|
-
ClientRoute2["SelfControlRoute"] = "selfControlRoute";
|
|
141343
|
-
ClientRoute2["ConventionalRoute"] = "conventionalRoute";
|
|
141344
|
-
ClientRoute2["No"] = "no";
|
|
141345
|
-
})(ClientRoute || (ClientRoute = {}));
|
|
141346
|
-
var ClientRouteSchema = {
|
|
141347
|
-
key: "clientRoute",
|
|
141348
|
-
type: ["string"],
|
|
141349
|
-
label: function label5() {
|
|
141350
|
-
return i18n.t(localeKeys.entry.clientRoute.self);
|
|
141351
|
-
},
|
|
141352
|
-
mutualExclusion: true,
|
|
141353
|
-
when: mwaConfigWhenFunc,
|
|
141354
|
-
state: {
|
|
141355
|
-
value: ClientRoute.SelfControlRoute
|
|
141356
|
-
},
|
|
141357
|
-
items: Object.values(ClientRoute).map(function(clientRoute) {
|
|
141358
|
-
return {
|
|
141359
|
-
key: clientRoute,
|
|
141360
|
-
label: function label10() {
|
|
141361
|
-
return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
|
|
141362
|
-
}
|
|
141363
|
-
};
|
|
141364
|
-
})
|
|
141365
|
-
};
|
|
141366
|
-
var DisableStateManagementSchema = {
|
|
141367
|
-
key: "disableStateManagement",
|
|
141368
|
-
type: ["string"],
|
|
141369
|
-
label: function label6() {
|
|
141370
|
-
return i18n.t(localeKeys.entry.disableStateManagement);
|
|
141371
|
-
},
|
|
141372
|
-
mutualExclusion: true,
|
|
141373
|
-
when: mwaConfigWhenFunc,
|
|
141374
|
-
state: {
|
|
141375
|
-
value: BooleanConfig.NO
|
|
141376
|
-
},
|
|
141377
|
-
items: BooleanSchemas
|
|
141378
|
-
};
|
|
141379
|
-
var EnableMWALessSchema = _objectSpread22(_objectSpread22({}, EnableLessSchema), {}, {
|
|
141380
|
-
when: mwaConfigWhenFunc
|
|
141381
|
-
});
|
|
141382
|
-
var EnableMWASassSchema = _objectSpread22(_objectSpread22({}, EnableSassSchema), {}, {
|
|
141383
|
-
when: mwaConfigWhenFunc
|
|
141384
|
-
});
|
|
141385
|
-
var NeedModifyMWAConfigSchema = {
|
|
141386
|
-
key: "needModifyMWAConfig",
|
|
141387
|
-
label: function label7() {
|
|
141388
|
-
return i18n.t(localeKeys.needModifyConfig.self);
|
|
141389
|
-
},
|
|
141390
|
-
type: ["string"],
|
|
141391
|
-
mutualExclusion: true,
|
|
141392
|
-
state: {
|
|
141393
|
-
value: BooleanConfig.NO
|
|
141394
|
-
},
|
|
141395
|
-
items: BooleanSchemas
|
|
141396
|
-
};
|
|
141397
|
-
var Framework;
|
|
141398
|
-
(function(Framework2) {
|
|
141399
|
-
Framework2["Express"] = "express";
|
|
141400
|
-
Framework2["Koa"] = "koa";
|
|
141401
|
-
Framework2["Egg"] = "egg";
|
|
141402
|
-
Framework2["Nest"] = "nest";
|
|
141403
|
-
})(Framework || (Framework = {}));
|
|
141404
|
-
var FrameworkSchema = {
|
|
141405
|
-
key: "framework",
|
|
141406
|
-
type: ["string"],
|
|
141407
|
-
label: function label8() {
|
|
141408
|
-
return i18n.t(localeKeys.framework.self);
|
|
141409
|
-
},
|
|
141410
|
-
mutualExclusion: true,
|
|
141411
|
-
items: Object.values(Framework).map(function(framework) {
|
|
141412
|
-
return {
|
|
141413
|
-
key: framework,
|
|
141414
|
-
label: function label10() {
|
|
141415
|
-
return i18n.t(localeKeys.framework[framework]);
|
|
141416
|
-
}
|
|
141417
|
-
};
|
|
141418
|
-
})
|
|
141419
|
-
};
|
|
141420
|
-
var FrameworkAppendTypeContent = (_FrameworkAppendTypeC = {}, _defineProperty(_FrameworkAppendTypeC, Framework.Express, "/// <reference types='@modern-js/plugin-express/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Koa, "/// <reference types='@modern-js/plugin-koa/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Egg, "/// <reference types='@modern-js/plugin-egg/types' />"), _defineProperty(_FrameworkAppendTypeC, Framework.Nest, "/// <reference types='@modern-js/plugin-nest/types' />"), _FrameworkAppendTypeC);
|
|
141421
|
-
var ServerSchemas = [FrameworkSchema];
|
|
141422
|
-
var ServerSchema = {
|
|
141423
|
-
key: "server",
|
|
141424
|
-
label: function label9() {
|
|
141425
|
-
return i18n.t(localeKeys.action.element.server);
|
|
141426
|
-
},
|
|
141427
|
-
isObject: true,
|
|
141428
|
-
items: ServerSchemas
|
|
141429
|
-
};
|
|
141430
|
-
var MWADefaultServerConfig = {
|
|
141431
|
-
framework: Framework.Express
|
|
141432
|
-
};
|
|
142495
|
+
init_treeshaking2();
|
|
141433
142496
|
function isEmptyServerDir(serverDir) {
|
|
141434
142497
|
const files = import_generator_utils.fs.readdirSync(serverDir);
|
|
141435
142498
|
if (files.length === 0) {
|
|
@@ -141480,12 +142543,17 @@ var handleTemplateFile = async (context, generator, appApi) => {
|
|
|
141480
142543
|
[`dependencies.${framework}`]: `^${await (0, import_generator_utils.getPackageVersion)(framework)}`
|
|
141481
142544
|
};
|
|
141482
142545
|
}
|
|
142546
|
+
const getServerPluginVersion = (packageName) => {
|
|
142547
|
+
return (0, import_generator_utils.getModernPluginVersion)(Solution.MWA, packageName, {
|
|
142548
|
+
registry: context.config.registry
|
|
142549
|
+
});
|
|
142550
|
+
};
|
|
141483
142551
|
await jsonAPI.update(context.materials.default.get(import_path.default.join(appDir, "package.json")), {
|
|
141484
142552
|
query: {},
|
|
141485
142553
|
update: {
|
|
141486
142554
|
$set: {
|
|
141487
|
-
"dependencies.@modern-js/plugin-server":
|
|
141488
|
-
[`dependencies.@modern-js/plugin-${framework}`]:
|
|
142555
|
+
"dependencies.@modern-js/plugin-server": `${await getServerPluginVersion("@modern-js/plugin-server")}`,
|
|
142556
|
+
[`dependencies.@modern-js/plugin-${framework}`]: `${await getServerPluginVersion(`@modern-js/plugin-${framework}`)}`,
|
|
141489
142557
|
...updateInfo
|
|
141490
142558
|
}
|
|
141491
142559
|
}
|