@modern-js/monorepo-generator 2.2.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1699 -690
- package/package.json +12 -12
- package/templates/base-template/package.json.handlebars +4 -3
package/dist/index.js
CHANGED
@@ -19498,8 +19498,8 @@ var require_lodash = __commonJSMin((exports, module2) => {
|
|
19498
19498
|
if (result2 instanceof LazyWrapper) {
|
19499
19499
|
result2 = result2.value();
|
19500
19500
|
}
|
19501
|
-
return arrayReduce(actions, function(result3,
|
19502
|
-
return
|
19501
|
+
return arrayReduce(actions, function(result3, action2) {
|
19502
|
+
return action2.func.apply(action2.thisArg, arrayPush([result3], action2.args));
|
19503
19503
|
}, result2);
|
19504
19504
|
}
|
19505
19505
|
function baseXor(arrays, iteratee2, comparator) {
|
@@ -34503,20 +34503,28 @@ var require_compiled = __commonJSMin((exports) => {
|
|
34503
34503
|
var require_format = __commonJSMin((exports) => {
|
34504
34504
|
"use strict";
|
34505
34505
|
Object.defineProperty(exports, "__esModule", { value: true });
|
34506
|
-
exports.
|
34507
|
-
var friendlySyntaxErrorLabel = "
|
34506
|
+
exports.formatWebpackMessages = void 0;
|
34507
|
+
var friendlySyntaxErrorLabel = "SyntaxError:";
|
34508
34508
|
function isLikelyASyntaxError(message) {
|
34509
34509
|
return message.includes(friendlySyntaxErrorLabel);
|
34510
34510
|
}
|
34511
|
-
function formatMessage(
|
34512
|
-
var _a;
|
34511
|
+
function formatMessage(stats) {
|
34513
34512
|
let lines = [];
|
34514
|
-
|
34515
|
-
|
34516
|
-
|
34513
|
+
let message;
|
34514
|
+
if (typeof stats === "object") {
|
34515
|
+
const fileName = stats.moduleName ? `File: ${stats.moduleName}
|
34516
|
+
` : "";
|
34517
|
+
const mainMessage = stats.message;
|
34518
|
+
const details = stats.details ? `
|
34519
|
+
Details: ${stats.details}
|
34520
|
+
` : "";
|
34521
|
+
const stack = stats.stack ? `
|
34522
|
+
${stats.stack}` : "";
|
34523
|
+
message = `${fileName}${mainMessage}${details}${stack}`;
|
34524
|
+
} else {
|
34525
|
+
message = stats;
|
34517
34526
|
}
|
34518
34527
|
lines = message.split("\n");
|
34519
|
-
lines = lines.filter((line3) => !/Module [A-z ]+\(from/.test(line3));
|
34520
34528
|
lines = lines.map((line3) => {
|
34521
34529
|
const parsingError = /Line (\d+):(?:(\d+):)?\s*Parsing error: (.+)$/.exec(line3);
|
34522
34530
|
if (!parsingError) {
|
@@ -34533,11 +34541,8 @@ var require_format = __commonJSMin((exports) => {
|
|
34533
34541
|
lines.splice(1, 1);
|
34534
34542
|
}
|
34535
34543
|
lines[0] = lines[0].replace(/^(.*) \d+:\d+-\d+$/, "$1");
|
34536
|
-
if (
|
34537
|
-
lines = [
|
34538
|
-
lines[0],
|
34539
|
-
lines[1].replace("Error: ", "").replace("Module not found: Cannot find file:", "Cannot find file:").replace("[CaseSensitivePathsPlugin] ", "").replace("Cannot resolve 'file' or 'directory' ", "")
|
34540
|
-
];
|
34544
|
+
if (lines[1] && lines[1].indexOf("Module not found:") !== -1) {
|
34545
|
+
lines[1] = lines[1].replace("Error: ", "");
|
34541
34546
|
}
|
34542
34547
|
message = lines.join("\n");
|
34543
34548
|
message = message.replace(/^\s*at\s((?!webpack:).)*:\d+:\d+[\s)]*(\n|$)/gm, "");
|
@@ -34564,29 +34569,6 @@ var require_format = __commonJSMin((exports) => {
|
|
34564
34569
|
return result;
|
34565
34570
|
}
|
34566
34571
|
exports.formatWebpackMessages = formatWebpackMessages;
|
34567
|
-
function formatProxyOptions(proxyOptions) {
|
34568
|
-
const formattedProxy = [];
|
34569
|
-
if (!Array.isArray(proxyOptions)) {
|
34570
|
-
if ("target" in proxyOptions) {
|
34571
|
-
formattedProxy.push(proxyOptions);
|
34572
|
-
} else {
|
34573
|
-
Array.prototype.push.apply(formattedProxy, Object.keys(proxyOptions).reduce((total, source) => {
|
34574
|
-
const option = proxyOptions[source];
|
34575
|
-
total.push({
|
34576
|
-
context: source,
|
34577
|
-
changeOrigin: true,
|
34578
|
-
logLevel: "warn",
|
34579
|
-
...typeof option === "string" ? { target: option } : option
|
34580
|
-
});
|
34581
|
-
return total;
|
34582
|
-
}, []));
|
34583
|
-
}
|
34584
|
-
} else {
|
34585
|
-
formattedProxy.push(...proxyOptions);
|
34586
|
-
}
|
34587
|
-
return formattedProxy;
|
34588
|
-
}
|
34589
|
-
exports.formatProxyOptions = formatProxyOptions;
|
34590
34572
|
});
|
34591
34573
|
var require_logger = __commonJSMin((exports) => {
|
34592
34574
|
"use strict";
|
@@ -34664,17 +34646,17 @@ var require_logger = __commonJSMin((exports) => {
|
|
34664
34646
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
34665
34647
|
return;
|
34666
34648
|
}
|
34667
|
-
let
|
34649
|
+
let label21 = "";
|
34668
34650
|
let text = "";
|
34669
34651
|
const logType = this.types[type];
|
34670
34652
|
if (this.config.displayLabel && logType.label) {
|
34671
|
-
|
34653
|
+
label21 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
34672
34654
|
if (this.config.underlineLabel) {
|
34673
|
-
|
34655
|
+
label21 = underline(label21).padEnd(this.longestUnderlinedLabel.length + 1);
|
34674
34656
|
} else {
|
34675
|
-
|
34657
|
+
label21 = label21.padEnd(this.longestLabel.length + 1);
|
34676
34658
|
}
|
34677
|
-
|
34659
|
+
label21 = logType.color ? chalk_1.default[logType.color](label21) : label21;
|
34678
34660
|
}
|
34679
34661
|
if (message instanceof Error) {
|
34680
34662
|
if (message.stack) {
|
@@ -34690,15 +34672,15 @@ ${grey(rest.join("\n"))}`;
|
|
34690
34672
|
if (logType.level === "warn" || logType.level === "error") {
|
34691
34673
|
this.retainLog(type, text);
|
34692
34674
|
}
|
34693
|
-
const log =
|
34675
|
+
const log = label21.length > 0 ? `${label21} ${text}` : text;
|
34694
34676
|
console.log(log, ...args);
|
34695
34677
|
}
|
34696
34678
|
getLongestLabel() {
|
34697
34679
|
let longestLabel = "";
|
34698
34680
|
Object.keys(this.types).forEach((type) => {
|
34699
|
-
const { label:
|
34700
|
-
if (
|
34701
|
-
longestLabel =
|
34681
|
+
const { label: label21 = "" } = this.types[type];
|
34682
|
+
if (label21.length > longestLabel.length) {
|
34683
|
+
longestLabel = label21;
|
34702
34684
|
}
|
34703
34685
|
});
|
34704
34686
|
return longestLabel;
|
@@ -35086,7 +35068,6 @@ var require_constants2 = __commonJSMin((exports) => {
|
|
35086
35068
|
"@modern-js/plugin-electron": { cli: "@modern-js/plugin-electron/cli" },
|
35087
35069
|
"@modern-js/plugin-testing": { cli: "@modern-js/plugin-testing/cli" },
|
35088
35070
|
"@modern-js/plugin-storybook": { cli: "@modern-js/plugin-storybook/cli" },
|
35089
|
-
"@modern-js/plugin-docsite": { cli: "@modern-js/plugin-docsite/cli" },
|
35090
35071
|
"@modern-js/plugin-express": {
|
35091
35072
|
cli: "@modern-js/plugin-express/cli",
|
35092
35073
|
server: "@modern-js/plugin-express"
|
@@ -35104,7 +35085,6 @@ var require_constants2 = __commonJSMin((exports) => {
|
|
35104
35085
|
server: "@modern-js/plugin-nest/server"
|
35105
35086
|
},
|
35106
35087
|
"@modern-js/plugin-unbundle": { cli: "@modern-js/plugin-unbundle" },
|
35107
|
-
"@modern-js/plugin-server-build": { cli: "@modern-js/plugin-server-build" },
|
35108
35088
|
"@modern-js/plugin-server": {
|
35109
35089
|
cli: "@modern-js/plugin-server/cli",
|
35110
35090
|
server: "@modern-js/plugin-server/server"
|
@@ -35112,26 +35092,12 @@ var require_constants2 = __commonJSMin((exports) => {
|
|
35112
35092
|
"@modern-js/plugin-garfish": {
|
35113
35093
|
cli: "@modern-js/plugin-garfish/cli"
|
35114
35094
|
},
|
35115
|
-
"@modern-js/plugin-jarvis": { cli: "@modern-js/plugin-jarvis/cli" },
|
35116
35095
|
"@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
|
35117
|
-
"@modern-js/plugin-lambda-fc": { cli: "@modern-js/plugin-lambda-fc/cli" },
|
35118
|
-
"@modern-js/plugin-lambda-scf": { cli: "@modern-js/plugin-lambda-scf/cli" },
|
35119
|
-
"@modern-js/plugin-cdn-oss": { cli: "@modern-js/plugin-cdn-oss/cli" },
|
35120
|
-
"@modern-js/plugin-cdn-cos": { cli: "@modern-js/plugin-cdn-cos/cli" },
|
35121
|
-
"@modern-js/plugin-static-hosting": {
|
35122
|
-
cli: "@modern-js/plugin-static-hosting/cli"
|
35123
|
-
},
|
35124
35096
|
"@modern-js/plugin-polyfill": {
|
35125
35097
|
cli: "@modern-js/plugin-polyfill/cli",
|
35126
35098
|
server: "@modern-js/plugin-polyfill"
|
35127
35099
|
},
|
35128
|
-
"@modern-js/plugin-
|
35129
|
-
cli: "@modern-js/plugin-multiprocess/cli"
|
35130
|
-
},
|
35131
|
-
"@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" },
|
35132
|
-
"@modern-js/plugin-design-token": {
|
35133
|
-
cli: "@modern-js/plugin-design-token/cli"
|
35134
|
-
}
|
35100
|
+
"@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
|
35135
35101
|
};
|
35136
35102
|
exports.PLUGIN_SCHEMAS = {
|
35137
35103
|
"@modern-js/runtime": [
|
@@ -36119,8 +36085,8 @@ var require_analyzeProject = __commonJSMin((exports) => {
|
|
36119
36085
|
exports.isApiOnly = void 0;
|
36120
36086
|
var path2 = __importStar(__require("path"));
|
36121
36087
|
var compiled_1 = require_compiled();
|
36122
|
-
var isApiOnly = async (appDirectory) => {
|
36123
|
-
const srcDir = path2.join(appDirectory, "src");
|
36088
|
+
var isApiOnly = async (appDirectory, entryDir) => {
|
36089
|
+
const srcDir = path2.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
36124
36090
|
const existSrc = await compiled_1.fs.pathExists(srcDir);
|
36125
36091
|
const options3 = (0, compiled_1.minimist)(process.argv.slice(2));
|
36126
36092
|
return !existSrc || Boolean(options3["api-only"]);
|
@@ -36134,7 +36100,18 @@ var require_chainId = __commonJSMin((exports) => {
|
|
36134
36100
|
exports.CHAIN_ID = {
|
36135
36101
|
RULE: {
|
36136
36102
|
MJS: "mjs",
|
36137
|
-
LOADERS: "loaders"
|
36103
|
+
LOADERS: "loaders",
|
36104
|
+
FONT: "font",
|
36105
|
+
IMAGE: "image",
|
36106
|
+
MEDIA: "media",
|
36107
|
+
JS: "js",
|
36108
|
+
TS: "ts",
|
36109
|
+
CSS: "css",
|
36110
|
+
LESS: "less",
|
36111
|
+
SASS: "sass",
|
36112
|
+
SVG: "svg",
|
36113
|
+
SVG_INLINE: "svg-inline",
|
36114
|
+
SVG_URL: "svg-url"
|
36138
36115
|
},
|
36139
36116
|
ONE_OF: {
|
36140
36117
|
JS: "js",
|
@@ -36160,6 +36137,8 @@ var require_chainId = __commonJSMin((exports) => {
|
|
36160
36137
|
USE: {
|
36161
36138
|
TS: "ts",
|
36162
36139
|
CSS: "css",
|
36140
|
+
SASS: "sass",
|
36141
|
+
LESS: "less",
|
36163
36142
|
URL: "url",
|
36164
36143
|
FILE: "file",
|
36165
36144
|
SVGR: "svgr",
|
@@ -36188,6 +36167,7 @@ var require_chainId = __commonJSMin((exports) => {
|
|
36188
36167
|
INLINE_HTML: "inline-html",
|
36189
36168
|
BUNDLE_ANALYZER: "bundle-analyze",
|
36190
36169
|
BOTTOM_TEMPLATE: "bottom-template",
|
36170
|
+
HTML_CROSS_ORIGIN: "html-cross-origin",
|
36191
36171
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
36192
36172
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
36193
36173
|
NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
|
@@ -36203,6 +36183,32 @@ var require_chainId = __commonJSMin((exports) => {
|
|
36203
36183
|
}
|
36204
36184
|
};
|
36205
36185
|
});
|
36186
|
+
var require_reactVersion = __commonJSMin((exports) => {
|
36187
|
+
"use strict";
|
36188
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
36189
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
36190
|
+
};
|
36191
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
36192
|
+
exports.isReact18 = void 0;
|
36193
|
+
var path_1 = __importDefault(__require("path"));
|
36194
|
+
var compiled_1 = require_compiled();
|
36195
|
+
var isReact18 = (cwd) => {
|
36196
|
+
const pkgPath = path_1.default.join(cwd, "package.json");
|
36197
|
+
if (!compiled_1.fs.existsSync(pkgPath)) {
|
36198
|
+
return false;
|
36199
|
+
}
|
36200
|
+
const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
|
36201
|
+
const deps = {
|
36202
|
+
...pkgInfo.devDependencies,
|
36203
|
+
...pkgInfo.dependencies
|
36204
|
+
};
|
36205
|
+
if (typeof deps.react !== "string") {
|
36206
|
+
return false;
|
36207
|
+
}
|
36208
|
+
return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
|
36209
|
+
};
|
36210
|
+
exports.isReact18 = isReact18;
|
36211
|
+
});
|
36206
36212
|
var require_dist = __commonJSMin((exports) => {
|
36207
36213
|
"use strict";
|
36208
36214
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
@@ -36262,6 +36268,7 @@ var require_dist = __commonJSMin((exports) => {
|
|
36262
36268
|
__exportStar(require_tryResolve(), exports);
|
36263
36269
|
__exportStar(require_analyzeProject(), exports);
|
36264
36270
|
__exportStar(require_chainId(), exports);
|
36271
|
+
__exportStar(require_reactVersion(), exports);
|
36265
36272
|
});
|
36266
36273
|
var require_logger2 = __commonJSMin((exports) => {
|
36267
36274
|
"use strict";
|
@@ -36568,6 +36575,7 @@ var require_generator = __commonJSMin((exports) => {
|
|
36568
36575
|
this.materialsManager = materialsManager;
|
36569
36576
|
this.outputPath = outputPath;
|
36570
36577
|
this.event = new _events.EventEmitter();
|
36578
|
+
this.event.setMaxListeners(15);
|
36571
36579
|
this._context = _objectSpread({
|
36572
36580
|
materials: {},
|
36573
36581
|
config: {},
|
@@ -46960,9 +46968,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
46960
46968
|
}();
|
46961
46969
|
exports2.BlockStatement = BlockStatement;
|
46962
46970
|
var BreakStatement = function() {
|
46963
|
-
function BreakStatement2(
|
46971
|
+
function BreakStatement2(label21) {
|
46964
46972
|
this.type = syntax_1.Syntax.BreakStatement;
|
46965
|
-
this.label =
|
46973
|
+
this.label = label21;
|
46966
46974
|
}
|
46967
46975
|
return BreakStatement2;
|
46968
46976
|
}();
|
@@ -47034,9 +47042,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
47034
47042
|
}();
|
47035
47043
|
exports2.ConditionalExpression = ConditionalExpression;
|
47036
47044
|
var ContinueStatement = function() {
|
47037
|
-
function ContinueStatement2(
|
47045
|
+
function ContinueStatement2(label21) {
|
47038
47046
|
this.type = syntax_1.Syntax.ContinueStatement;
|
47039
|
-
this.label =
|
47047
|
+
this.label = label21;
|
47040
47048
|
}
|
47041
47049
|
return ContinueStatement2;
|
47042
47050
|
}();
|
@@ -47227,9 +47235,9 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
47227
47235
|
}();
|
47228
47236
|
exports2.ImportSpecifier = ImportSpecifier;
|
47229
47237
|
var LabeledStatement = function() {
|
47230
|
-
function LabeledStatement2(
|
47238
|
+
function LabeledStatement2(label21, body) {
|
47231
47239
|
this.type = syntax_1.Syntax.LabeledStatement;
|
47232
|
-
this.label =
|
47240
|
+
this.label = label21;
|
47233
47241
|
this.body = body;
|
47234
47242
|
}
|
47235
47243
|
return LabeledStatement2;
|
@@ -49376,38 +49384,38 @@ var require_esprima = __commonJSMin((exports, module2) => {
|
|
49376
49384
|
Parser2.prototype.parseContinueStatement = function() {
|
49377
49385
|
var node = this.createNode();
|
49378
49386
|
this.expectKeyword("continue");
|
49379
|
-
var
|
49387
|
+
var label21 = null;
|
49380
49388
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
49381
49389
|
var id = this.parseVariableIdentifier();
|
49382
|
-
|
49390
|
+
label21 = id;
|
49383
49391
|
var key = "$" + id.name;
|
49384
49392
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
49385
49393
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
49386
49394
|
}
|
49387
49395
|
}
|
49388
49396
|
this.consumeSemicolon();
|
49389
|
-
if (
|
49397
|
+
if (label21 === null && !this.context.inIteration) {
|
49390
49398
|
this.throwError(messages_1.Messages.IllegalContinue);
|
49391
49399
|
}
|
49392
|
-
return this.finalize(node, new Node.ContinueStatement(
|
49400
|
+
return this.finalize(node, new Node.ContinueStatement(label21));
|
49393
49401
|
};
|
49394
49402
|
Parser2.prototype.parseBreakStatement = function() {
|
49395
49403
|
var node = this.createNode();
|
49396
49404
|
this.expectKeyword("break");
|
49397
|
-
var
|
49405
|
+
var label21 = null;
|
49398
49406
|
if (this.lookahead.type === 3 && !this.hasLineTerminator) {
|
49399
49407
|
var id = this.parseVariableIdentifier();
|
49400
49408
|
var key = "$" + id.name;
|
49401
49409
|
if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
|
49402
49410
|
this.throwError(messages_1.Messages.UnknownLabel, id.name);
|
49403
49411
|
}
|
49404
|
-
|
49412
|
+
label21 = id;
|
49405
49413
|
}
|
49406
49414
|
this.consumeSemicolon();
|
49407
|
-
if (
|
49415
|
+
if (label21 === null && !this.context.inIteration && !this.context.inSwitch) {
|
49408
49416
|
this.throwError(messages_1.Messages.IllegalBreak);
|
49409
49417
|
}
|
49410
|
-
return this.finalize(node, new Node.BreakStatement(
|
49418
|
+
return this.finalize(node, new Node.BreakStatement(label21));
|
49411
49419
|
};
|
49412
49420
|
Parser2.prototype.parseReturnStatement = function() {
|
49413
49421
|
if (!this.context.inFunctionBody) {
|
@@ -52886,7 +52894,7 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
52886
52894
|
splice(...args) {
|
52887
52895
|
const { length } = this;
|
52888
52896
|
const ret = super.splice(...args);
|
52889
|
-
let [begin, deleteCount, ...
|
52897
|
+
let [begin, deleteCount, ...items5] = args;
|
52890
52898
|
if (begin < 0) {
|
52891
52899
|
begin += length;
|
52892
52900
|
}
|
@@ -52897,7 +52905,7 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
52897
52905
|
}
|
52898
52906
|
const {
|
52899
52907
|
length: item_length
|
52900
|
-
} =
|
52908
|
+
} = items5;
|
52901
52909
|
const offset = item_length - deleteCount;
|
52902
52910
|
const start = begin + deleteCount;
|
52903
52911
|
const count = length - start;
|
@@ -52924,12 +52932,12 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
52924
52932
|
move_comments(array, this, begin, before - begin, -begin);
|
52925
52933
|
return array;
|
52926
52934
|
}
|
52927
|
-
unshift(...
|
52935
|
+
unshift(...items5) {
|
52928
52936
|
const { length } = this;
|
52929
|
-
const ret = super.unshift(...
|
52937
|
+
const ret = super.unshift(...items5);
|
52930
52938
|
const {
|
52931
52939
|
length: items_length
|
52932
|
-
} =
|
52940
|
+
} = items5;
|
52933
52941
|
if (items_length > 0) {
|
52934
52942
|
move_comments(this, this, 0, length, items_length, true);
|
52935
52943
|
}
|
@@ -52952,14 +52960,14 @@ var require_array = __commonJSMin((exports, module2) => {
|
|
52952
52960
|
remove_comments(this, this.length);
|
52953
52961
|
return ret;
|
52954
52962
|
}
|
52955
|
-
concat(...
|
52963
|
+
concat(...items5) {
|
52956
52964
|
let { length } = this;
|
52957
|
-
const ret = super.concat(...
|
52958
|
-
if (!
|
52965
|
+
const ret = super.concat(...items5);
|
52966
|
+
if (!items5.length) {
|
52959
52967
|
return ret;
|
52960
52968
|
}
|
52961
52969
|
move_comments(ret, this, 0, this.length, 0);
|
52962
|
-
|
52970
|
+
items5.forEach((item) => {
|
52963
52971
|
const prev = length;
|
52964
52972
|
length += isArray(item) ? item.length : 1;
|
52965
52973
|
if (!(item instanceof CommentArray)) {
|
@@ -55254,18 +55262,18 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
55254
55262
|
}
|
55255
55263
|
return token;
|
55256
55264
|
}
|
55257
|
-
var symbol, preErrorSymbol, state,
|
55265
|
+
var symbol, preErrorSymbol, state, action2, a, r, yyval = {}, p, len, newState, expected;
|
55258
55266
|
while (true) {
|
55259
55267
|
state = stack[stack.length - 1];
|
55260
55268
|
if (this.defaultActions[state]) {
|
55261
|
-
|
55269
|
+
action2 = this.defaultActions[state];
|
55262
55270
|
} else {
|
55263
55271
|
if (symbol === null || typeof symbol == "undefined") {
|
55264
55272
|
symbol = lex();
|
55265
55273
|
}
|
55266
|
-
|
55274
|
+
action2 = table[state] && table[state][symbol];
|
55267
55275
|
}
|
55268
|
-
if (typeof
|
55276
|
+
if (typeof action2 === "undefined" || !action2.length || !action2[0]) {
|
55269
55277
|
var errStr = "";
|
55270
55278
|
if (!recovering) {
|
55271
55279
|
expected = [];
|
@@ -55281,15 +55289,15 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
55281
55289
|
this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected });
|
55282
55290
|
}
|
55283
55291
|
}
|
55284
|
-
if (
|
55292
|
+
if (action2[0] instanceof Array && action2.length > 1) {
|
55285
55293
|
throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
|
55286
55294
|
}
|
55287
|
-
switch (
|
55295
|
+
switch (action2[0]) {
|
55288
55296
|
case 1:
|
55289
55297
|
stack.push(symbol);
|
55290
55298
|
vstack.push(this.lexer.yytext);
|
55291
55299
|
lstack.push(this.lexer.yylloc);
|
55292
|
-
stack.push(
|
55300
|
+
stack.push(action2[1]);
|
55293
55301
|
symbol = null;
|
55294
55302
|
if (!preErrorSymbol) {
|
55295
55303
|
yyleng = this.lexer.yyleng;
|
@@ -55304,13 +55312,13 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
55304
55312
|
}
|
55305
55313
|
break;
|
55306
55314
|
case 2:
|
55307
|
-
len = this.productions_[
|
55315
|
+
len = this.productions_[action2[1]][1];
|
55308
55316
|
yyval.$ = vstack[vstack.length - len];
|
55309
55317
|
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 };
|
55310
55318
|
if (ranges) {
|
55311
55319
|
yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]];
|
55312
55320
|
}
|
55313
|
-
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy,
|
55321
|
+
r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action2[1], vstack, lstack);
|
55314
55322
|
if (typeof r !== "undefined") {
|
55315
55323
|
return r;
|
55316
55324
|
}
|
@@ -55319,7 +55327,7 @@ var require_parser = __commonJSMin((exports, module2) => {
|
|
55319
55327
|
vstack = vstack.slice(0, -1 * len);
|
55320
55328
|
lstack = lstack.slice(0, -1 * len);
|
55321
55329
|
}
|
55322
|
-
stack.push(this.productions_[
|
55330
|
+
stack.push(this.productions_[action2[1]][0]);
|
55323
55331
|
vstack.push(yyval.$);
|
55324
55332
|
lstack.push(yyval._$);
|
55325
55333
|
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
@@ -58784,11 +58792,11 @@ var require_javascript_compiler = __commonJSMin((exports, module2) => {
|
|
58784
58792
|
var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams);
|
58785
58793
|
this.push(functionCall);
|
58786
58794
|
},
|
58787
|
-
itemsSeparatedBy: function itemsSeparatedBy(
|
58795
|
+
itemsSeparatedBy: function itemsSeparatedBy(items5, separator) {
|
58788
58796
|
var result = [];
|
58789
|
-
result.push(
|
58790
|
-
for (var i = 1; i <
|
58791
|
-
result.push(separator,
|
58797
|
+
result.push(items5[0]);
|
58798
|
+
for (var i = 1; i < items5.length; i++) {
|
58799
|
+
result.push(separator, items5[i]);
|
58792
58800
|
}
|
58793
58801
|
return result;
|
58794
58802
|
},
|
@@ -64163,8 +64171,8 @@ var require_AsapAction = __commonJSMin((exports) => {
|
|
64163
64171
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
64164
64172
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
64165
64173
|
}
|
64166
|
-
if (!scheduler.actions.some(function(
|
64167
|
-
return
|
64174
|
+
if (!scheduler.actions.some(function(action2) {
|
64175
|
+
return action2.id === id;
|
64168
64176
|
})) {
|
64169
64177
|
immediateProvider_1.immediateProvider.clearImmediate(id);
|
64170
64178
|
scheduler._scheduled = void 0;
|
@@ -64237,23 +64245,23 @@ var require_AsyncScheduler = __commonJSMin((exports) => {
|
|
64237
64245
|
_this._scheduled = void 0;
|
64238
64246
|
return _this;
|
64239
64247
|
}
|
64240
|
-
AsyncScheduler2.prototype.flush = function(
|
64248
|
+
AsyncScheduler2.prototype.flush = function(action2) {
|
64241
64249
|
var actions = this.actions;
|
64242
64250
|
if (this._active) {
|
64243
|
-
actions.push(
|
64251
|
+
actions.push(action2);
|
64244
64252
|
return;
|
64245
64253
|
}
|
64246
64254
|
var error;
|
64247
64255
|
this._active = true;
|
64248
64256
|
do {
|
64249
|
-
if (error =
|
64257
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
64250
64258
|
break;
|
64251
64259
|
}
|
64252
|
-
} while (
|
64260
|
+
} while (action2 = actions.shift());
|
64253
64261
|
this._active = false;
|
64254
64262
|
if (error) {
|
64255
|
-
while (
|
64256
|
-
|
64263
|
+
while (action2 = actions.shift()) {
|
64264
|
+
action2.unsubscribe();
|
64257
64265
|
}
|
64258
64266
|
throw error;
|
64259
64267
|
}
|
@@ -64293,22 +64301,22 @@ var require_AsapScheduler = __commonJSMin((exports) => {
|
|
64293
64301
|
function AsapScheduler2() {
|
64294
64302
|
return _super !== null && _super.apply(this, arguments) || this;
|
64295
64303
|
}
|
64296
|
-
AsapScheduler2.prototype.flush = function(
|
64304
|
+
AsapScheduler2.prototype.flush = function(action2) {
|
64297
64305
|
this._active = true;
|
64298
64306
|
var flushId = this._scheduled;
|
64299
64307
|
this._scheduled = void 0;
|
64300
64308
|
var actions = this.actions;
|
64301
64309
|
var error;
|
64302
|
-
|
64310
|
+
action2 = action2 || actions.shift();
|
64303
64311
|
do {
|
64304
|
-
if (error =
|
64312
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
64305
64313
|
break;
|
64306
64314
|
}
|
64307
|
-
} while ((
|
64315
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
64308
64316
|
this._active = false;
|
64309
64317
|
if (error) {
|
64310
|
-
while ((
|
64311
|
-
|
64318
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
64319
|
+
action2.unsubscribe();
|
64312
64320
|
}
|
64313
64321
|
throw error;
|
64314
64322
|
}
|
@@ -64495,8 +64503,8 @@ var require_AnimationFrameAction = __commonJSMin((exports) => {
|
|
64495
64503
|
if (delay != null && delay > 0 || delay == null && this.delay > 0) {
|
64496
64504
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
64497
64505
|
}
|
64498
|
-
if (!scheduler.actions.some(function(
|
64499
|
-
return
|
64506
|
+
if (!scheduler.actions.some(function(action2) {
|
64507
|
+
return action2.id === id;
|
64500
64508
|
})) {
|
64501
64509
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
64502
64510
|
scheduler._scheduled = void 0;
|
@@ -64538,22 +64546,22 @@ var require_AnimationFrameScheduler = __commonJSMin((exports) => {
|
|
64538
64546
|
function AnimationFrameScheduler2() {
|
64539
64547
|
return _super !== null && _super.apply(this, arguments) || this;
|
64540
64548
|
}
|
64541
|
-
AnimationFrameScheduler2.prototype.flush = function(
|
64549
|
+
AnimationFrameScheduler2.prototype.flush = function(action2) {
|
64542
64550
|
this._active = true;
|
64543
64551
|
var flushId = this._scheduled;
|
64544
64552
|
this._scheduled = void 0;
|
64545
64553
|
var actions = this.actions;
|
64546
64554
|
var error;
|
64547
|
-
|
64555
|
+
action2 = action2 || actions.shift();
|
64548
64556
|
do {
|
64549
|
-
if (error =
|
64557
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
64550
64558
|
break;
|
64551
64559
|
}
|
64552
|
-
} while ((
|
64560
|
+
} while ((action2 = actions[0]) && action2.id === flushId && actions.shift());
|
64553
64561
|
this._active = false;
|
64554
64562
|
if (error) {
|
64555
|
-
while ((
|
64556
|
-
|
64563
|
+
while ((action2 = actions[0]) && action2.id === flushId && actions.shift()) {
|
64564
|
+
action2.unsubscribe();
|
64557
64565
|
}
|
64558
64566
|
throw error;
|
64559
64567
|
}
|
@@ -64619,17 +64627,17 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
64619
64627
|
VirtualTimeScheduler2.prototype.flush = function() {
|
64620
64628
|
var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;
|
64621
64629
|
var error;
|
64622
|
-
var
|
64623
|
-
while ((
|
64630
|
+
var action2;
|
64631
|
+
while ((action2 = actions[0]) && action2.delay <= maxFrames) {
|
64624
64632
|
actions.shift();
|
64625
|
-
this.frame =
|
64626
|
-
if (error =
|
64633
|
+
this.frame = action2.delay;
|
64634
|
+
if (error = action2.execute(action2.state, action2.delay)) {
|
64627
64635
|
break;
|
64628
64636
|
}
|
64629
64637
|
}
|
64630
64638
|
if (error) {
|
64631
|
-
while (
|
64632
|
-
|
64639
|
+
while (action2 = actions.shift()) {
|
64640
|
+
action2.unsubscribe();
|
64633
64641
|
}
|
64634
64642
|
throw error;
|
64635
64643
|
}
|
@@ -64661,9 +64669,9 @@ var require_VirtualTimeScheduler = __commonJSMin((exports) => {
|
|
64661
64669
|
return _super.prototype.schedule.call(this, state, delay);
|
64662
64670
|
}
|
64663
64671
|
this.active = false;
|
64664
|
-
var
|
64665
|
-
this.add(
|
64666
|
-
return
|
64672
|
+
var action2 = new VirtualAction2(this.scheduler, this.work);
|
64673
|
+
this.add(action2);
|
64674
|
+
return action2.schedule(state, delay);
|
64667
64675
|
} else {
|
64668
64676
|
return Subscription_1.Subscription.EMPTY;
|
64669
64677
|
}
|
@@ -78373,15 +78381,15 @@ var require_ora2 = __commonJSMin((exports, module2) => {
|
|
78373
78381
|
return new Ora(options3);
|
78374
78382
|
};
|
78375
78383
|
module2.exports = oraFactory;
|
78376
|
-
module2.exports.promise = (
|
78377
|
-
if (typeof
|
78384
|
+
module2.exports.promise = (action2, options3) => {
|
78385
|
+
if (typeof action2.then !== "function") {
|
78378
78386
|
throw new TypeError("Parameter `action` must be a Promise");
|
78379
78387
|
}
|
78380
78388
|
const spinner = new Ora(options3);
|
78381
78389
|
spinner.start();
|
78382
78390
|
(async () => {
|
78383
78391
|
try {
|
78384
|
-
await
|
78392
|
+
await action2;
|
78385
78393
|
spinner.succeed();
|
78386
78394
|
} catch {
|
78387
78395
|
spinner.fail();
|
@@ -78562,13 +78570,13 @@ var require_base3 = __commonJSMin((exports, module2) => {
|
|
78562
78570
|
}
|
78563
78571
|
handleSubmitEvents(submit) {
|
78564
78572
|
const self2 = this;
|
78565
|
-
const
|
78573
|
+
const validate4 = runAsync(this.opt.validate);
|
78566
78574
|
const asyncFilter = runAsync(this.opt.filter);
|
78567
78575
|
const validation = submit.pipe(flatMap((value) => {
|
78568
78576
|
this.startSpinner(value, this.opt.filteringText);
|
78569
78577
|
return asyncFilter(value, self2.answers).then((filteredValue) => {
|
78570
78578
|
this.startSpinner(filteredValue, this.opt.validatingText);
|
78571
|
-
return
|
78579
|
+
return validate4(filteredValue, self2.answers).then((isValid) => ({ isValid, value: filteredValue }), (err) => ({ isValid: err, value: filteredValue }));
|
78572
78580
|
}, (err) => ({ isValid: err }));
|
78573
78581
|
}), share());
|
78574
78582
|
const success = validation.pipe(filter3((state) => state.isValid === true), take(1));
|
@@ -96570,7 +96578,7 @@ var init_stateField = __esmMin(() => {
|
|
96570
96578
|
if (typeof value.action === "function") {
|
96571
96579
|
schema.state.value = {
|
96572
96580
|
effectedByFields: value.effectedByFields,
|
96573
|
-
action: function
|
96581
|
+
action: function action2(data, lastValue) {
|
96574
96582
|
return value.action(data, lastValue || initValue);
|
96575
96583
|
}
|
96576
96584
|
};
|
@@ -96888,8 +96896,8 @@ var init_checkSchema = __esmMin(() => {
|
|
96888
96896
|
};
|
96889
96897
|
checkRepeatItems = function checkRepeatItems2(schema, extra) {
|
96890
96898
|
if (schema.items && schema.items.length > 0) {
|
96891
|
-
var
|
96892
|
-
var keys =
|
96899
|
+
var items5 = getItems(schema, {}, extra);
|
96900
|
+
var keys = items5.map(function(x) {
|
96893
96901
|
return x.key;
|
96894
96902
|
});
|
96895
96903
|
var tmp = [];
|
@@ -97071,9 +97079,9 @@ var init_baseReader = __esmMin(() => {
|
|
97071
97079
|
initValues[_schema.key] = _this.getSchemaDefaultValue(_schema, brothers, isRoot);
|
97072
97080
|
}
|
97073
97081
|
if (_schema.items) {
|
97074
|
-
var
|
97075
|
-
|
97076
|
-
return readDefaultValue2(each,
|
97082
|
+
var items5 = getItems(_schema, _this.data, _this.extra);
|
97083
|
+
items5.forEach(function(each) {
|
97084
|
+
return readDefaultValue2(each, items5.map(function(x) {
|
97077
97085
|
return x.key;
|
97078
97086
|
}), false);
|
97079
97087
|
});
|
@@ -97091,7 +97099,7 @@ var init_baseReader = __esmMin(() => {
|
|
97091
97099
|
if (!isEffectedValue(val)) {
|
97092
97100
|
return val;
|
97093
97101
|
}
|
97094
|
-
var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields,
|
97102
|
+
var _ref = val, _ref$effectedByFields = _ref.effectedByFields, effectedByFields = _ref$effectedByFields === void 0 ? [] : _ref$effectedByFields, action2 = _ref.action, rest = _objectWithoutProperties(_ref, _excluded);
|
97095
97103
|
if (isRoot) {
|
97096
97104
|
throw Error("[".concat(schema.key, "] top level should not have effects"));
|
97097
97105
|
}
|
@@ -97103,7 +97111,7 @@ var init_baseReader = __esmMin(() => {
|
|
97103
97111
|
}
|
97104
97112
|
return _objectSpread2({
|
97105
97113
|
effectedByFields: curNodeEffectedByFields,
|
97106
|
-
action
|
97114
|
+
action: action2
|
97107
97115
|
}, rest);
|
97108
97116
|
};
|
97109
97117
|
return handleEffects(state.value);
|
@@ -98087,7 +98095,7 @@ var require_utils8 = __commonJSMin((exports) => {
|
|
98087
98095
|
}, choices);
|
98088
98096
|
};
|
98089
98097
|
exports.getQuestion = getQuestion;
|
98090
|
-
var
|
98098
|
+
var when8 = (schema, answers, extra) => {
|
98091
98099
|
if (schema.when && typeof schema.when === "function") {
|
98092
98100
|
return schema.when(answers, extra);
|
98093
98101
|
}
|
@@ -98113,7 +98121,7 @@ var require_utils8 = __commonJSMin((exports) => {
|
|
98113
98121
|
});
|
98114
98122
|
return (answers) => {
|
98115
98123
|
try {
|
98116
|
-
if (!
|
98124
|
+
if (!when8(schema, answers, nodeInfo.extra)) {
|
98117
98125
|
return Promise.resolve(true);
|
98118
98126
|
}
|
98119
98127
|
const question = getQuestion({
|
@@ -98771,18 +98779,18 @@ var require_transformSchema = __commonJSMin((exports) => {
|
|
98771
98779
|
schemaItem.label = schemaItem.state.cliLabel;
|
98772
98780
|
}
|
98773
98781
|
const {
|
98774
|
-
when:
|
98775
|
-
validate
|
98782
|
+
when: when8,
|
98783
|
+
validate: validate4
|
98776
98784
|
} = schemaItem;
|
98777
98785
|
schemaItem.when = (values, extra) => {
|
98778
98786
|
if (!(0, _isUndefined2.default)(configValue[schemaItem.key])) {
|
98779
98787
|
return false;
|
98780
98788
|
}
|
98781
|
-
return
|
98789
|
+
return when8 ? when8(values, extra) : true;
|
98782
98790
|
};
|
98783
98791
|
schemaItem.validate = async (value, data, extra) => {
|
98784
|
-
if (
|
98785
|
-
const result = await
|
98792
|
+
if (validate4) {
|
98793
|
+
const result = await validate4(value, data, extra);
|
98786
98794
|
if (!result.success) {
|
98787
98795
|
return result;
|
98788
98796
|
}
|
@@ -100627,6 +100635,1176 @@ var init_treeshaking3 = __esmMin(() => {
|
|
100627
100635
|
return I18n3;
|
100628
100636
|
}();
|
100629
100637
|
});
|
100638
|
+
var ZH_LOCALE;
|
100639
|
+
var init_zh = __esmMin(() => {
|
100640
|
+
ZH_LOCALE = {
|
100641
|
+
solution: {
|
100642
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
100643
|
+
mwa: "\u5E94\u7528",
|
100644
|
+
module: "\u6A21\u5757",
|
100645
|
+
monorepo: "Monorepo",
|
100646
|
+
custom: "\u81EA\u5B9A\u4E49",
|
100647
|
+
"default": "\u9ED8\u8BA4"
|
100648
|
+
},
|
100649
|
+
scenes: {
|
100650
|
+
self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
|
100651
|
+
},
|
100652
|
+
sub_solution: {
|
100653
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
100654
|
+
mwa: "\u5E94\u7528",
|
100655
|
+
mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
|
100656
|
+
module: "\u6A21\u5757",
|
100657
|
+
inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
|
100658
|
+
},
|
100659
|
+
action: {
|
100660
|
+
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
|
100661
|
+
"function": {
|
100662
|
+
self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
|
100663
|
+
tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
|
100664
|
+
less: "\u542F\u7528 Less \u652F\u6301",
|
100665
|
+
sass: "\u542F\u7528 Sass \u652F\u6301",
|
100666
|
+
bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
|
100667
|
+
micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
|
100668
|
+
electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
|
100669
|
+
i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
|
100670
|
+
test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
|
100671
|
+
e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
|
100672
|
+
doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
|
100673
|
+
storybook: "\u542F\u7528\u300CStorybook\u300D",
|
100674
|
+
runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
|
100675
|
+
mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
|
100676
|
+
ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
|
100677
|
+
polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
|
100678
|
+
proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
|
100679
|
+
},
|
100680
|
+
element: {
|
100681
|
+
self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
|
100682
|
+
entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
|
100683
|
+
server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
|
100684
|
+
},
|
100685
|
+
refactor: {
|
100686
|
+
self: "\u81EA\u52A8\u91CD\u6784",
|
100687
|
+
bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
|
100688
|
+
}
|
100689
|
+
},
|
100690
|
+
"boolean": {
|
100691
|
+
yes: "\u662F",
|
100692
|
+
no: "\u5426"
|
100693
|
+
},
|
100694
|
+
language: {
|
100695
|
+
self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
|
100696
|
+
},
|
100697
|
+
packageManager: {
|
100698
|
+
self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
|
100699
|
+
},
|
100700
|
+
runWay: {
|
100701
|
+
self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
|
100702
|
+
no: "\u4E0D\u9700\u8981",
|
100703
|
+
electron: "Electron"
|
100704
|
+
},
|
100705
|
+
entry: {
|
100706
|
+
name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
|
100707
|
+
no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
100708
|
+
no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
|
100709
|
+
needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
100710
|
+
clientRoute: {
|
100711
|
+
self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
|
100712
|
+
selfControlRoute: "\u81EA\u63A7\u8DEF\u7531",
|
100713
|
+
conventionalRoute: "\u7EA6\u5B9A\u5F0F\u8DEF\u7531"
|
100714
|
+
}
|
100715
|
+
},
|
100716
|
+
packageName: {
|
100717
|
+
self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
|
100718
|
+
sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
|
100719
|
+
no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
|
100720
|
+
},
|
100721
|
+
packagePath: {
|
100722
|
+
self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
|
100723
|
+
no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
100724
|
+
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"
|
100725
|
+
},
|
100726
|
+
framework: {
|
100727
|
+
self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
|
100728
|
+
egg: "Egg",
|
100729
|
+
express: "Express",
|
100730
|
+
koa: "Koa",
|
100731
|
+
nest: "Nest"
|
100732
|
+
},
|
100733
|
+
bff: {
|
100734
|
+
bffType: {
|
100735
|
+
self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
|
100736
|
+
func: "\u51FD\u6570\u6A21\u5F0F",
|
100737
|
+
framework: "\u6846\u67B6\u6A21\u5F0F"
|
100738
|
+
}
|
100739
|
+
}
|
100740
|
+
};
|
100741
|
+
});
|
100742
|
+
var EN_LOCALE;
|
100743
|
+
var init_en = __esmMin(() => {
|
100744
|
+
EN_LOCALE = {
|
100745
|
+
solution: {
|
100746
|
+
self: "Please select the solution you want to create",
|
100747
|
+
mwa: "MWA Solution",
|
100748
|
+
module: "Module Solution",
|
100749
|
+
monorepo: "Monorepo Solution",
|
100750
|
+
custom: "Custom Solution",
|
100751
|
+
"default": "Default"
|
100752
|
+
},
|
100753
|
+
scenes: {
|
100754
|
+
self: "Please select the scene you want to create"
|
100755
|
+
},
|
100756
|
+
sub_solution: {
|
100757
|
+
self: "Please select the solution you want to create",
|
100758
|
+
mwa: "MWA Solution",
|
100759
|
+
mwa_test: "MWA Solution(Test)",
|
100760
|
+
module: "Module Solution",
|
100761
|
+
inner_module: "Module Solution(Inner)",
|
100762
|
+
monorepo: "Monorepo Solution"
|
100763
|
+
},
|
100764
|
+
action: {
|
100765
|
+
self: "Action",
|
100766
|
+
"function": {
|
100767
|
+
self: "Enable features",
|
100768
|
+
tailwindcss: "Enable Tailwind CSS",
|
100769
|
+
less: "Enable Less",
|
100770
|
+
sass: "Enable Sass",
|
100771
|
+
bff: "Enable BFF",
|
100772
|
+
micro_frontend: "Enable Micro Frontend",
|
100773
|
+
electron: "Enable Electron",
|
100774
|
+
i18n: "Enable Internationalization (i18n)",
|
100775
|
+
test: "Enable Unit Test / Integration Test",
|
100776
|
+
e2e_test: "Enable E2E Test",
|
100777
|
+
doc: "Enable Document Station",
|
100778
|
+
storybook: "Enable Storybook",
|
100779
|
+
runtime_api: "Enable Runtime API",
|
100780
|
+
mwa_storybook: "Enable Visual Testing (Storybook)",
|
100781
|
+
ssg: "Enable SSG",
|
100782
|
+
polyfill: "Enable UA-based Polyfill Feature",
|
100783
|
+
proxy: "Enable Global Proxy"
|
100784
|
+
},
|
100785
|
+
element: {
|
100786
|
+
self: "Create project element",
|
100787
|
+
entry: 'New "entry"',
|
100788
|
+
server: 'New "Server Custom" source code directory'
|
100789
|
+
},
|
100790
|
+
refactor: {
|
100791
|
+
self: "Automatic refactor",
|
100792
|
+
bff_to_app: "Transform BFF to frame mode"
|
100793
|
+
}
|
100794
|
+
},
|
100795
|
+
"boolean": {
|
100796
|
+
yes: "Yes",
|
100797
|
+
no: "No"
|
100798
|
+
},
|
100799
|
+
language: {
|
100800
|
+
self: "Development Language"
|
100801
|
+
},
|
100802
|
+
packageManager: {
|
100803
|
+
self: "Package Management Tool"
|
100804
|
+
},
|
100805
|
+
packageName: {
|
100806
|
+
self: "Package Name",
|
100807
|
+
sub_name: "Package Name",
|
100808
|
+
no_empty: "The package name cannot be empty!"
|
100809
|
+
},
|
100810
|
+
packagePath: {
|
100811
|
+
self: "Package Path",
|
100812
|
+
no_empty: "The package path cannot be empty!",
|
100813
|
+
format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
|
100814
|
+
},
|
100815
|
+
runWay: {
|
100816
|
+
self: "Do you need to support the following types of applications",
|
100817
|
+
no: "Not Enabled",
|
100818
|
+
electron: "Electron"
|
100819
|
+
},
|
100820
|
+
entry: {
|
100821
|
+
name: "Entry name",
|
100822
|
+
no_empty: "The entry name cannot be empty!",
|
100823
|
+
no_pages: 'The entry name cannot be "pages"!',
|
100824
|
+
needModifyConfig: "Modify the Default Configuration?",
|
100825
|
+
clientRoute: {
|
100826
|
+
self: "Client Routing",
|
100827
|
+
selfControlRoute: "Self Control Route",
|
100828
|
+
conventionalRoute: "Conventional Route"
|
100829
|
+
}
|
100830
|
+
},
|
100831
|
+
framework: {
|
100832
|
+
self: "Please select the framework you want to use",
|
100833
|
+
egg: "Egg",
|
100834
|
+
express: "Express",
|
100835
|
+
koa: "Koa",
|
100836
|
+
nest: "Nest"
|
100837
|
+
},
|
100838
|
+
bff: {
|
100839
|
+
bffType: {
|
100840
|
+
self: "BFF Type",
|
100841
|
+
func: "Function",
|
100842
|
+
framework: "Framework"
|
100843
|
+
}
|
100844
|
+
}
|
100845
|
+
};
|
100846
|
+
});
|
100847
|
+
var i18n, localeKeys;
|
100848
|
+
var init_locale = __esmMin(() => {
|
100849
|
+
init_treeshaking3();
|
100850
|
+
init_zh();
|
100851
|
+
init_en();
|
100852
|
+
i18n = new I18n2();
|
100853
|
+
localeKeys = i18n.init("zh", {
|
100854
|
+
zh: ZH_LOCALE,
|
100855
|
+
en: EN_LOCALE
|
100856
|
+
});
|
100857
|
+
});
|
100858
|
+
var _BooleanConfigName, BooleanConfig, BooleanConfigName, BooleanSchemas;
|
100859
|
+
var init_boolean = __esmMin(() => {
|
100860
|
+
init_defineProperty();
|
100861
|
+
init_locale();
|
100862
|
+
(function(BooleanConfig2) {
|
100863
|
+
BooleanConfig2["NO"] = "no";
|
100864
|
+
BooleanConfig2["YES"] = "yes";
|
100865
|
+
})(BooleanConfig || (BooleanConfig = {}));
|
100866
|
+
BooleanConfigName = (_BooleanConfigName = {}, _defineProperty(_BooleanConfigName, BooleanConfig.NO, function() {
|
100867
|
+
return i18n.t(localeKeys["boolean"].no);
|
100868
|
+
}), _defineProperty(_BooleanConfigName, BooleanConfig.YES, function() {
|
100869
|
+
return i18n.t(localeKeys["boolean"].yes);
|
100870
|
+
}), _BooleanConfigName);
|
100871
|
+
BooleanSchemas = [{
|
100872
|
+
key: BooleanConfig.NO,
|
100873
|
+
label: BooleanConfigName[BooleanConfig.NO]
|
100874
|
+
}, {
|
100875
|
+
key: BooleanConfig.YES,
|
100876
|
+
label: BooleanConfigName[BooleanConfig.YES]
|
100877
|
+
}];
|
100878
|
+
});
|
100879
|
+
function getSolutionNameFromSubSolution(solution) {
|
100880
|
+
if (solution === SubSolution.MWATest) {
|
100881
|
+
return Solution.MWA;
|
100882
|
+
}
|
100883
|
+
if (solution === SubSolution.InnerModule) {
|
100884
|
+
return Solution.Module;
|
100885
|
+
}
|
100886
|
+
return solution;
|
100887
|
+
}
|
100888
|
+
var _SolutionText, _SubSolutionText, _SolutionToolsMap, _SolutionGenerator, _SubSolutionGenerator, Solution, SubSolution, SolutionText, SubSolutionText, SolutionToolsMap, SolutionSchema, SubSolutionSchema, BaseGenerator, SolutionGenerator, SubSolutionGenerator, ChangesetGenerator, DependenceGenerator, EntryGenerator, ElectronGenerator, EslintGenerator;
|
100889
|
+
var init_solution = __esmMin(() => {
|
100890
|
+
init_toConsumableArray();
|
100891
|
+
init_defineProperty();
|
100892
|
+
init_locale();
|
100893
|
+
(function(Solution2) {
|
100894
|
+
Solution2["MWA"] = "mwa";
|
100895
|
+
Solution2["Module"] = "module";
|
100896
|
+
Solution2["Monorepo"] = "monorepo";
|
100897
|
+
})(Solution || (Solution = {}));
|
100898
|
+
(function(SubSolution2) {
|
100899
|
+
SubSolution2["MWA"] = "mwa";
|
100900
|
+
SubSolution2["MWATest"] = "mwa_test";
|
100901
|
+
SubSolution2["Module"] = "module";
|
100902
|
+
SubSolution2["InnerModule"] = "inner_module";
|
100903
|
+
})(SubSolution || (SubSolution = {}));
|
100904
|
+
SolutionText = (_SolutionText = {}, _defineProperty(_SolutionText, Solution.MWA, function() {
|
100905
|
+
return i18n.t(localeKeys.solution.mwa);
|
100906
|
+
}), _defineProperty(_SolutionText, Solution.Module, function() {
|
100907
|
+
return i18n.t(localeKeys.solution.module);
|
100908
|
+
}), _defineProperty(_SolutionText, Solution.Monorepo, function() {
|
100909
|
+
return i18n.t(localeKeys.solution.monorepo);
|
100910
|
+
}), _SolutionText);
|
100911
|
+
SubSolutionText = (_SubSolutionText = {}, _defineProperty(_SubSolutionText, SubSolution.MWA, function() {
|
100912
|
+
return i18n.t(localeKeys.sub_solution.mwa);
|
100913
|
+
}), _defineProperty(_SubSolutionText, SubSolution.MWATest, function() {
|
100914
|
+
return i18n.t(localeKeys.sub_solution.mwa_test);
|
100915
|
+
}), _defineProperty(_SubSolutionText, SubSolution.Module, function() {
|
100916
|
+
return i18n.t(localeKeys.sub_solution.module);
|
100917
|
+
}), _defineProperty(_SubSolutionText, SubSolution.InnerModule, function() {
|
100918
|
+
return i18n.t(localeKeys.sub_solution.inner_module);
|
100919
|
+
}), _SubSolutionText);
|
100920
|
+
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);
|
100921
|
+
SolutionSchema = {
|
100922
|
+
key: "solution_schema",
|
100923
|
+
isObject: true,
|
100924
|
+
items: [{
|
100925
|
+
key: "solution",
|
100926
|
+
label: function label() {
|
100927
|
+
return i18n.t(localeKeys.solution.self);
|
100928
|
+
},
|
100929
|
+
type: ["string"],
|
100930
|
+
mutualExclusion: true,
|
100931
|
+
items: function items(_data, extra) {
|
100932
|
+
var _extra$customPlugin, _extra$customPlugin$c;
|
100933
|
+
var items5 = Object.values(Solution).filter(function(solution) {
|
100934
|
+
return !(extra !== null && extra !== void 0 && extra.isSubProject && solution === Solution.Monorepo);
|
100935
|
+
}).map(function(solution) {
|
100936
|
+
return {
|
100937
|
+
key: solution,
|
100938
|
+
label: SolutionText[solution]
|
100939
|
+
};
|
100940
|
+
});
|
100941
|
+
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) {
|
100942
|
+
return [].concat(_toConsumableArray(items5), [{
|
100943
|
+
key: "custom",
|
100944
|
+
label: i18n.t(localeKeys.solution.custom)
|
100945
|
+
}]);
|
100946
|
+
}
|
100947
|
+
return items5;
|
100948
|
+
}
|
100949
|
+
}, {
|
100950
|
+
key: "scenes",
|
100951
|
+
label: function label2() {
|
100952
|
+
return i18n.t(localeKeys.scenes.self);
|
100953
|
+
},
|
100954
|
+
type: ["string"],
|
100955
|
+
mutualExclusion: true,
|
100956
|
+
when: function when(data, extra) {
|
100957
|
+
return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[data.solution] && extra.customPlugin[data.solution].length > 0;
|
100958
|
+
},
|
100959
|
+
items: function items2(data, extra) {
|
100960
|
+
var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[data.solution]) || [] : []).map(function(plugin) {
|
100961
|
+
return {
|
100962
|
+
key: plugin.key,
|
100963
|
+
label: plugin.name
|
100964
|
+
};
|
100965
|
+
});
|
100966
|
+
if (data.solution && data.solution !== "custom") {
|
100967
|
+
items5.unshift({
|
100968
|
+
key: data.solution,
|
100969
|
+
label: "".concat(SolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
|
100970
|
+
});
|
100971
|
+
}
|
100972
|
+
return items5;
|
100973
|
+
}
|
100974
|
+
}]
|
100975
|
+
};
|
100976
|
+
SubSolutionSchema = {
|
100977
|
+
key: "sub_solution_schema",
|
100978
|
+
isObject: true,
|
100979
|
+
items: [{
|
100980
|
+
key: "solution",
|
100981
|
+
label: function label3() {
|
100982
|
+
return i18n.t(localeKeys.sub_solution.self);
|
100983
|
+
},
|
100984
|
+
type: ["string"],
|
100985
|
+
mutualExclusion: true,
|
100986
|
+
items: function items3(_data, extra) {
|
100987
|
+
var _extra$customPlugin2, _extra$customPlugin2$;
|
100988
|
+
var items5 = Object.values(SubSolution).map(function(solution) {
|
100989
|
+
return {
|
100990
|
+
key: solution,
|
100991
|
+
label: SubSolutionText[solution]
|
100992
|
+
};
|
100993
|
+
});
|
100994
|
+
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) {
|
100995
|
+
return [].concat(_toConsumableArray(items5), [{
|
100996
|
+
key: "custom",
|
100997
|
+
label: i18n.t(localeKeys.solution.custom)
|
100998
|
+
}]);
|
100999
|
+
}
|
101000
|
+
return items5;
|
101001
|
+
}
|
101002
|
+
}, {
|
101003
|
+
key: "scenes",
|
101004
|
+
label: function label4() {
|
101005
|
+
return i18n.t(localeKeys.scenes.self);
|
101006
|
+
},
|
101007
|
+
type: ["string"],
|
101008
|
+
mutualExclusion: true,
|
101009
|
+
when: function when2(data, extra) {
|
101010
|
+
return (extra === null || extra === void 0 ? void 0 : extra.customPlugin) && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)] && extra.customPlugin[getSolutionNameFromSubSolution(data.solution)].length > 0;
|
101011
|
+
},
|
101012
|
+
items: function items4(data, extra) {
|
101013
|
+
var solution = getSolutionNameFromSubSolution(data.solution);
|
101014
|
+
var items5 = (extra !== null && extra !== void 0 && extra.customPlugin ? (extra === null || extra === void 0 ? void 0 : extra.customPlugin[solution]) || [] : []).map(function(plugin) {
|
101015
|
+
return {
|
101016
|
+
key: plugin.key,
|
101017
|
+
label: plugin.name
|
101018
|
+
};
|
101019
|
+
});
|
101020
|
+
if (data.solution && data.solution !== "custom") {
|
101021
|
+
items5.unshift({
|
101022
|
+
key: data.solution,
|
101023
|
+
label: "".concat(SubSolutionText[data.solution](), "(").concat(i18n.t(localeKeys.solution["default"]), ")")
|
101024
|
+
});
|
101025
|
+
}
|
101026
|
+
return items5;
|
101027
|
+
}
|
101028
|
+
}]
|
101029
|
+
};
|
101030
|
+
BaseGenerator = "@modern-js/base-generator";
|
101031
|
+
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);
|
101032
|
+
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);
|
101033
|
+
ChangesetGenerator = "@modern-js/changeset-generator";
|
101034
|
+
DependenceGenerator = "@modern-js/dependence-generator";
|
101035
|
+
EntryGenerator = "@modern-js/entry-generator";
|
101036
|
+
ElectronGenerator = "@modern-js/electron-generator";
|
101037
|
+
EslintGenerator = "@modern-js/eslint-generator";
|
101038
|
+
});
|
101039
|
+
var _LanguageName, Language, LanguageName, LanguageSchema;
|
101040
|
+
var init_language = __esmMin(() => {
|
101041
|
+
init_defineProperty();
|
101042
|
+
init_locale();
|
101043
|
+
(function(Language2) {
|
101044
|
+
Language2["TS"] = "ts";
|
101045
|
+
Language2["JS"] = "js";
|
101046
|
+
})(Language || (Language = {}));
|
101047
|
+
LanguageName = (_LanguageName = {}, _defineProperty(_LanguageName, Language.TS, function() {
|
101048
|
+
return "TS";
|
101049
|
+
}), _defineProperty(_LanguageName, Language.JS, function() {
|
101050
|
+
return "ES6+";
|
101051
|
+
}), _LanguageName);
|
101052
|
+
LanguageSchema = {
|
101053
|
+
key: "language",
|
101054
|
+
type: ["string"],
|
101055
|
+
label: function label5() {
|
101056
|
+
return i18n.t(localeKeys.language.self);
|
101057
|
+
},
|
101058
|
+
mutualExclusion: true,
|
101059
|
+
items: Object.values(Language).map(function(language) {
|
101060
|
+
return {
|
101061
|
+
key: language,
|
101062
|
+
label: LanguageName[language]
|
101063
|
+
};
|
101064
|
+
})
|
101065
|
+
};
|
101066
|
+
});
|
101067
|
+
var _PackageManagerName, PackageManager, PackageManagerName, PackageManagerSchema;
|
101068
|
+
var init_package_manager = __esmMin(() => {
|
101069
|
+
init_defineProperty();
|
101070
|
+
init_locale();
|
101071
|
+
(function(PackageManager2) {
|
101072
|
+
PackageManager2["Pnpm"] = "pnpm";
|
101073
|
+
PackageManager2["Yarn"] = "yarn";
|
101074
|
+
PackageManager2["Npm"] = "npm";
|
101075
|
+
})(PackageManager || (PackageManager = {}));
|
101076
|
+
PackageManagerName = (_PackageManagerName = {}, _defineProperty(_PackageManagerName, PackageManager.Pnpm, function() {
|
101077
|
+
return "pnpm";
|
101078
|
+
}), _defineProperty(_PackageManagerName, PackageManager.Yarn, function() {
|
101079
|
+
return "Yarn";
|
101080
|
+
}), _defineProperty(_PackageManagerName, PackageManager.Npm, function() {
|
101081
|
+
return "npm";
|
101082
|
+
}), _PackageManagerName);
|
101083
|
+
PackageManagerSchema = {
|
101084
|
+
key: "packageManager",
|
101085
|
+
type: ["string"],
|
101086
|
+
label: function label6() {
|
101087
|
+
return i18n.t(localeKeys.packageManager.self);
|
101088
|
+
},
|
101089
|
+
mutualExclusion: true,
|
101090
|
+
when: function when3(_values, extra) {
|
101091
|
+
return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
|
101092
|
+
},
|
101093
|
+
items: Object.values(PackageManager).map(function(packageManager) {
|
101094
|
+
return {
|
101095
|
+
key: packageManager,
|
101096
|
+
label: PackageManagerName[packageManager]
|
101097
|
+
};
|
101098
|
+
})
|
101099
|
+
};
|
101100
|
+
});
|
101101
|
+
var PackageNameSchema;
|
101102
|
+
var init_package_name = __esmMin(() => {
|
101103
|
+
init_locale();
|
101104
|
+
PackageNameSchema = {
|
101105
|
+
key: "packageName",
|
101106
|
+
label: function label7(_, extra) {
|
101107
|
+
return extra !== null && extra !== void 0 && extra.isMonorepoSubProject ? i18n.t(localeKeys.packageName.sub_name) : i18n.t(localeKeys.packageName.self);
|
101108
|
+
},
|
101109
|
+
type: ["string"],
|
101110
|
+
when: function when4(_, extra) {
|
101111
|
+
return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject) || !(extra !== null && extra !== void 0 && extra.isMwa);
|
101112
|
+
},
|
101113
|
+
validate: function validate(value) {
|
101114
|
+
if (!value) {
|
101115
|
+
return {
|
101116
|
+
success: false,
|
101117
|
+
error: i18n.t(localeKeys.packageName.no_empty)
|
101118
|
+
};
|
101119
|
+
}
|
101120
|
+
return {
|
101121
|
+
success: true
|
101122
|
+
};
|
101123
|
+
}
|
101124
|
+
};
|
101125
|
+
});
|
101126
|
+
var PackagePathRegex, PackagePathSchema;
|
101127
|
+
var init_package_path = __esmMin(() => {
|
101128
|
+
init_locale();
|
101129
|
+
PackagePathRegex = new RegExp("^[a-z0-9]*[-_/]?([a-z0-9]*[-_]?[a-z0-9]*)*[-_/]?[a-z0-9-_]+$");
|
101130
|
+
PackagePathSchema = {
|
101131
|
+
key: "packagePath",
|
101132
|
+
label: function label8() {
|
101133
|
+
return i18n.t(localeKeys.packagePath.self);
|
101134
|
+
},
|
101135
|
+
type: ["string"],
|
101136
|
+
when: function when5(_, extra) {
|
101137
|
+
return Boolean(extra === null || extra === void 0 ? void 0 : extra.isMonorepoSubProject);
|
101138
|
+
},
|
101139
|
+
state: {
|
101140
|
+
value: {
|
101141
|
+
effectedByFields: ["packageName"],
|
101142
|
+
action: function action(data) {
|
101143
|
+
return "".concat(data.packageName || "");
|
101144
|
+
}
|
101145
|
+
}
|
101146
|
+
},
|
101147
|
+
validate: function validate2(value) {
|
101148
|
+
if (!value) {
|
101149
|
+
return {
|
101150
|
+
success: false,
|
101151
|
+
error: i18n.t(localeKeys.packagePath.no_empty)
|
101152
|
+
};
|
101153
|
+
}
|
101154
|
+
if (!PackagePathRegex.test(value)) {
|
101155
|
+
return {
|
101156
|
+
success: false,
|
101157
|
+
error: i18n.t(localeKeys.packagePath.format)
|
101158
|
+
};
|
101159
|
+
}
|
101160
|
+
return {
|
101161
|
+
success: true
|
101162
|
+
};
|
101163
|
+
}
|
101164
|
+
};
|
101165
|
+
});
|
101166
|
+
var init_common = __esmMin(() => {
|
101167
|
+
init_boolean();
|
101168
|
+
init_solution();
|
101169
|
+
init_language();
|
101170
|
+
init_package_manager();
|
101171
|
+
init_package_name();
|
101172
|
+
init_package_path();
|
101173
|
+
});
|
101174
|
+
var BaseSchemas, BaseSchema, BaseDefaultConfig;
|
101175
|
+
var init_project = __esmMin(() => {
|
101176
|
+
init_common();
|
101177
|
+
BaseSchemas = [PackageManagerSchema];
|
101178
|
+
BaseSchema = {
|
101179
|
+
key: "base",
|
101180
|
+
isObject: true,
|
101181
|
+
items: BaseSchemas
|
101182
|
+
};
|
101183
|
+
BaseDefaultConfig = {
|
101184
|
+
packageManager: PackageManager.Pnpm
|
101185
|
+
};
|
101186
|
+
});
|
101187
|
+
var init_base = __esmMin(() => {
|
101188
|
+
init_project();
|
101189
|
+
});
|
101190
|
+
var ModuleSchemas, ModuleSchema, ModuleDefaultConfig;
|
101191
|
+
var init_project2 = __esmMin(() => {
|
101192
|
+
init_common();
|
101193
|
+
ModuleSchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema];
|
101194
|
+
ModuleSchema = {
|
101195
|
+
key: "module",
|
101196
|
+
isObject: true,
|
101197
|
+
items: ModuleSchemas
|
101198
|
+
};
|
101199
|
+
ModuleDefaultConfig = {
|
101200
|
+
language: Language.TS,
|
101201
|
+
packageManager: PackageManager.Pnpm
|
101202
|
+
};
|
101203
|
+
});
|
101204
|
+
var init_module = __esmMin(() => {
|
101205
|
+
init_project2();
|
101206
|
+
});
|
101207
|
+
var MonorepoPackageManagerSchema, MonorepoSchemas, MonorepoSchema, MonorepoDefaultConfig;
|
101208
|
+
var init_project3 = __esmMin(() => {
|
101209
|
+
init_objectSpread2();
|
101210
|
+
init_common();
|
101211
|
+
MonorepoPackageManagerSchema = _objectSpread2(_objectSpread2({}, PackageManagerSchema), {}, {
|
101212
|
+
items: PackageManagerSchema.items.filter(function(item) {
|
101213
|
+
return item.key !== PackageManager.Npm;
|
101214
|
+
})
|
101215
|
+
});
|
101216
|
+
MonorepoSchemas = [MonorepoPackageManagerSchema];
|
101217
|
+
MonorepoSchema = {
|
101218
|
+
key: "monorepo",
|
101219
|
+
isObject: true,
|
101220
|
+
items: MonorepoSchemas
|
101221
|
+
};
|
101222
|
+
MonorepoDefaultConfig = {
|
101223
|
+
packageManager: PackageManager.Pnpm
|
101224
|
+
};
|
101225
|
+
});
|
101226
|
+
var init_monorepo = __esmMin(() => {
|
101227
|
+
init_project3();
|
101228
|
+
});
|
101229
|
+
var _FrameworkAppendTypeC, mwaConfigWhenFunc, RunWay, RunWaySchema, ClientRoute, ClientRouteSchema, NeedModifyMWAConfigSchema, Framework, FrameworkSchema, FrameworkAppendTypeContent;
|
101230
|
+
var init_common2 = __esmMin(() => {
|
101231
|
+
init_defineProperty();
|
101232
|
+
init_locale();
|
101233
|
+
init_boolean();
|
101234
|
+
mwaConfigWhenFunc = function mwaConfigWhenFunc2(values) {
|
101235
|
+
return values.needModifyMWAConfig === BooleanConfig.YES;
|
101236
|
+
};
|
101237
|
+
(function(RunWay2) {
|
101238
|
+
RunWay2["No"] = "no";
|
101239
|
+
RunWay2["Electron"] = "electron";
|
101240
|
+
})(RunWay || (RunWay = {}));
|
101241
|
+
RunWaySchema = {
|
101242
|
+
key: "runWay",
|
101243
|
+
type: ["string"],
|
101244
|
+
label: function label9() {
|
101245
|
+
return i18n.t(localeKeys.runWay.self);
|
101246
|
+
},
|
101247
|
+
mutualExclusion: true,
|
101248
|
+
when: function when6(_, extra) {
|
101249
|
+
return (extra === null || extra === void 0 ? void 0 : extra.isEmptySrc) === void 0 ? true : Boolean(extra === null || extra === void 0 ? void 0 : extra.isEmptySrc);
|
101250
|
+
},
|
101251
|
+
state: {
|
101252
|
+
value: RunWay.No
|
101253
|
+
},
|
101254
|
+
items: Object.values(RunWay).map(function(runWay) {
|
101255
|
+
return {
|
101256
|
+
key: runWay,
|
101257
|
+
label: function label21() {
|
101258
|
+
return i18n.t(localeKeys.runWay[runWay]);
|
101259
|
+
}
|
101260
|
+
};
|
101261
|
+
})
|
101262
|
+
};
|
101263
|
+
(function(ClientRoute2) {
|
101264
|
+
ClientRoute2["SelfControlRoute"] = "selfControlRoute";
|
101265
|
+
ClientRoute2["ConventionalRoute"] = "conventionalRoute";
|
101266
|
+
})(ClientRoute || (ClientRoute = {}));
|
101267
|
+
ClientRouteSchema = {
|
101268
|
+
key: "clientRoute",
|
101269
|
+
type: ["string"],
|
101270
|
+
label: function label10() {
|
101271
|
+
return i18n.t(localeKeys.entry.clientRoute.self);
|
101272
|
+
},
|
101273
|
+
mutualExclusion: true,
|
101274
|
+
when: mwaConfigWhenFunc,
|
101275
|
+
state: {
|
101276
|
+
value: ClientRoute.SelfControlRoute
|
101277
|
+
},
|
101278
|
+
items: Object.values(ClientRoute).map(function(clientRoute) {
|
101279
|
+
return {
|
101280
|
+
key: clientRoute,
|
101281
|
+
label: function label21() {
|
101282
|
+
return i18n.t(localeKeys.entry.clientRoute[clientRoute]);
|
101283
|
+
}
|
101284
|
+
};
|
101285
|
+
})
|
101286
|
+
};
|
101287
|
+
NeedModifyMWAConfigSchema = {
|
101288
|
+
key: "needModifyMWAConfig",
|
101289
|
+
label: function label11() {
|
101290
|
+
return i18n.t(localeKeys.entry.needModifyConfig);
|
101291
|
+
},
|
101292
|
+
type: ["string"],
|
101293
|
+
mutualExclusion: true,
|
101294
|
+
state: {
|
101295
|
+
value: BooleanConfig.NO
|
101296
|
+
},
|
101297
|
+
items: BooleanSchemas
|
101298
|
+
};
|
101299
|
+
(function(Framework2) {
|
101300
|
+
Framework2["Express"] = "express";
|
101301
|
+
Framework2["Koa"] = "koa";
|
101302
|
+
Framework2["Egg"] = "egg";
|
101303
|
+
Framework2["Nest"] = "nest";
|
101304
|
+
})(Framework || (Framework = {}));
|
101305
|
+
FrameworkSchema = {
|
101306
|
+
key: "framework",
|
101307
|
+
type: ["string"],
|
101308
|
+
label: function label12() {
|
101309
|
+
return i18n.t(localeKeys.framework.self);
|
101310
|
+
},
|
101311
|
+
mutualExclusion: true,
|
101312
|
+
items: Object.values(Framework).map(function(framework) {
|
101313
|
+
return {
|
101314
|
+
key: framework,
|
101315
|
+
label: function label21() {
|
101316
|
+
return i18n.t(localeKeys.framework[framework]);
|
101317
|
+
}
|
101318
|
+
};
|
101319
|
+
})
|
101320
|
+
};
|
101321
|
+
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);
|
101322
|
+
});
|
101323
|
+
var EntryNameSchema, EntrySchemas, EntrySchema, MWADefaultEntryConfig;
|
101324
|
+
var init_entry = __esmMin(() => {
|
101325
|
+
init_locale();
|
101326
|
+
init_common();
|
101327
|
+
init_common2();
|
101328
|
+
EntryNameSchema = {
|
101329
|
+
key: "name",
|
101330
|
+
type: ["string"],
|
101331
|
+
label: function label13() {
|
101332
|
+
return i18n.t(localeKeys.entry.name);
|
101333
|
+
},
|
101334
|
+
state: {
|
101335
|
+
value: "entry"
|
101336
|
+
},
|
101337
|
+
validate: function validate3(value) {
|
101338
|
+
if (!value) {
|
101339
|
+
return {
|
101340
|
+
success: false,
|
101341
|
+
error: i18n.t(localeKeys.entry.no_empty)
|
101342
|
+
};
|
101343
|
+
}
|
101344
|
+
if (value === "pages") {
|
101345
|
+
return {
|
101346
|
+
success: false,
|
101347
|
+
error: i18n.t(localeKeys.entry.no_pages)
|
101348
|
+
};
|
101349
|
+
}
|
101350
|
+
return {
|
101351
|
+
success: true
|
101352
|
+
};
|
101353
|
+
},
|
101354
|
+
when: function when7(_values, extra) {
|
101355
|
+
if (extra !== null && extra !== void 0 && extra.isEmptySrc) {
|
101356
|
+
return false;
|
101357
|
+
}
|
101358
|
+
return true;
|
101359
|
+
}
|
101360
|
+
};
|
101361
|
+
EntrySchemas = [EntryNameSchema, NeedModifyMWAConfigSchema, ClientRouteSchema];
|
101362
|
+
EntrySchema = {
|
101363
|
+
key: "entry",
|
101364
|
+
label: function label14() {
|
101365
|
+
return i18n.t(localeKeys.action.element.entry);
|
101366
|
+
},
|
101367
|
+
isObject: true,
|
101368
|
+
items: EntrySchemas
|
101369
|
+
};
|
101370
|
+
MWADefaultEntryConfig = {
|
101371
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
101372
|
+
clientRoute: ClientRoute.SelfControlRoute
|
101373
|
+
};
|
101374
|
+
});
|
101375
|
+
var BFFType, BFFTypeSchema, BFFSchemas, BFFSchema, MWADefaultBffConfig;
|
101376
|
+
var init_bff = __esmMin(() => {
|
101377
|
+
init_locale();
|
101378
|
+
init_common2();
|
101379
|
+
(function(BFFType2) {
|
101380
|
+
BFFType2["Func"] = "func";
|
101381
|
+
BFFType2["Framework"] = "framework";
|
101382
|
+
})(BFFType || (BFFType = {}));
|
101383
|
+
BFFTypeSchema = {
|
101384
|
+
key: "bffType",
|
101385
|
+
type: ["string"],
|
101386
|
+
label: function label15() {
|
101387
|
+
return i18n.t(localeKeys.bff.bffType.self);
|
101388
|
+
},
|
101389
|
+
mutualExclusion: true,
|
101390
|
+
items: Object.values(BFFType).map(function(bffType) {
|
101391
|
+
return {
|
101392
|
+
key: bffType,
|
101393
|
+
label: function label21() {
|
101394
|
+
return i18n.t(localeKeys.bff.bffType[bffType]);
|
101395
|
+
}
|
101396
|
+
};
|
101397
|
+
})
|
101398
|
+
};
|
101399
|
+
BFFSchemas = [BFFTypeSchema, FrameworkSchema];
|
101400
|
+
BFFSchema = {
|
101401
|
+
key: "bff",
|
101402
|
+
label: function label16() {
|
101403
|
+
return i18n.t(localeKeys.action["function"].bff);
|
101404
|
+
},
|
101405
|
+
isObject: true,
|
101406
|
+
items: BFFSchemas
|
101407
|
+
};
|
101408
|
+
MWADefaultBffConfig = {
|
101409
|
+
bffType: BFFType.Func,
|
101410
|
+
frameWork: Framework.Express
|
101411
|
+
};
|
101412
|
+
});
|
101413
|
+
var MWASchemas, MWASchema, MWADefaultConfig;
|
101414
|
+
var init_project4 = __esmMin(() => {
|
101415
|
+
init_common();
|
101416
|
+
init_common2();
|
101417
|
+
MWASchemas = [PackageNameSchema, PackagePathSchema, LanguageSchema, PackageManagerSchema, RunWaySchema, NeedModifyMWAConfigSchema, ClientRouteSchema];
|
101418
|
+
MWASchema = {
|
101419
|
+
key: "mwa",
|
101420
|
+
isObject: true,
|
101421
|
+
items: MWASchemas
|
101422
|
+
};
|
101423
|
+
MWADefaultConfig = {
|
101424
|
+
language: Language.TS,
|
101425
|
+
packageManager: PackageManager.Pnpm,
|
101426
|
+
runWay: RunWay.No,
|
101427
|
+
needModifyMWAConfig: BooleanConfig.NO,
|
101428
|
+
clientRoute: ClientRoute.SelfControlRoute
|
101429
|
+
};
|
101430
|
+
});
|
101431
|
+
var ServerSchemas, ServerSchema, MWADefaultServerConfig;
|
101432
|
+
var init_server = __esmMin(() => {
|
101433
|
+
init_locale();
|
101434
|
+
init_common2();
|
101435
|
+
ServerSchemas = [FrameworkSchema];
|
101436
|
+
ServerSchema = {
|
101437
|
+
key: "server",
|
101438
|
+
label: function label17() {
|
101439
|
+
return i18n.t(localeKeys.action.element.server);
|
101440
|
+
},
|
101441
|
+
isObject: true,
|
101442
|
+
items: ServerSchemas
|
101443
|
+
};
|
101444
|
+
MWADefaultServerConfig = {
|
101445
|
+
framework: Framework.Express
|
101446
|
+
};
|
101447
|
+
});
|
101448
|
+
var init_mwa = __esmMin(() => {
|
101449
|
+
init_common2();
|
101450
|
+
init_entry();
|
101451
|
+
init_bff();
|
101452
|
+
init_project4();
|
101453
|
+
init_server();
|
101454
|
+
});
|
101455
|
+
var _ActionTypeText, _ActionElementText, _ActionFunctionText, _ActionTypeTextMap, ActionType, ActionElement, ActionFunction, ActionRefactor, ActionTypeText, ActionElementText, ActionFunctionText, ActionRefactorText, ActionTypeTextMap;
|
101456
|
+
var init_common3 = __esmMin(() => {
|
101457
|
+
init_defineProperty();
|
101458
|
+
init_locale();
|
101459
|
+
(function(ActionType2) {
|
101460
|
+
ActionType2["Function"] = "function";
|
101461
|
+
ActionType2["Element"] = "element";
|
101462
|
+
ActionType2["Refactor"] = "refactor";
|
101463
|
+
})(ActionType || (ActionType = {}));
|
101464
|
+
(function(ActionElement2) {
|
101465
|
+
ActionElement2["Entry"] = "entry";
|
101466
|
+
ActionElement2["Server"] = "server";
|
101467
|
+
})(ActionElement || (ActionElement = {}));
|
101468
|
+
(function(ActionFunction2) {
|
101469
|
+
ActionFunction2["TailwindCSS"] = "tailwindcss";
|
101470
|
+
ActionFunction2["Less"] = "less";
|
101471
|
+
ActionFunction2["Sass"] = "sass";
|
101472
|
+
ActionFunction2["BFF"] = "bff";
|
101473
|
+
ActionFunction2["MicroFrontend"] = "micro_frontend";
|
101474
|
+
ActionFunction2["Electron"] = "electron";
|
101475
|
+
ActionFunction2["I18n"] = "i18n";
|
101476
|
+
ActionFunction2["Test"] = "test";
|
101477
|
+
ActionFunction2["E2ETest"] = "e2e_test";
|
101478
|
+
ActionFunction2["Doc"] = "doc";
|
101479
|
+
ActionFunction2["Storybook"] = "storybook";
|
101480
|
+
ActionFunction2["RuntimeApi"] = "runtimeApi";
|
101481
|
+
ActionFunction2["SSG"] = "ssg";
|
101482
|
+
ActionFunction2["Polyfill"] = "polyfill";
|
101483
|
+
ActionFunction2["Proxy"] = "proxy";
|
101484
|
+
})(ActionFunction || (ActionFunction = {}));
|
101485
|
+
(function(ActionRefactor2) {
|
101486
|
+
ActionRefactor2["BFFToApp"] = "bff_to_app";
|
101487
|
+
})(ActionRefactor || (ActionRefactor = {}));
|
101488
|
+
ActionTypeText = (_ActionTypeText = {}, _defineProperty(_ActionTypeText, ActionType.Function, function() {
|
101489
|
+
return i18n.t(localeKeys.action["function"].self);
|
101490
|
+
}), _defineProperty(_ActionTypeText, ActionType.Element, function() {
|
101491
|
+
return i18n.t(localeKeys.action.element.self);
|
101492
|
+
}), _defineProperty(_ActionTypeText, ActionType.Refactor, function() {
|
101493
|
+
return i18n.t(localeKeys.action.refactor.self);
|
101494
|
+
}), _ActionTypeText);
|
101495
|
+
ActionElementText = (_ActionElementText = {}, _defineProperty(_ActionElementText, ActionElement.Entry, function() {
|
101496
|
+
return i18n.t(localeKeys.action.element.entry);
|
101497
|
+
}), _defineProperty(_ActionElementText, ActionElement.Server, function() {
|
101498
|
+
return i18n.t(localeKeys.action.element.server);
|
101499
|
+
}), _ActionElementText);
|
101500
|
+
ActionFunctionText = (_ActionFunctionText = {}, _defineProperty(_ActionFunctionText, ActionFunction.TailwindCSS, function() {
|
101501
|
+
return i18n.t(localeKeys.action["function"].tailwindcss);
|
101502
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Less, function() {
|
101503
|
+
return i18n.t(localeKeys.action["function"].less);
|
101504
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Sass, function() {
|
101505
|
+
return i18n.t(localeKeys.action["function"].sass);
|
101506
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.BFF, function() {
|
101507
|
+
return i18n.t(localeKeys.action["function"].bff);
|
101508
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.MicroFrontend, function() {
|
101509
|
+
return i18n.t(localeKeys.action["function"].micro_frontend);
|
101510
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Electron, function() {
|
101511
|
+
return i18n.t(localeKeys.action["function"].electron);
|
101512
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.I18n, function() {
|
101513
|
+
return i18n.t(localeKeys.action["function"].i18n);
|
101514
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Test, function() {
|
101515
|
+
return i18n.t(localeKeys.action["function"].test);
|
101516
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.E2ETest, function() {
|
101517
|
+
return i18n.t(localeKeys.action["function"].e2e_test);
|
101518
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Doc, function() {
|
101519
|
+
return i18n.t(localeKeys.action["function"].doc);
|
101520
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Storybook, function() {
|
101521
|
+
return i18n.t(localeKeys.action["function"].storybook);
|
101522
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.RuntimeApi, function() {
|
101523
|
+
return i18n.t(localeKeys.action["function"].runtime_api);
|
101524
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.SSG, function() {
|
101525
|
+
return i18n.t(localeKeys.action["function"].ssg);
|
101526
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Polyfill, function() {
|
101527
|
+
return i18n.t(localeKeys.action["function"].polyfill);
|
101528
|
+
}), _defineProperty(_ActionFunctionText, ActionFunction.Proxy, function() {
|
101529
|
+
return i18n.t(localeKeys.action["function"].proxy);
|
101530
|
+
}), _ActionFunctionText);
|
101531
|
+
ActionRefactorText = _defineProperty({}, ActionRefactor.BFFToApp, function() {
|
101532
|
+
return i18n.t(localeKeys.action.refactor.bff_to_app);
|
101533
|
+
});
|
101534
|
+
ActionTypeTextMap = (_ActionTypeTextMap = {}, _defineProperty(_ActionTypeTextMap, ActionType.Element, ActionElementText), _defineProperty(_ActionTypeTextMap, ActionType.Function, ActionFunctionText), _defineProperty(_ActionTypeTextMap, ActionType.Refactor, ActionRefactorText), _ActionTypeTextMap);
|
101535
|
+
});
|
101536
|
+
var _MWAActionTypesMap, _MWAActionFunctionsDe, _MWAActionFunctionsDe2, _ActionType$Element, _ActionType$Function, _MWANewActionGenerato, MWAActionTypes, MWAActionFunctions, MWAActionElements, MWAActionReactors, MWAActionTypesMap, MWASpecialSchemaMap, MWANewActionSchema, MWAActionFunctionsDevDependencies, MWAActionFunctionsDependencies, MWAActionFunctionsAppendTypeContent, MWANewActionGenerators;
|
101537
|
+
var init_mwa2 = __esmMin(() => {
|
101538
|
+
init_defineProperty();
|
101539
|
+
init_common3();
|
101540
|
+
init_locale();
|
101541
|
+
MWAActionTypes = [
|
101542
|
+
ActionType.Element,
|
101543
|
+
ActionType.Function
|
101544
|
+
];
|
101545
|
+
MWAActionFunctions = [
|
101546
|
+
ActionFunction.TailwindCSS,
|
101547
|
+
ActionFunction.Less,
|
101548
|
+
ActionFunction.Sass,
|
101549
|
+
ActionFunction.BFF,
|
101550
|
+
ActionFunction.SSG,
|
101551
|
+
ActionFunction.MicroFrontend,
|
101552
|
+
ActionFunction.Electron,
|
101553
|
+
ActionFunction.Test,
|
101554
|
+
ActionFunction.Storybook,
|
101555
|
+
ActionFunction.Polyfill,
|
101556
|
+
ActionFunction.Proxy
|
101557
|
+
];
|
101558
|
+
MWAActionElements = [ActionElement.Entry, ActionElement.Server];
|
101559
|
+
MWAActionReactors = [ActionRefactor.BFFToApp];
|
101560
|
+
MWAActionTypesMap = (_MWAActionTypesMap = {}, _defineProperty(_MWAActionTypesMap, ActionType.Element, MWAActionElements), _defineProperty(_MWAActionTypesMap, ActionType.Function, MWAActionFunctions), _defineProperty(_MWAActionTypesMap, ActionType.Refactor, MWAActionReactors), _MWAActionTypesMap);
|
101561
|
+
MWASpecialSchemaMap = _defineProperty({}, ActionFunction.Storybook, {
|
101562
|
+
key: ActionFunction.Storybook,
|
101563
|
+
label: function label18() {
|
101564
|
+
return i18n.t(localeKeys.action["function"].mwa_storybook);
|
101565
|
+
}
|
101566
|
+
});
|
101567
|
+
MWANewActionSchema = {
|
101568
|
+
key: "mwa_new_action",
|
101569
|
+
isObject: true,
|
101570
|
+
items: [{
|
101571
|
+
key: "actionType",
|
101572
|
+
label: function label19() {
|
101573
|
+
return i18n.t(localeKeys.action.self);
|
101574
|
+
},
|
101575
|
+
type: ["string"],
|
101576
|
+
mutualExclusion: true,
|
101577
|
+
items: MWAActionTypes.map(function(type) {
|
101578
|
+
return {
|
101579
|
+
key: type,
|
101580
|
+
label: ActionTypeText[type],
|
101581
|
+
type: ["string"],
|
101582
|
+
mutualExclusion: true,
|
101583
|
+
items: MWAActionTypesMap[type].map(function(item) {
|
101584
|
+
return MWASpecialSchemaMap[item] || {
|
101585
|
+
key: item,
|
101586
|
+
label: ActionTypeTextMap[type][item]
|
101587
|
+
};
|
101588
|
+
})
|
101589
|
+
};
|
101590
|
+
})
|
101591
|
+
}]
|
101592
|
+
};
|
101593
|
+
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);
|
101594
|
+
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);
|
101595
|
+
MWAActionFunctionsAppendTypeContent = _defineProperty({}, ActionFunction.MicroFrontend, "/// <reference types='@modern-js/plugin-garfish/types' />");
|
101596
|
+
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);
|
101597
|
+
});
|
101598
|
+
var _ModuleActionFunction, _ModuleActionFunction2, _ModuleActionFunction3, _ActionType$Function2, ModuleActionTypes, ModuleActionFunctions, ModuleActionTypesMap, ModuleSpecialSchemaMap, ModuleNewActionSchema, ModuleActionFunctionsDevDependencies, ModuleActionFunctionsPeerDependencies, ModuleActionFunctionsDependencies, ModuleNewActionGenerators;
|
101599
|
+
var init_module2 = __esmMin(() => {
|
101600
|
+
init_defineProperty();
|
101601
|
+
init_common3();
|
101602
|
+
init_locale();
|
101603
|
+
ModuleActionTypes = [ActionType.Function];
|
101604
|
+
ModuleActionFunctions = [
|
101605
|
+
ActionFunction.TailwindCSS,
|
101606
|
+
ActionFunction.Less,
|
101607
|
+
ActionFunction.Sass,
|
101608
|
+
ActionFunction.Storybook,
|
101609
|
+
ActionFunction.RuntimeApi
|
101610
|
+
];
|
101611
|
+
ModuleActionTypesMap = _defineProperty({}, ActionType.Function, ModuleActionFunctions);
|
101612
|
+
ModuleSpecialSchemaMap = {};
|
101613
|
+
ModuleNewActionSchema = {
|
101614
|
+
key: "Module_new_action",
|
101615
|
+
isObject: true,
|
101616
|
+
items: [{
|
101617
|
+
key: "actionType",
|
101618
|
+
label: function label20() {
|
101619
|
+
return i18n.t(localeKeys.action.self);
|
101620
|
+
},
|
101621
|
+
type: ["string"],
|
101622
|
+
mutualExclusion: true,
|
101623
|
+
items: ModuleActionTypes.map(function(type) {
|
101624
|
+
return {
|
101625
|
+
key: type,
|
101626
|
+
label: ActionTypeText[type],
|
101627
|
+
type: ["string"],
|
101628
|
+
mutualExclusion: true,
|
101629
|
+
items: ModuleActionFunctions.map(function(func) {
|
101630
|
+
return ModuleSpecialSchemaMap[func] || {
|
101631
|
+
key: func,
|
101632
|
+
label: ActionFunctionText[func]
|
101633
|
+
};
|
101634
|
+
})
|
101635
|
+
};
|
101636
|
+
})
|
101637
|
+
}]
|
101638
|
+
};
|
101639
|
+
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);
|
101640
|
+
ModuleActionFunctionsPeerDependencies = (_ModuleActionFunction2 = {}, _defineProperty(_ModuleActionFunction2, ActionFunction.RuntimeApi, "@modern-js/runtime"), _defineProperty(_ModuleActionFunction2, ActionFunction.TailwindCSS, "tailwindcss"), _ModuleActionFunction2);
|
101641
|
+
ModuleActionFunctionsDependencies = (_ModuleActionFunction3 = {}, _defineProperty(_ModuleActionFunction3, ActionFunction.I18n, "@modern-js/plugin-i18n"), _defineProperty(_ModuleActionFunction3, ActionFunction.TailwindCSS, "@modern-js/plugin-tailwindcss"), _ModuleActionFunction3);
|
101642
|
+
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));
|
101643
|
+
});
|
101644
|
+
var _MonorepoNewActionCon, MonorepoNewActionSchema, MonorepoNewActionConfig;
|
101645
|
+
var init_monorepo2 = __esmMin(() => {
|
101646
|
+
init_defineProperty();
|
101647
|
+
init_common();
|
101648
|
+
MonorepoNewActionSchema = {
|
101649
|
+
key: "monorepo_new_action",
|
101650
|
+
isObject: true,
|
101651
|
+
items: [SubSolutionSchema]
|
101652
|
+
};
|
101653
|
+
MonorepoNewActionConfig = (_MonorepoNewActionCon = {}, _defineProperty(_MonorepoNewActionCon, SubSolution.MWA, {
|
101654
|
+
isMonorepoSubProject: true,
|
101655
|
+
isTest: false
|
101656
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.MWATest, {
|
101657
|
+
isMonorepoSubProject: true,
|
101658
|
+
isTest: true
|
101659
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.Module, {
|
101660
|
+
isMonorepoSubProject: true,
|
101661
|
+
isPublic: true
|
101662
|
+
}), _defineProperty(_MonorepoNewActionCon, SubSolution.InnerModule, {
|
101663
|
+
isMonorepoSubProject: true,
|
101664
|
+
isPublic: false
|
101665
|
+
}), _MonorepoNewActionCon);
|
101666
|
+
});
|
101667
|
+
var init_newAction = __esmMin(() => {
|
101668
|
+
init_common3();
|
101669
|
+
init_mwa2();
|
101670
|
+
init_module2();
|
101671
|
+
init_monorepo2();
|
101672
|
+
});
|
101673
|
+
var GeneratorSchemas, GeneratorSchema, GeneratorDefaultConfig;
|
101674
|
+
var init_generator = __esmMin(() => {
|
101675
|
+
init_common();
|
101676
|
+
GeneratorSchemas = [PackageNameSchema, PackagePathSchema, PackageManagerSchema, LanguageSchema];
|
101677
|
+
GeneratorSchema = {
|
101678
|
+
key: "generator-generator",
|
101679
|
+
isObject: true,
|
101680
|
+
items: Object.values(GeneratorSchemas)
|
101681
|
+
};
|
101682
|
+
GeneratorDefaultConfig = {
|
101683
|
+
packageManager: PackageManager.Pnpm,
|
101684
|
+
language: Language.TS
|
101685
|
+
};
|
101686
|
+
});
|
101687
|
+
var init_expand = __esmMin(() => {
|
101688
|
+
init_generator();
|
101689
|
+
});
|
101690
|
+
var treeshaking_exports4 = {};
|
101691
|
+
__export2(treeshaking_exports4, {
|
101692
|
+
ActionElement: () => ActionElement,
|
101693
|
+
ActionElementText: () => ActionElementText,
|
101694
|
+
ActionFunction: () => ActionFunction,
|
101695
|
+
ActionFunctionText: () => ActionFunctionText,
|
101696
|
+
ActionRefactor: () => ActionRefactor,
|
101697
|
+
ActionRefactorText: () => ActionRefactorText,
|
101698
|
+
ActionType: () => ActionType,
|
101699
|
+
ActionTypeText: () => ActionTypeText,
|
101700
|
+
ActionTypeTextMap: () => ActionTypeTextMap,
|
101701
|
+
BFFSchema: () => BFFSchema,
|
101702
|
+
BFFSchemas: () => BFFSchemas,
|
101703
|
+
BFFType: () => BFFType,
|
101704
|
+
BFFTypeSchema: () => BFFTypeSchema,
|
101705
|
+
BaseDefaultConfig: () => BaseDefaultConfig,
|
101706
|
+
BaseGenerator: () => BaseGenerator,
|
101707
|
+
BaseSchema: () => BaseSchema,
|
101708
|
+
BaseSchemas: () => BaseSchemas,
|
101709
|
+
BooleanConfig: () => BooleanConfig,
|
101710
|
+
BooleanConfigName: () => BooleanConfigName,
|
101711
|
+
BooleanSchemas: () => BooleanSchemas,
|
101712
|
+
ChangesetGenerator: () => ChangesetGenerator,
|
101713
|
+
ClientRoute: () => ClientRoute,
|
101714
|
+
ClientRouteSchema: () => ClientRouteSchema,
|
101715
|
+
DependenceGenerator: () => DependenceGenerator,
|
101716
|
+
ElectronGenerator: () => ElectronGenerator,
|
101717
|
+
EntryGenerator: () => EntryGenerator,
|
101718
|
+
EntrySchema: () => EntrySchema,
|
101719
|
+
EntrySchemas: () => EntrySchemas,
|
101720
|
+
EslintGenerator: () => EslintGenerator,
|
101721
|
+
Framework: () => Framework,
|
101722
|
+
FrameworkAppendTypeContent: () => FrameworkAppendTypeContent,
|
101723
|
+
FrameworkSchema: () => FrameworkSchema,
|
101724
|
+
GeneratorDefaultConfig: () => GeneratorDefaultConfig,
|
101725
|
+
GeneratorSchema: () => GeneratorSchema,
|
101726
|
+
Language: () => Language,
|
101727
|
+
LanguageName: () => LanguageName,
|
101728
|
+
LanguageSchema: () => LanguageSchema,
|
101729
|
+
MWAActionElements: () => MWAActionElements,
|
101730
|
+
MWAActionFunctions: () => MWAActionFunctions,
|
101731
|
+
MWAActionFunctionsAppendTypeContent: () => MWAActionFunctionsAppendTypeContent,
|
101732
|
+
MWAActionFunctionsDependencies: () => MWAActionFunctionsDependencies,
|
101733
|
+
MWAActionFunctionsDevDependencies: () => MWAActionFunctionsDevDependencies,
|
101734
|
+
MWAActionReactors: () => MWAActionReactors,
|
101735
|
+
MWAActionTypes: () => MWAActionTypes,
|
101736
|
+
MWAActionTypesMap: () => MWAActionTypesMap,
|
101737
|
+
MWADefaultBffConfig: () => MWADefaultBffConfig,
|
101738
|
+
MWADefaultConfig: () => MWADefaultConfig,
|
101739
|
+
MWADefaultEntryConfig: () => MWADefaultEntryConfig,
|
101740
|
+
MWADefaultServerConfig: () => MWADefaultServerConfig,
|
101741
|
+
MWANewActionGenerators: () => MWANewActionGenerators,
|
101742
|
+
MWANewActionSchema: () => MWANewActionSchema,
|
101743
|
+
MWASchema: () => MWASchema,
|
101744
|
+
MWASchemas: () => MWASchemas,
|
101745
|
+
MWASpecialSchemaMap: () => MWASpecialSchemaMap,
|
101746
|
+
ModuleActionFunctions: () => ModuleActionFunctions,
|
101747
|
+
ModuleActionFunctionsDependencies: () => ModuleActionFunctionsDependencies,
|
101748
|
+
ModuleActionFunctionsDevDependencies: () => ModuleActionFunctionsDevDependencies,
|
101749
|
+
ModuleActionFunctionsPeerDependencies: () => ModuleActionFunctionsPeerDependencies,
|
101750
|
+
ModuleActionTypes: () => ModuleActionTypes,
|
101751
|
+
ModuleActionTypesMap: () => ModuleActionTypesMap,
|
101752
|
+
ModuleDefaultConfig: () => ModuleDefaultConfig,
|
101753
|
+
ModuleNewActionGenerators: () => ModuleNewActionGenerators,
|
101754
|
+
ModuleNewActionSchema: () => ModuleNewActionSchema,
|
101755
|
+
ModuleSchema: () => ModuleSchema,
|
101756
|
+
ModuleSchemas: () => ModuleSchemas,
|
101757
|
+
ModuleSpecialSchemaMap: () => ModuleSpecialSchemaMap,
|
101758
|
+
MonorepoDefaultConfig: () => MonorepoDefaultConfig,
|
101759
|
+
MonorepoNewActionConfig: () => MonorepoNewActionConfig,
|
101760
|
+
MonorepoNewActionSchema: () => MonorepoNewActionSchema,
|
101761
|
+
MonorepoSchema: () => MonorepoSchema,
|
101762
|
+
MonorepoSchemas: () => MonorepoSchemas,
|
101763
|
+
NeedModifyMWAConfigSchema: () => NeedModifyMWAConfigSchema,
|
101764
|
+
PackageManager: () => PackageManager,
|
101765
|
+
PackageManagerName: () => PackageManagerName,
|
101766
|
+
PackageManagerSchema: () => PackageManagerSchema,
|
101767
|
+
PackageNameSchema: () => PackageNameSchema,
|
101768
|
+
PackagePathSchema: () => PackagePathSchema,
|
101769
|
+
RunWay: () => RunWay,
|
101770
|
+
RunWaySchema: () => RunWaySchema,
|
101771
|
+
ServerSchema: () => ServerSchema,
|
101772
|
+
ServerSchemas: () => ServerSchemas,
|
101773
|
+
Solution: () => Solution,
|
101774
|
+
SolutionDefaultConfig: () => SolutionDefaultConfig,
|
101775
|
+
SolutionGenerator: () => SolutionGenerator,
|
101776
|
+
SolutionSchema: () => SolutionSchema,
|
101777
|
+
SolutionSchemas: () => SolutionSchemas,
|
101778
|
+
SolutionText: () => SolutionText,
|
101779
|
+
SolutionToolsMap: () => SolutionToolsMap,
|
101780
|
+
SubSolution: () => SubSolution,
|
101781
|
+
SubSolutionGenerator: () => SubSolutionGenerator,
|
101782
|
+
SubSolutionSchema: () => SubSolutionSchema,
|
101783
|
+
SubSolutionText: () => SubSolutionText,
|
101784
|
+
getSolutionNameFromSubSolution: () => getSolutionNameFromSubSolution,
|
101785
|
+
i18n: () => i18n,
|
101786
|
+
localeKeys: () => localeKeys,
|
101787
|
+
mwaConfigWhenFunc: () => mwaConfigWhenFunc
|
101788
|
+
});
|
101789
|
+
var _SolutionDefaultConfi, _SolutionSchemas, SolutionDefaultConfig, SolutionSchemas;
|
101790
|
+
var init_treeshaking4 = __esmMin(() => {
|
101791
|
+
init_defineProperty();
|
101792
|
+
init_base();
|
101793
|
+
init_common();
|
101794
|
+
init_module();
|
101795
|
+
init_monorepo();
|
101796
|
+
init_mwa();
|
101797
|
+
init_locale();
|
101798
|
+
init_common();
|
101799
|
+
init_newAction();
|
101800
|
+
init_mwa();
|
101801
|
+
init_module();
|
101802
|
+
init_monorepo();
|
101803
|
+
init_expand();
|
101804
|
+
init_base();
|
101805
|
+
SolutionDefaultConfig = (_SolutionDefaultConfi = {}, _defineProperty(_SolutionDefaultConfi, Solution.MWA, MWADefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Module, ModuleDefaultConfig), _defineProperty(_SolutionDefaultConfi, Solution.Monorepo, MonorepoDefaultConfig), _SolutionDefaultConfi);
|
101806
|
+
SolutionSchemas = (_SolutionSchemas = {}, _defineProperty(_SolutionSchemas, Solution.MWA, MWASchemas), _defineProperty(_SolutionSchemas, Solution.Module, ModuleSchemas), _defineProperty(_SolutionSchemas, Solution.Monorepo, MonorepoSchemas), _defineProperty(_SolutionSchemas, "custom", BaseSchemas), _SolutionSchemas);
|
101807
|
+
});
|
100630
101808
|
var require_import_lazy2 = __commonJSMin((exports, module2) => {
|
100631
101809
|
(() => {
|
100632
101810
|
"use strict";
|
@@ -105954,7 +107132,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
105954
107132
|
if (typeof Symbol === "function") {
|
105955
107133
|
Readable.prototype[Symbol.asyncIterator] = function() {
|
105956
107134
|
if (S === void 0) {
|
105957
|
-
S = r2(
|
107135
|
+
S = r2(87);
|
105958
107136
|
}
|
105959
107137
|
return S(this);
|
105960
107138
|
};
|
@@ -106579,7 +107757,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
106579
107757
|
Writable.prototype._destroy = function(e3, t3) {
|
106580
107758
|
t3(e3);
|
106581
107759
|
};
|
106582
|
-
},
|
107760
|
+
}, 87: (e2, t2, r2) => {
|
106583
107761
|
"use strict";
|
106584
107762
|
var i;
|
106585
107763
|
function _defineProperty2(e3, t3, r3) {
|
@@ -107335,7 +108513,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
107335
108513
|
}, 598: (e2, t2, r2) => {
|
107336
108514
|
"use strict";
|
107337
108515
|
const i = r2(591);
|
107338
|
-
const n = r2(
|
108516
|
+
const n = r2(580);
|
107339
108517
|
e2.exports = i(() => {
|
107340
108518
|
n(() => {
|
107341
108519
|
process.stderr.write("\x1B[?25h");
|
@@ -107394,17 +108572,19 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
107394
108572
|
}
|
107395
108573
|
return i.SlowBuffer(e3);
|
107396
108574
|
};
|
107397
|
-
},
|
108575
|
+
}, 580: (e2, t2, r2) => {
|
107398
108576
|
var i = global.process;
|
107399
108577
|
const processOk = function(e3) {
|
107400
108578
|
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";
|
107401
108579
|
};
|
107402
108580
|
if (!processOk(i)) {
|
107403
108581
|
e2.exports = function() {
|
108582
|
+
return function() {
|
108583
|
+
};
|
107404
108584
|
};
|
107405
108585
|
} else {
|
107406
108586
|
var n = r2(491);
|
107407
|
-
var s = r2(
|
108587
|
+
var s = r2(357);
|
107408
108588
|
var a = /^win/i.test(i.platform);
|
107409
108589
|
var o = r2(361);
|
107410
108590
|
if (typeof o !== "function") {
|
@@ -107424,7 +108604,8 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
107424
108604
|
}
|
107425
108605
|
e2.exports = function(e3, t3) {
|
107426
108606
|
if (!processOk(global.process)) {
|
107427
|
-
return
|
108607
|
+
return function() {
|
108608
|
+
};
|
107428
108609
|
}
|
107429
108610
|
n.equal(typeof e3, "function", "a callback must be provided for exit handler");
|
107430
108611
|
if (d === false) {
|
@@ -107531,7 +108712,7 @@ var require_ora3 = __commonJSMin((exports, module2) => {
|
|
107531
108712
|
}
|
107532
108713
|
};
|
107533
108714
|
}
|
107534
|
-
},
|
108715
|
+
}, 357: (e2) => {
|
107535
108716
|
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
|
107536
108717
|
if (process.platform !== "win32") {
|
107537
108718
|
e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
@@ -108069,13 +109250,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
108069
109250
|
} else {
|
108070
109251
|
E = String(S);
|
108071
109252
|
if (k) {
|
108072
|
-
var
|
108073
|
-
if (
|
108074
|
-
var
|
109253
|
+
var x = g - E.length;
|
109254
|
+
if (x > 0) {
|
109255
|
+
var O = new Array(x + 1).join("0");
|
108075
109256
|
if (S < 0)
|
108076
|
-
E = "-" +
|
109257
|
+
E = "-" + O + E.slice(1);
|
108077
109258
|
else
|
108078
|
-
E =
|
109259
|
+
E = O + E;
|
108079
109260
|
}
|
108080
109261
|
}
|
108081
109262
|
}
|
@@ -108382,7 +109563,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
108382
109563
|
}
|
108383
109564
|
var i = r2(147);
|
108384
109565
|
var a = r2(17);
|
108385
|
-
var n = r2(
|
109566
|
+
var n = r2(235);
|
108386
109567
|
var s = r2(249);
|
108387
109568
|
var o = n.Minimatch;
|
108388
109569
|
function alphasort(t3, e3) {
|
@@ -108557,7 +109738,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
108557
109738
|
}, 978: (t2, e2, r2) => {
|
108558
109739
|
t2.exports = glob;
|
108559
109740
|
var i = r2(737);
|
108560
|
-
var a = r2(
|
109741
|
+
var a = r2(235);
|
108561
109742
|
var n = a.Minimatch;
|
108562
109743
|
var s = r2(315);
|
108563
109744
|
var o = r2(361).EventEmitter;
|
@@ -109106,7 +110287,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109106
110287
|
t2.exports = globSync;
|
109107
110288
|
globSync.GlobSync = GlobSync;
|
109108
110289
|
var i = r2(737);
|
109109
|
-
var a = r2(
|
110290
|
+
var a = r2(235);
|
109110
110291
|
var n = a.Minimatch;
|
109111
110292
|
var s = r2(978).Glob;
|
109112
110293
|
var o = r2(837);
|
@@ -109518,14 +110699,16 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109518
110699
|
}
|
109519
110700
|
};
|
109520
110701
|
}
|
109521
|
-
},
|
110702
|
+
}, 235: (t2, e2, r2) => {
|
109522
110703
|
t2.exports = minimatch;
|
109523
110704
|
minimatch.Minimatch = Minimatch;
|
109524
|
-
var i = {
|
109525
|
-
|
109526
|
-
|
109527
|
-
|
109528
|
-
|
110705
|
+
var i = function() {
|
110706
|
+
try {
|
110707
|
+
return r2(17);
|
110708
|
+
} catch (t3) {
|
110709
|
+
}
|
110710
|
+
}() || { sep: "/" };
|
110711
|
+
minimatch.sep = i.sep;
|
109529
110712
|
var a = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
109530
110713
|
var n = r2(847);
|
109531
110714
|
var s = { "!": { open: "(?:(?!(?:", close: "))[^/]*?)" }, "?": { open: "(?:", close: ")?" }, "+": { open: "(?:", close: ")+" }, "*": { open: "(?:", close: ")*" }, "@": { open: "(?:", close: ")" } };
|
@@ -109549,58 +110732,68 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109549
110732
|
};
|
109550
110733
|
}
|
109551
110734
|
function ext(t3, e3) {
|
109552
|
-
t3 = t3 || {};
|
109553
110735
|
e3 = e3 || {};
|
109554
110736
|
var r3 = {};
|
109555
|
-
Object.keys(e3).forEach(function(t4) {
|
109556
|
-
r3[t4] = e3[t4];
|
109557
|
-
});
|
109558
110737
|
Object.keys(t3).forEach(function(e4) {
|
109559
110738
|
r3[e4] = t3[e4];
|
109560
110739
|
});
|
110740
|
+
Object.keys(e3).forEach(function(t4) {
|
110741
|
+
r3[t4] = e3[t4];
|
110742
|
+
});
|
109561
110743
|
return r3;
|
109562
110744
|
}
|
109563
110745
|
minimatch.defaults = function(t3) {
|
109564
|
-
if (!t3 || !Object.keys(t3).length)
|
110746
|
+
if (!t3 || typeof t3 !== "object" || !Object.keys(t3).length) {
|
109565
110747
|
return minimatch;
|
110748
|
+
}
|
109566
110749
|
var e3 = minimatch;
|
109567
110750
|
var r3 = function minimatch2(r4, i2, a2) {
|
109568
|
-
return e3
|
110751
|
+
return e3(r4, i2, ext(t3, a2));
|
109569
110752
|
};
|
109570
110753
|
r3.Minimatch = function Minimatch2(r4, i2) {
|
109571
110754
|
return new e3.Minimatch(r4, ext(t3, i2));
|
109572
110755
|
};
|
110756
|
+
r3.Minimatch.defaults = function defaults(r4) {
|
110757
|
+
return e3.defaults(ext(t3, r4)).Minimatch;
|
110758
|
+
};
|
110759
|
+
r3.filter = function filter4(r4, i2) {
|
110760
|
+
return e3.filter(r4, ext(t3, i2));
|
110761
|
+
};
|
110762
|
+
r3.defaults = function defaults(r4) {
|
110763
|
+
return e3.defaults(ext(t3, r4));
|
110764
|
+
};
|
110765
|
+
r3.makeRe = function makeRe2(r4, i2) {
|
110766
|
+
return e3.makeRe(r4, ext(t3, i2));
|
110767
|
+
};
|
110768
|
+
r3.braceExpand = function braceExpand2(r4, i2) {
|
110769
|
+
return e3.braceExpand(r4, ext(t3, i2));
|
110770
|
+
};
|
110771
|
+
r3.match = function(r4, i2, a2) {
|
110772
|
+
return e3.match(r4, i2, ext(t3, a2));
|
110773
|
+
};
|
109573
110774
|
return r3;
|
109574
110775
|
};
|
109575
110776
|
Minimatch.defaults = function(t3) {
|
109576
|
-
if (!t3 || !Object.keys(t3).length)
|
109577
|
-
return Minimatch;
|
109578
110777
|
return minimatch.defaults(t3).Minimatch;
|
109579
110778
|
};
|
109580
110779
|
function minimatch(t3, e3, r3) {
|
109581
|
-
|
109582
|
-
throw new TypeError("glob pattern string required");
|
109583
|
-
}
|
110780
|
+
assertValidPattern(e3);
|
109584
110781
|
if (!r3)
|
109585
110782
|
r3 = {};
|
109586
110783
|
if (!r3.nocomment && e3.charAt(0) === "#") {
|
109587
110784
|
return false;
|
109588
110785
|
}
|
109589
|
-
if (e3.trim() === "")
|
109590
|
-
return t3 === "";
|
109591
110786
|
return new Minimatch(e3, r3).match(t3);
|
109592
110787
|
}
|
109593
110788
|
function Minimatch(t3, e3) {
|
109594
110789
|
if (!(this instanceof Minimatch)) {
|
109595
110790
|
return new Minimatch(t3, e3);
|
109596
110791
|
}
|
109597
|
-
|
109598
|
-
throw new TypeError("glob pattern string required");
|
109599
|
-
}
|
110792
|
+
assertValidPattern(t3);
|
109600
110793
|
if (!e3)
|
109601
110794
|
e3 = {};
|
109602
110795
|
t3 = t3.trim();
|
109603
|
-
if (i.sep !== "/") {
|
110796
|
+
if (!e3.allowWindowsEscape && i.sep !== "/") {
|
109604
110797
|
t3 = t3.split(i.sep).join("/");
|
109605
110798
|
}
|
109606
110799
|
this.options = e3;
|
@@ -109610,14 +110803,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109610
110803
|
this.negate = false;
|
109611
110804
|
this.comment = false;
|
109612
110805
|
this.empty = false;
|
110806
|
+
this.partial = !!e3.partial;
|
109613
110807
|
this.make();
|
109614
110808
|
}
|
109615
110809
|
Minimatch.prototype.debug = function() {
|
109616
110810
|
};
|
109617
110811
|
Minimatch.prototype.make = make;
|
109618
110812
|
function make() {
|
109619
|
-
if (this._made)
|
109620
|
-
return;
|
109621
110813
|
var t3 = this.pattern;
|
109622
110814
|
var e3 = this.options;
|
109623
110815
|
if (!e3.nocomment && t3.charAt(0) === "#") {
|
@@ -109631,7 +110823,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109631
110823
|
this.parseNegate();
|
109632
110824
|
var r3 = this.globSet = this.braceExpand();
|
109633
110825
|
if (e3.debug)
|
109634
|
-
this.debug =
|
110826
|
+
this.debug = function debug() {
|
110827
|
+
console.error.apply(console, arguments);
|
110828
|
+
};
|
109635
110829
|
this.debug(this.pattern, r3);
|
109636
110830
|
r3 = this.globParts = r3.map(function(t4) {
|
109637
110831
|
return t4.split(p);
|
@@ -109676,23 +110870,32 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109676
110870
|
}
|
109677
110871
|
}
|
109678
110872
|
t3 = typeof t3 === "undefined" ? this.pattern : t3;
|
109679
|
-
|
109680
|
-
|
109681
|
-
}
|
109682
|
-
if (e3.nobrace || !t3.match(/\{.*\}/)) {
|
110873
|
+
assertValidPattern(t3);
|
110874
|
+
if (e3.nobrace || !/\{(?:(?!\{).)*\}/.test(t3)) {
|
109683
110875
|
return [t3];
|
109684
110876
|
}
|
109685
110877
|
return n(t3);
|
109686
110878
|
}
|
109687
|
-
|
109688
|
-
var
|
109689
|
-
|
109690
|
-
|
110879
|
+
var v = 1024 * 64;
|
110880
|
+
var assertValidPattern = function(t3) {
|
110881
|
+
if (typeof t3 !== "string") {
|
110882
|
+
throw new TypeError("invalid pattern");
|
110883
|
+
}
|
110884
|
+
if (t3.length > v) {
|
109691
110885
|
throw new TypeError("pattern is too long");
|
109692
110886
|
}
|
110887
|
+
};
|
110888
|
+
Minimatch.prototype.parse = parse;
|
110889
|
+
var d = {};
|
110890
|
+
function parse(t3, e3) {
|
110891
|
+
assertValidPattern(t3);
|
109693
110892
|
var r3 = this.options;
|
109694
|
-
if (
|
109695
|
-
|
110893
|
+
if (t3 === "**") {
|
110894
|
+
if (!r3.noglobstar)
|
110895
|
+
return a;
|
110896
|
+
else
|
110897
|
+
t3 = "*";
|
110898
|
+
}
|
109696
110899
|
if (t3 === "")
|
109697
110900
|
return "";
|
109698
110901
|
var i2 = "";
|
@@ -109700,15 +110903,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109700
110903
|
var h2 = false;
|
109701
110904
|
var l2 = [];
|
109702
110905
|
var p2 = [];
|
109703
|
-
var
|
110906
|
+
var v2;
|
109704
110907
|
var m = false;
|
109705
110908
|
var b = -1;
|
109706
110909
|
var g = -1;
|
109707
110910
|
var y = t3.charAt(0) === "." ? "" : r3.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
|
109708
110911
|
var _ = this;
|
109709
110912
|
function clearStateChar() {
|
109710
|
-
if (
|
109711
|
-
switch (
|
110913
|
+
if (v2) {
|
110914
|
+
switch (v2) {
|
109712
110915
|
case "*":
|
109713
110916
|
i2 += c;
|
109714
110917
|
n2 = true;
|
@@ -109718,11 +110921,11 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109718
110921
|
n2 = true;
|
109719
110922
|
break;
|
109720
110923
|
default:
|
109721
|
-
i2 += "\\" +
|
110924
|
+
i2 += "\\" + v2;
|
109722
110925
|
break;
|
109723
110926
|
}
|
109724
|
-
_.debug("clearStateChar %j %j",
|
109725
|
-
|
110927
|
+
_.debug("clearStateChar %j %j", v2, i2);
|
110928
|
+
v2 = false;
|
109726
110929
|
}
|
109727
110930
|
}
|
109728
110931
|
for (var w = 0, k = t3.length, S; w < k && (S = t3.charAt(w)); w++) {
|
@@ -109733,8 +110936,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109733
110936
|
continue;
|
109734
110937
|
}
|
109735
110938
|
switch (S) {
|
109736
|
-
case "/":
|
110939
|
+
case "/": {
|
109737
110940
|
return false;
|
110941
|
+
}
|
109738
110942
|
case "\\":
|
109739
110943
|
clearStateChar();
|
109740
110944
|
h2 = true;
|
@@ -109752,9 +110956,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109752
110956
|
i2 += S;
|
109753
110957
|
continue;
|
109754
110958
|
}
|
109755
|
-
_.debug("call clearStateChar %j",
|
110959
|
+
_.debug("call clearStateChar %j", v2);
|
109756
110960
|
clearStateChar();
|
109757
|
-
|
110961
|
+
v2 = S;
|
109758
110962
|
if (r3.noext)
|
109759
110963
|
clearStateChar();
|
109760
110964
|
continue;
|
@@ -109763,14 +110967,14 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109763
110967
|
i2 += "(";
|
109764
110968
|
continue;
|
109765
110969
|
}
|
109766
|
-
if (!
|
110970
|
+
if (!v2) {
|
109767
110971
|
i2 += "\\(";
|
109768
110972
|
continue;
|
109769
110973
|
}
|
109770
|
-
l2.push({ type:
|
109771
|
-
i2 +=
|
109772
|
-
this.debug("plType %j %j",
|
109773
|
-
|
110974
|
+
l2.push({ type: v2, start: w - 1, reStart: i2.length, open: s[v2].open, close: s[v2].close });
|
110975
|
+
i2 += v2 === "!" ? "(?:(?!(?:" : "(?:";
|
110976
|
+
this.debug("plType %j %j", v2, i2);
|
110977
|
+
v2 = false;
|
109774
110978
|
continue;
|
109775
110979
|
case ")":
|
109776
110980
|
if (m || !l2.length) {
|
@@ -109812,17 +111016,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109812
111016
|
h2 = false;
|
109813
111017
|
continue;
|
109814
111018
|
}
|
109815
|
-
|
109816
|
-
|
109817
|
-
|
109818
|
-
|
109819
|
-
|
109820
|
-
|
109821
|
-
|
109822
|
-
|
109823
|
-
|
109824
|
-
continue;
|
109825
|
-
}
|
111019
|
+
var x = t3.substring(g + 1, w);
|
111020
|
+
try {
|
111021
|
+
RegExp("[" + x + "]");
|
111022
|
+
} catch (t4) {
|
111023
|
+
var O = this.parse(x, d);
|
111024
|
+
i2 = i2.substr(0, b) + "\\[" + O[0] + "\\]";
|
111025
|
+
n2 = n2 || O[1];
|
111026
|
+
m = false;
|
111027
|
+
continue;
|
109826
111028
|
}
|
109827
111029
|
n2 = true;
|
109828
111030
|
m = false;
|
@@ -109839,10 +111041,10 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109839
111041
|
}
|
109840
111042
|
}
|
109841
111043
|
if (m) {
|
109842
|
-
|
109843
|
-
|
109844
|
-
i2 = i2.substr(0, b) + "\\[" +
|
109845
|
-
n2 = n2 ||
|
111044
|
+
x = t3.substr(g + 1);
|
111045
|
+
O = this.parse(x, d);
|
111046
|
+
i2 = i2.substr(0, b) + "\\[" + O[0];
|
111047
|
+
n2 = n2 || O[1];
|
109846
111048
|
}
|
109847
111049
|
for (E = l2.pop(); E; E = l2.pop()) {
|
109848
111050
|
var A = i2.slice(E.reStart + E.open.length);
|
@@ -109864,29 +111066,29 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109864
111066
|
}
|
109865
111067
|
var j = false;
|
109866
111068
|
switch (i2.charAt(0)) {
|
109867
|
-
case ".":
|
109868
111069
|
case "[":
|
111070
|
+
case ".":
|
109869
111071
|
case "(":
|
109870
111072
|
j = true;
|
109871
111073
|
}
|
109872
|
-
for (var
|
109873
|
-
var
|
109874
|
-
var
|
109875
|
-
var
|
109876
|
-
var
|
109877
|
-
var
|
109878
|
-
|
109879
|
-
var
|
109880
|
-
var P =
|
109881
|
-
for (w = 0; w <
|
111074
|
+
for (var M = p2.length - 1; M > -1; M--) {
|
111075
|
+
var I = p2[M];
|
111076
|
+
var R = i2.slice(0, I.reStart);
|
111077
|
+
var C = i2.slice(I.reStart, I.reEnd - 8);
|
111078
|
+
var L = i2.slice(I.reEnd - 8, I.reEnd);
|
111079
|
+
var N = i2.slice(I.reEnd);
|
111080
|
+
L += N;
|
111081
|
+
var T = R.split("(").length - 1;
|
111082
|
+
var P = N;
|
111083
|
+
for (w = 0; w < T; w++) {
|
109882
111084
|
P = P.replace(/\)[+*?]?/, "");
|
109883
111085
|
}
|
109884
|
-
|
111086
|
+
N = P;
|
109885
111087
|
var D = "";
|
109886
|
-
if (
|
111088
|
+
if (N === "" && e3 !== d) {
|
109887
111089
|
D = "$";
|
109888
111090
|
}
|
109889
|
-
var $ =
|
111091
|
+
var $ = R + C + N + D + L;
|
109890
111092
|
i2 = $;
|
109891
111093
|
}
|
109892
111094
|
if (i2 !== "" && n2) {
|
@@ -109895,7 +111097,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109895
111097
|
if (j) {
|
109896
111098
|
i2 = y + i2;
|
109897
111099
|
}
|
109898
|
-
if (e3 ===
|
111100
|
+
if (e3 === d) {
|
109899
111101
|
return [i2, n2];
|
109900
111102
|
}
|
109901
111103
|
if (!n2) {
|
@@ -109903,13 +111105,13 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109903
111105
|
}
|
109904
111106
|
var F = r3.nocase ? "i" : "";
|
109905
111107
|
try {
|
109906
|
-
var
|
111108
|
+
var B = new RegExp("^" + i2 + "$", F);
|
109907
111109
|
} catch (t4) {
|
109908
111110
|
return new RegExp("$.");
|
109909
111111
|
}
|
109910
|
-
|
109911
|
-
|
109912
|
-
return
|
111112
|
+
B._glob = t3;
|
111113
|
+
B._src = i2;
|
111114
|
+
return B;
|
109913
111115
|
}
|
109914
111116
|
minimatch.makeRe = function(t3, e3) {
|
109915
111117
|
return new Minimatch(t3, e3 || {}).makeRe();
|
@@ -109952,8 +111154,9 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109952
111154
|
}
|
109953
111155
|
return t3;
|
109954
111156
|
};
|
109955
|
-
Minimatch.prototype.match = match
|
109956
|
-
|
111157
|
+
Minimatch.prototype.match = function match(t3, e3) {
|
111158
|
+
if (typeof e3 === "undefined")
|
111159
|
+
e3 = this.partial;
|
109957
111160
|
this.debug("match", t3, this.pattern);
|
109958
111161
|
if (this.comment)
|
109959
111162
|
return false;
|
@@ -109992,7 +111195,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
109992
111195
|
if (r3.flipNegate)
|
109993
111196
|
return false;
|
109994
111197
|
return this.negate;
|
109995
|
-
}
|
111198
|
+
};
|
109996
111199
|
Minimatch.prototype.matchOne = function(t3, e3, r3) {
|
109997
111200
|
var i2 = this.options;
|
109998
111201
|
this.debug("matchOne", { this: this, file: t3, pattern: e3 });
|
@@ -110038,19 +111241,15 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
110038
111241
|
}
|
110039
111242
|
return false;
|
110040
111243
|
}
|
110041
|
-
var
|
111244
|
+
var d2;
|
110042
111245
|
if (typeof h2 === "string") {
|
110043
|
-
|
110044
|
-
|
110045
|
-
} else {
|
110046
|
-
d = l2 === h2;
|
110047
|
-
}
|
110048
|
-
this.debug("string match", h2, l2, d);
|
111246
|
+
d2 = l2 === h2;
|
111247
|
+
this.debug("string match", h2, l2, d2);
|
110049
111248
|
} else {
|
110050
|
-
|
110051
|
-
this.debug("pattern match", h2, l2,
|
111249
|
+
d2 = l2.match(h2);
|
111250
|
+
this.debug("pattern match", h2, l2, d2);
|
110052
111251
|
}
|
110053
|
-
if (!
|
111252
|
+
if (!d2)
|
110054
111253
|
return false;
|
110055
111254
|
}
|
110056
111255
|
if (n2 === o2 && s2 === c2) {
|
@@ -110058,8 +111257,7 @@ var require_glob2 = __commonJSMin((exports, module2) => {
|
|
110058
111257
|
} else if (n2 === o2) {
|
110059
111258
|
return r3;
|
110060
111259
|
} else if (s2 === c2) {
|
110061
|
-
|
110062
|
-
return m;
|
111260
|
+
return n2 === o2 - 1 && t3[n2] === "";
|
110063
111261
|
}
|
110064
111262
|
throw new Error("wtf?");
|
110065
111263
|
};
|
@@ -113684,7 +114882,7 @@ ${o.message}` : x;
|
|
113684
114882
|
}, 878: (e2, t2, n2) => {
|
113685
114883
|
"use strict";
|
113686
114884
|
const r = n2(37);
|
113687
|
-
const o = n2(
|
114885
|
+
const o = n2(580);
|
113688
114886
|
const s = 1e3 * 5;
|
113689
114887
|
const spawnedKill = (e3, t3 = "SIGTERM", n3 = {}) => {
|
113690
114888
|
const r2 = e3(t3);
|
@@ -114307,17 +115505,19 @@ ${o.message}` : x;
|
|
114307
115505
|
}, 609: (e2) => {
|
114308
115506
|
"use strict";
|
114309
115507
|
e2.exports = /^#!(.*)/;
|
114310
|
-
},
|
115508
|
+
}, 580: (e2, t2, n2) => {
|
114311
115509
|
var r = global.process;
|
114312
115510
|
const processOk = function(e3) {
|
114313
115511
|
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";
|
114314
115512
|
};
|
114315
115513
|
if (!processOk(r)) {
|
114316
115514
|
e2.exports = function() {
|
115515
|
+
return function() {
|
115516
|
+
};
|
114317
115517
|
};
|
114318
115518
|
} else {
|
114319
115519
|
var o = n2(491);
|
114320
|
-
var s = n2(
|
115520
|
+
var s = n2(357);
|
114321
115521
|
var i = /^win/i.test(r.platform);
|
114322
115522
|
var a = n2(361);
|
114323
115523
|
if (typeof a !== "function") {
|
@@ -114337,7 +115537,8 @@ ${o.message}` : x;
|
|
114337
115537
|
}
|
114338
115538
|
e2.exports = function(e3, t3) {
|
114339
115539
|
if (!processOk(global.process)) {
|
114340
|
-
return
|
115540
|
+
return function() {
|
115541
|
+
};
|
114341
115542
|
}
|
114342
115543
|
o.equal(typeof e3, "function", "a callback must be provided for exit handler");
|
114343
115544
|
if (f === false) {
|
@@ -114444,7 +115645,7 @@ ${o.message}` : x;
|
|
114444
115645
|
}
|
114445
115646
|
};
|
114446
115647
|
}
|
114447
|
-
},
|
115648
|
+
}, 357: (e2) => {
|
114448
115649
|
e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
|
114449
115650
|
if (process.platform !== "win32") {
|
114450
115651
|
e2.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
@@ -120101,7 +121302,7 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
|
|
120101
121302
|
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;
|
120102
121303
|
const n = r2(1017);
|
120103
121304
|
const s = r2(5976);
|
120104
|
-
const i = r2(
|
121305
|
+
const i = r2(8627);
|
120105
121306
|
const o = "**";
|
120106
121307
|
const a = "\\";
|
120107
121308
|
const u = /[*?]|^!/;
|
@@ -120956,7 +122157,7 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
|
|
120956
122157
|
}
|
120957
122158
|
return t3;
|
120958
122159
|
}
|
120959
|
-
},
|
122160
|
+
}, 8627: (t2, e2, r2) => {
|
120960
122161
|
"use strict";
|
120961
122162
|
const n = r2(3837);
|
120962
122163
|
const s = r2(1570);
|
@@ -121019,9 +122220,9 @@ var require_fast_glob2 = __commonJSMin((exports, module2) => {
|
|
121019
122220
|
r3.onResult(t4);
|
121020
122221
|
s2.push(t4.output);
|
121021
122222
|
};
|
121022
|
-
let i2 = micromatch(t3, e3, { ...r3, onResult });
|
122223
|
+
let i2 = new Set(micromatch(t3, e3, { ...r3, onResult }));
|
121023
122224
|
for (let t4 of s2) {
|
121024
|
-
if (!i2.
|
122225
|
+
if (!i2.has(t4)) {
|
121025
122226
|
n2.add(t4);
|
121026
122227
|
}
|
121027
122228
|
}
|
@@ -125894,11 +127095,11 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
|
|
125894
127095
|
BrowserslistError.prototype = Error.prototype;
|
125895
127096
|
e2.exports = BrowserslistError;
|
125896
127097
|
}, 751: (e2, s2, r2) => {
|
125897
|
-
var n = r2(
|
127098
|
+
var n = r2(330);
|
125898
127099
|
var t = r2(768).agents;
|
125899
|
-
var a = r2(
|
127100
|
+
var a = r2(97);
|
125900
127101
|
var i = r2(17);
|
125901
|
-
var o = r2(
|
127102
|
+
var o = r2(333);
|
125902
127103
|
var l = r2(923);
|
125903
127104
|
var f = r2(347);
|
125904
127105
|
var u = 365.259641 * 24 * 60 * 60 * 1e3;
|
@@ -127047,8 +128248,8 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
|
|
127047
128248
|
}, currentNode: function currentNode() {
|
127048
128249
|
return "node " + process.versions.node;
|
127049
128250
|
} };
|
127050
|
-
},
|
127051
|
-
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" };
|
128251
|
+
}, 333: (e2) => {
|
128252
|
+
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" };
|
127052
128253
|
}, 174: (e2) => {
|
127053
128254
|
function webpackEmptyContext(e3) {
|
127054
128255
|
var s2 = new Error("Cannot find module '" + e3 + "'");
|
@@ -127074,12 +128275,12 @@ var require_browserslist2 = __commonJSMin((exports, module2) => {
|
|
127074
128275
|
}, 17: (e2) => {
|
127075
128276
|
"use strict";
|
127076
128277
|
e2.exports = __require("path");
|
127077
|
-
},
|
128278
|
+
}, 330: (e2) => {
|
127078
128279
|
"use strict";
|
127079
|
-
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}]');
|
127080
|
-
},
|
128280
|
+
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}]');
|
128281
|
+
}, 97: (e2) => {
|
127081
128282
|
"use strict";
|
127082
|
-
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":""}}');
|
128283
|
+
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":""}}');
|
127083
128284
|
} };
|
127084
128285
|
var s = {};
|
127085
128286
|
function __nccwpck_require__(r2) {
|
@@ -129647,7 +130848,7 @@ var require_compiled2 = __commonJSMin((exports) => {
|
|
129647
130848
|
var require_format2 = __commonJSMin((exports) => {
|
129648
130849
|
"use strict";
|
129649
130850
|
Object.defineProperty(exports, "__esModule", { value: true });
|
129650
|
-
exports.
|
130851
|
+
exports.formatWebpackMessages = void 0;
|
129651
130852
|
var friendlySyntaxErrorLabel = "SyntaxError:";
|
129652
130853
|
function isLikelyASyntaxError(message) {
|
129653
130854
|
return message.includes(friendlySyntaxErrorLabel);
|
@@ -129713,29 +130914,6 @@ ${stats.stack}` : "";
|
|
129713
130914
|
return result;
|
129714
130915
|
}
|
129715
130916
|
exports.formatWebpackMessages = formatWebpackMessages;
|
129716
|
-
function formatProxyOptions(proxyOptions) {
|
129717
|
-
const formattedProxy = [];
|
129718
|
-
if (!Array.isArray(proxyOptions)) {
|
129719
|
-
if ("target" in proxyOptions) {
|
129720
|
-
formattedProxy.push(proxyOptions);
|
129721
|
-
} else {
|
129722
|
-
Array.prototype.push.apply(formattedProxy, Object.keys(proxyOptions).reduce((total, source) => {
|
129723
|
-
const option = proxyOptions[source];
|
129724
|
-
total.push({
|
129725
|
-
context: source,
|
129726
|
-
changeOrigin: true,
|
129727
|
-
logLevel: "warn",
|
129728
|
-
...typeof option === "string" ? { target: option } : option
|
129729
|
-
});
|
129730
|
-
return total;
|
129731
|
-
}, []));
|
129732
|
-
}
|
129733
|
-
} else {
|
129734
|
-
formattedProxy.push(...proxyOptions);
|
129735
|
-
}
|
129736
|
-
return formattedProxy;
|
129737
|
-
}
|
129738
|
-
exports.formatProxyOptions = formatProxyOptions;
|
129739
130917
|
});
|
129740
130918
|
var require_logger4 = __commonJSMin((exports) => {
|
129741
130919
|
"use strict";
|
@@ -129813,17 +130991,17 @@ var require_logger4 = __commonJSMin((exports) => {
|
|
129813
130991
|
if (LOG_LEVEL[type] > LOG_LEVEL[this.level]) {
|
129814
130992
|
return;
|
129815
130993
|
}
|
129816
|
-
let
|
130994
|
+
let label21 = "";
|
129817
130995
|
let text = "";
|
129818
130996
|
const logType = this.types[type];
|
129819
130997
|
if (this.config.displayLabel && logType.label) {
|
129820
|
-
|
130998
|
+
label21 = this.config.uppercaseLabel ? logType.label.toUpperCase() : logType.label;
|
129821
130999
|
if (this.config.underlineLabel) {
|
129822
|
-
|
131000
|
+
label21 = underline(label21).padEnd(this.longestUnderlinedLabel.length + 1);
|
129823
131001
|
} else {
|
129824
|
-
|
131002
|
+
label21 = label21.padEnd(this.longestLabel.length + 1);
|
129825
131003
|
}
|
129826
|
-
|
131004
|
+
label21 = logType.color ? chalk_1.default[logType.color](label21) : label21;
|
129827
131005
|
}
|
129828
131006
|
if (message instanceof Error) {
|
129829
131007
|
if (message.stack) {
|
@@ -129839,15 +131017,15 @@ ${grey(rest.join("\n"))}`;
|
|
129839
131017
|
if (logType.level === "warn" || logType.level === "error") {
|
129840
131018
|
this.retainLog(type, text);
|
129841
131019
|
}
|
129842
|
-
const log =
|
131020
|
+
const log = label21.length > 0 ? `${label21} ${text}` : text;
|
129843
131021
|
console.log(log, ...args);
|
129844
131022
|
}
|
129845
131023
|
getLongestLabel() {
|
129846
131024
|
let longestLabel = "";
|
129847
131025
|
Object.keys(this.types).forEach((type) => {
|
129848
|
-
const { label:
|
129849
|
-
if (
|
129850
|
-
longestLabel =
|
131026
|
+
const { label: label21 = "" } = this.types[type];
|
131027
|
+
if (label21.length > longestLabel.length) {
|
131028
|
+
longestLabel = label21;
|
129851
131029
|
}
|
129852
131030
|
});
|
129853
131031
|
return longestLabel;
|
@@ -130203,7 +131381,7 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
130203
131381
|
"use strict";
|
130204
131382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
130205
131383
|
exports.PLUGIN_SCHEMAS = exports.INTERNAL_PLUGINS = exports.DEFAULT_SERVER_CONFIG = exports.OUTPUT_CONFIG_FILE = exports.CONFIG_FILE_EXTENSIONS = exports.CONFIG_CACHE_DIR = exports.SHARED_DIR = exports.SERVER_DIR = exports.API_DIR = exports.LOADABLE_STATS_FILE = exports.SERVER_RENDER_FUNCTION_NAME = exports.ENTRY_NAME_PATTERN = exports.SERVER_BUNDLE_DIRECTORY = exports.LAUNCH_EDITOR_ENDPOINT = exports.MAIN_ENTRY_NAME = exports.ROUTE_SPEC_FILE = exports.HMR_SOCK_PATH = void 0;
|
130206
|
-
exports.HMR_SOCK_PATH = "/
|
131384
|
+
exports.HMR_SOCK_PATH = "/webpack-hmr";
|
130207
131385
|
exports.ROUTE_SPEC_FILE = "route.json";
|
130208
131386
|
exports.MAIN_ENTRY_NAME = "main";
|
130209
131387
|
exports.LAUNCH_EDITOR_ENDPOINT = "/__open-stack-frame-in-editor";
|
@@ -130260,20 +131438,10 @@ var require_constants6 = __commonJSMin((exports) => {
|
|
130260
131438
|
cli: "@modern-js/plugin-garfish/cli"
|
130261
131439
|
},
|
130262
131440
|
"@modern-js/plugin-tailwindcss": { cli: "@modern-js/plugin-tailwindcss/cli" },
|
130263
|
-
"@modern-js/plugin-lambda-fc": { cli: "@modern-js/plugin-lambda-fc/cli" },
|
130264
|
-
"@modern-js/plugin-lambda-scf": { cli: "@modern-js/plugin-lambda-scf/cli" },
|
130265
|
-
"@modern-js/plugin-cdn-oss": { cli: "@modern-js/plugin-cdn-oss/cli" },
|
130266
|
-
"@modern-js/plugin-cdn-cos": { cli: "@modern-js/plugin-cdn-cos/cli" },
|
130267
|
-
"@modern-js/plugin-static-hosting": {
|
130268
|
-
cli: "@modern-js/plugin-static-hosting/cli"
|
130269
|
-
},
|
130270
131441
|
"@modern-js/plugin-polyfill": {
|
130271
131442
|
cli: "@modern-js/plugin-polyfill/cli",
|
130272
131443
|
server: "@modern-js/plugin-polyfill"
|
130273
131444
|
},
|
130274
|
-
"@modern-js/plugin-multiprocess": {
|
130275
|
-
cli: "@modern-js/plugin-multiprocess/cli"
|
130276
|
-
},
|
130277
131445
|
"@modern-js/plugin-nocode": { cli: "@modern-js/plugin-nocode/cli" }
|
130278
131446
|
};
|
130279
131447
|
exports.PLUGIN_SCHEMAS = {
|
@@ -130729,14 +131897,16 @@ var require_path2 = __commonJSMin((exports) => {
|
|
130729
131897
|
return mod && mod.__esModule ? mod : { "default": mod };
|
130730
131898
|
};
|
130731
131899
|
Object.defineProperty(exports, "__esModule", { value: true });
|
130732
|
-
exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = void 0;
|
131900
|
+
exports.normalizeToPosixPath = exports.normalizeOutputPath = exports.isRelativePath = exports.isPathString = void 0;
|
130733
131901
|
var path_1 = __importDefault(__require("path"));
|
130734
131902
|
var compiled_1 = require_compiled2();
|
131903
|
+
var isPathString = (test) => path_1.default.posix.basename(test) !== test || path_1.default.win32.basename(test) !== test;
|
131904
|
+
exports.isPathString = isPathString;
|
130735
131905
|
var isRelativePath = (test) => /^\.\.?($|[\\/])/.test(test);
|
130736
131906
|
exports.isRelativePath = isRelativePath;
|
130737
131907
|
var normalizeOutputPath = (s) => s.replace(/\\/g, "\\\\");
|
130738
131908
|
exports.normalizeOutputPath = normalizeOutputPath;
|
130739
|
-
var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || ""));
|
131909
|
+
var normalizeToPosixPath = (p) => compiled_1.upath.normalizeSafe(path_1.default.normalize(p || "")).replace(/^([a-zA-Z]+):/, (_, m) => `/${m.toLowerCase()}`);
|
130740
131910
|
exports.normalizeToPosixPath = normalizeToPosixPath;
|
130741
131911
|
});
|
130742
131912
|
var require_runtimeExports2 = __commonJSMin((exports) => {
|
@@ -130762,18 +131932,14 @@ var require_runtimeExports2 = __commonJSMin((exports) => {
|
|
130762
131932
|
return res;
|
130763
131933
|
};
|
130764
131934
|
};
|
130765
|
-
exports.createRuntimeExportsUtils = memo((pwd = "", namespace
|
130766
|
-
const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace
|
130767
|
-
const entryExportTsFile = path_1.default.join(pwd, `.runtime-exports/${namespace ? `${namespace}.d.ts` : "index.d.ts"}`);
|
131935
|
+
exports.createRuntimeExportsUtils = memo((pwd = "", namespace = "index") => {
|
131936
|
+
const entryExportFile = path_1.default.join(pwd, `.runtime-exports/${namespace}.js`);
|
130768
131937
|
const addExport = (statement) => {
|
130769
131938
|
statement = (0, path_2.normalizeOutputPath)(statement);
|
130770
131939
|
try {
|
130771
131940
|
compiled_1.fs.ensureFileSync(entryExportFile);
|
130772
|
-
compiled_1.fs.ensureFileSync(entryExportTsFile);
|
130773
131941
|
if (!compiled_1.fs.readFileSync(entryExportFile, "utf8").includes(statement)) {
|
130774
131942
|
compiled_1.fs.appendFileSync(entryExportFile, `${statement}
|
130775
|
-
`);
|
130776
|
-
ts && compiled_1.fs.appendFileSync(entryExportTsFile, `${statement.replace(".js", ".d")}
|
130777
131943
|
`);
|
130778
131944
|
}
|
130779
131945
|
} catch {
|
@@ -130849,7 +132015,7 @@ var require_prettyInstructions2 = __commonJSMin((exports) => {
|
|
130849
132015
|
return mod && mod.__esModule ? mod : { "default": mod };
|
130850
132016
|
};
|
130851
132017
|
Object.defineProperty(exports, "__esModule", { value: true });
|
130852
|
-
exports.prettyInstructions = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
|
132018
|
+
exports.prettyInstructions = exports.getAddressUrls = exports.getIpv4Interfaces = exports.isSingleEntry = void 0;
|
130853
132019
|
var os_1 = __importDefault(__require("os"));
|
130854
132020
|
var compiled_1 = require_compiled2();
|
130855
132021
|
var is_1 = require_is2();
|
@@ -130883,9 +132049,10 @@ var require_prettyInstructions2 = __commonJSMin((exports) => {
|
|
130883
132049
|
return memo;
|
130884
132050
|
}, []);
|
130885
132051
|
};
|
132052
|
+
exports.getAddressUrls = getAddressUrls;
|
130886
132053
|
var prettyInstructions = (appContext, config) => {
|
130887
132054
|
const { entrypoints, serverRoutes, port, apiOnly, checkedEntries } = appContext;
|
130888
|
-
const urls = getAddressUrls(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
|
132055
|
+
const urls = (0, exports.getAddressUrls)(config.dev.https && (0, is_1.isDev)() ? "https" : "http", port);
|
130889
132056
|
const routes = !apiOnly ? serverRoutes.filter((route) => route.entryName) : serverRoutes;
|
130890
132057
|
let message = "App running at:\n\n";
|
130891
132058
|
if ((0, exports.isSingleEntry)(entrypoints) || apiOnly) {
|
@@ -131262,8 +132429,8 @@ var require_analyzeProject2 = __commonJSMin((exports) => {
|
|
131262
132429
|
exports.isApiOnly = void 0;
|
131263
132430
|
var path2 = __importStar(__require("path"));
|
131264
132431
|
var compiled_1 = require_compiled2();
|
131265
|
-
var isApiOnly = async (appDirectory) => {
|
131266
|
-
const srcDir = path2.join(appDirectory, "src");
|
132432
|
+
var isApiOnly = async (appDirectory, entryDir) => {
|
132433
|
+
const srcDir = path2.join(appDirectory, entryDir !== null && entryDir !== void 0 ? entryDir : "src");
|
131267
132434
|
const existSrc = await compiled_1.fs.pathExists(srcDir);
|
131268
132435
|
const options3 = (0, compiled_1.minimist)(process.argv.slice(2));
|
131269
132436
|
return !existSrc || Boolean(options3["api-only"]);
|
@@ -131280,11 +132447,16 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
131280
132447
|
LOADERS: "loaders",
|
131281
132448
|
FONT: "font",
|
131282
132449
|
IMAGE: "image",
|
132450
|
+
MEDIA: "media",
|
131283
132451
|
JS: "js",
|
131284
132452
|
TS: "ts",
|
131285
132453
|
CSS: "css",
|
131286
132454
|
LESS: "less",
|
131287
|
-
SASS: "sass"
|
132455
|
+
SASS: "sass",
|
132456
|
+
SVG: "svg",
|
132457
|
+
PUG: "pug",
|
132458
|
+
TOML: "toml",
|
132459
|
+
YAML: "yaml"
|
131288
132460
|
},
|
131289
132461
|
ONE_OF: {
|
131290
132462
|
JS: "js",
|
@@ -131302,6 +132474,7 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
131302
132474
|
SASS_MODULES: "sass-modules",
|
131303
132475
|
SVG: "svg",
|
131304
132476
|
SVG_URL: "svg-url",
|
132477
|
+
SVG_ASSET: "svg-asset",
|
131305
132478
|
SVG_INLINE: "svg-inline",
|
131306
132479
|
ASSETS: "assets",
|
131307
132480
|
ASSETS_URL: "assets-url",
|
@@ -131313,12 +132486,14 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
131313
132486
|
SASS: "sass",
|
131314
132487
|
LESS: "less",
|
131315
132488
|
URL: "url",
|
132489
|
+
PUG: "pug",
|
131316
132490
|
FILE: "file",
|
131317
132491
|
SVGR: "svgr",
|
131318
132492
|
YAML: "yaml",
|
131319
132493
|
TOML: "toml",
|
131320
132494
|
HTML: "html",
|
131321
132495
|
BABEL: "babel",
|
132496
|
+
ESBUILD: "esbuild",
|
131322
132497
|
STYLE: "style-loader",
|
131323
132498
|
POSTCSS: "postcss",
|
131324
132499
|
MARKDOWN: "markdown",
|
@@ -131333,6 +132508,7 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
131333
132508
|
IGNORE: "ignore",
|
131334
132509
|
BANNER: "banner",
|
131335
132510
|
PROGRESS: "progress",
|
132511
|
+
INSPECTOR: "inspector",
|
131336
132512
|
APP_ICON: "app-icon",
|
131337
132513
|
LOADABLE: "loadable",
|
131338
132514
|
MANIFEST: "webpack-manifest",
|
@@ -131340,9 +132516,12 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
131340
132516
|
INLINE_HTML: "inline-html",
|
131341
132517
|
BUNDLE_ANALYZER: "bundle-analyze",
|
131342
132518
|
BOTTOM_TEMPLATE: "bottom-template",
|
132519
|
+
HTML_CROSS_ORIGIN: "html-cross-origin",
|
131343
132520
|
MINI_CSS_EXTRACT: "mini-css-extract",
|
131344
132521
|
REACT_FAST_REFRESH: "react-fast-refresh",
|
131345
|
-
NODE_POLYFILL_PROVIDE: "node-polyfill-provide"
|
132522
|
+
NODE_POLYFILL_PROVIDE: "node-polyfill-provide",
|
132523
|
+
MODULE_DEPENDENCY_ERROR: "module-dependency-error",
|
132524
|
+
SUBRESOURCE_INTEGRITY: "subresource-integrity"
|
131346
132525
|
},
|
131347
132526
|
MINIMIZER: {
|
131348
132527
|
JS: "js",
|
@@ -131355,6 +132534,32 @@ var require_chainId2 = __commonJSMin((exports) => {
|
|
131355
132534
|
}
|
131356
132535
|
};
|
131357
132536
|
});
|
132537
|
+
var require_reactVersion2 = __commonJSMin((exports) => {
|
132538
|
+
"use strict";
|
132539
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
132540
|
+
return mod && mod.__esModule ? mod : { "default": mod };
|
132541
|
+
};
|
132542
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
132543
|
+
exports.isReact18 = void 0;
|
132544
|
+
var path_1 = __importDefault(__require("path"));
|
132545
|
+
var compiled_1 = require_compiled2();
|
132546
|
+
var isReact18 = (cwd) => {
|
132547
|
+
const pkgPath = path_1.default.join(cwd, "package.json");
|
132548
|
+
if (!compiled_1.fs.existsSync(pkgPath)) {
|
132549
|
+
return false;
|
132550
|
+
}
|
132551
|
+
const pkgInfo = JSON.parse(compiled_1.fs.readFileSync(pkgPath, "utf8"));
|
132552
|
+
const deps = {
|
132553
|
+
...pkgInfo.devDependencies,
|
132554
|
+
...pkgInfo.dependencies
|
132555
|
+
};
|
132556
|
+
if (typeof deps.react !== "string") {
|
132557
|
+
return false;
|
132558
|
+
}
|
132559
|
+
return compiled_1.semver.satisfies(compiled_1.semver.minVersion(deps.react), ">=18.0.0");
|
132560
|
+
};
|
132561
|
+
exports.isReact18 = isReact18;
|
132562
|
+
});
|
131358
132563
|
var require_dist3 = __commonJSMin((exports) => {
|
131359
132564
|
"use strict";
|
131360
132565
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
@@ -131414,6 +132619,7 @@ var require_dist3 = __commonJSMin((exports) => {
|
|
131414
132619
|
__exportStar(require_tryResolve2(), exports);
|
131415
132620
|
__exportStar(require_analyzeProject2(), exports);
|
131416
132621
|
__exportStar(require_chainId2(), exports);
|
132622
|
+
__exportStar(require_reactVersion2(), exports);
|
131417
132623
|
});
|
131418
132624
|
var require_strip_ansi4 = __commonJSMin((exports) => {
|
131419
132625
|
"use strict";
|
@@ -131483,6 +132689,78 @@ var require_locale2 = __commonJSMin((exports) => {
|
|
131483
132689
|
});
|
131484
132690
|
exports.localeKeys = localeKeys3;
|
131485
132691
|
});
|
132692
|
+
var require_package = __commonJSMin((exports) => {
|
132693
|
+
"use strict";
|
132694
|
+
Object.defineProperty(exports, "__esModule", {
|
132695
|
+
value: true
|
132696
|
+
});
|
132697
|
+
exports.getAvailableVersion = getAvailableVersion;
|
132698
|
+
exports.isPackageDeprecated = isPackageDeprecated;
|
132699
|
+
exports.isPackageExist = isPackageExist;
|
132700
|
+
exports.semverDecrease = semverDecrease;
|
132701
|
+
var _utils = require_dist3();
|
132702
|
+
async function isPackageExist(packageName, registry) {
|
132703
|
+
if (await (0, _utils.canUseNpm)()) {
|
132704
|
+
const args = ["view", packageName, "version"];
|
132705
|
+
if (registry) {
|
132706
|
+
args.push(`--registry=${registry}`);
|
132707
|
+
}
|
132708
|
+
const result = await (0, _utils.execa)("npm", args);
|
132709
|
+
return (0, _utils.stripAnsi)(result.stdout);
|
132710
|
+
}
|
132711
|
+
throw new Error("not found npm, please install npm before");
|
132712
|
+
}
|
132713
|
+
async function isPackageDeprecated(packageName, registry) {
|
132714
|
+
if (await (0, _utils.canUseNpm)()) {
|
132715
|
+
const args = ["view", packageName, "deprecated"];
|
132716
|
+
if (registry) {
|
132717
|
+
args.push(`--registry=${registry}`);
|
132718
|
+
}
|
132719
|
+
const result = await (0, _utils.execa)("npm", args);
|
132720
|
+
return (0, _utils.stripAnsi)(result.stdout);
|
132721
|
+
}
|
132722
|
+
throw new Error("not found npm, please install npm before");
|
132723
|
+
}
|
132724
|
+
function semverDecrease(version4) {
|
132725
|
+
const versionObj = _utils.semver.parse(version4, {
|
132726
|
+
loose: true
|
132727
|
+
});
|
132728
|
+
if (!versionObj) {
|
132729
|
+
throw new Error(`Version ${version4} is not valid semver`);
|
132730
|
+
}
|
132731
|
+
versionObj.build = [];
|
132732
|
+
versionObj.prerelease = [];
|
132733
|
+
versionObj.patch--;
|
132734
|
+
const result = versionObj.format();
|
132735
|
+
if (!_utils.semver.valid(result)) {
|
132736
|
+
_utils.logger.debug(`Version ${result} is not valid semver`);
|
132737
|
+
return version4;
|
132738
|
+
}
|
132739
|
+
return result;
|
132740
|
+
}
|
132741
|
+
async function getAvailableVersion(packageName, currentVersion, registry) {
|
132742
|
+
let times = 5;
|
132743
|
+
let version4 = currentVersion;
|
132744
|
+
while (times) {
|
132745
|
+
if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
|
132746
|
+
version4 = _utils.semver.inc(version4, "patch");
|
132747
|
+
times--;
|
132748
|
+
continue;
|
132749
|
+
}
|
132750
|
+
return version4;
|
132751
|
+
}
|
132752
|
+
times = 5;
|
132753
|
+
while (times) {
|
132754
|
+
version4 = semverDecrease(version4);
|
132755
|
+
if (!await isPackageExist(`${packageName}@${version4}`, registry) || await isPackageDeprecated(`${packageName}@${version4}`, registry)) {
|
132756
|
+
times--;
|
132757
|
+
continue;
|
132758
|
+
}
|
132759
|
+
return version4;
|
132760
|
+
}
|
132761
|
+
return currentVersion;
|
132762
|
+
}
|
132763
|
+
});
|
131486
132764
|
var require_utils11 = __commonJSMin((exports) => {
|
131487
132765
|
"use strict";
|
131488
132766
|
Object.defineProperty(exports, "__esModule", {
|
@@ -131501,6 +132779,19 @@ var require_utils11 = __commonJSMin((exports) => {
|
|
131501
132779
|
}
|
131502
132780
|
});
|
131503
132781
|
});
|
132782
|
+
var _package = require_package();
|
132783
|
+
Object.keys(_package).forEach(function(key) {
|
132784
|
+
if (key === "default" || key === "__esModule")
|
132785
|
+
return;
|
132786
|
+
if (key in exports && exports[key] === _package[key])
|
132787
|
+
return;
|
132788
|
+
Object.defineProperty(exports, key, {
|
132789
|
+
enumerable: true,
|
132790
|
+
get: function() {
|
132791
|
+
return _package[key];
|
132792
|
+
}
|
132793
|
+
});
|
132794
|
+
});
|
131504
132795
|
});
|
131505
132796
|
var require_node9 = __commonJSMin((exports) => {
|
131506
132797
|
"use strict";
|
@@ -131509,6 +132800,8 @@ var require_node9 = __commonJSMin((exports) => {
|
|
131509
132800
|
});
|
131510
132801
|
var _exportNames = {
|
131511
132802
|
getPackageVersion: true,
|
132803
|
+
getModernVersion: true,
|
132804
|
+
getModernPluginVersion: true,
|
131512
132805
|
getPackageManagerText: true,
|
131513
132806
|
isTsProject: true,
|
131514
132807
|
getPackageObj: true,
|
@@ -131517,13 +132810,16 @@ var require_node9 = __commonJSMin((exports) => {
|
|
131517
132810
|
validatePackagePath: true,
|
131518
132811
|
getModuleProjectPath: true,
|
131519
132812
|
getMWAProjectPath: true,
|
132813
|
+
ora: true,
|
131520
132814
|
fs: true,
|
132815
|
+
semver: true,
|
131521
132816
|
execa: true,
|
131522
132817
|
readTsConfigByFile: true,
|
131523
132818
|
getPackageManager: true,
|
131524
132819
|
canUseNpm: true,
|
131525
132820
|
canUsePnpm: true,
|
131526
132821
|
canUseYarn: true,
|
132822
|
+
isReact18: true,
|
131527
132823
|
i18n: true
|
131528
132824
|
};
|
131529
132825
|
Object.defineProperty(exports, "canUseNpm", {
|
@@ -131558,6 +132854,8 @@ var require_node9 = __commonJSMin((exports) => {
|
|
131558
132854
|
});
|
131559
132855
|
exports.getAllPackages = getAllPackages;
|
131560
132856
|
exports.getMWAProjectPath = getMWAProjectPath;
|
132857
|
+
exports.getModernPluginVersion = getModernPluginVersion;
|
132858
|
+
exports.getModernVersion = getModernVersion2;
|
131561
132859
|
exports.getModuleProjectPath = getModuleProjectPath;
|
131562
132860
|
Object.defineProperty(exports, "getPackageManager", {
|
131563
132861
|
enumerable: true,
|
@@ -131574,19 +132872,39 @@ var require_node9 = __commonJSMin((exports) => {
|
|
131574
132872
|
return _locale.i18n;
|
131575
132873
|
}
|
131576
132874
|
});
|
132875
|
+
Object.defineProperty(exports, "isReact18", {
|
132876
|
+
enumerable: true,
|
132877
|
+
get: function() {
|
132878
|
+
return _utils.isReact18;
|
132879
|
+
}
|
132880
|
+
});
|
131577
132881
|
exports.isTsProject = isTsProject;
|
132882
|
+
Object.defineProperty(exports, "ora", {
|
132883
|
+
enumerable: true,
|
132884
|
+
get: function() {
|
132885
|
+
return _utils.ora;
|
132886
|
+
}
|
132887
|
+
});
|
131578
132888
|
Object.defineProperty(exports, "readTsConfigByFile", {
|
131579
132889
|
enumerable: true,
|
131580
132890
|
get: function() {
|
131581
132891
|
return _utils.readTsConfigByFile;
|
131582
132892
|
}
|
131583
132893
|
});
|
132894
|
+
Object.defineProperty(exports, "semver", {
|
132895
|
+
enumerable: true,
|
132896
|
+
get: function() {
|
132897
|
+
return _utils.semver;
|
132898
|
+
}
|
132899
|
+
});
|
131584
132900
|
exports.validatePackageName = validatePackageName;
|
131585
132901
|
exports.validatePackagePath = validatePackagePath;
|
131586
132902
|
var _path = _interopRequireDefault(__require("path"));
|
131587
132903
|
var _utils = require_dist3();
|
132904
|
+
var _generatorCommon = (init_treeshaking4(), __toCommonJS2(treeshaking_exports4));
|
131588
132905
|
var _stripAnsi = require_strip_ansi4();
|
131589
132906
|
var _locale = require_locale2();
|
132907
|
+
var _package = require_package();
|
131590
132908
|
var _utils2 = require_utils11();
|
131591
132909
|
Object.keys(_utils2).forEach(function(key) {
|
131592
132910
|
if (key === "default" || key === "__esModule")
|
@@ -131638,6 +132956,39 @@ var require_node9 = __commonJSMin((exports) => {
|
|
131638
132956
|
spinner.stop();
|
131639
132957
|
throw new Error("not found npm, please install npm before");
|
131640
132958
|
}
|
132959
|
+
async function getModernVersion2(solution, registry) {
|
132960
|
+
const dep = _generatorCommon.SolutionToolsMap[solution];
|
132961
|
+
const modernVersion = await getPackageVersion(dep, registry);
|
132962
|
+
return modernVersion;
|
132963
|
+
}
|
132964
|
+
async function getModernPluginVersion(solution, packageName, options3 = {}) {
|
132965
|
+
const {
|
132966
|
+
cwd = process.cwd(),
|
132967
|
+
registry
|
132968
|
+
} = options3;
|
132969
|
+
const getLatetPluginVersion = async () => {
|
132970
|
+
const version4 = await getPackageVersion(packageName, registry);
|
132971
|
+
return version4;
|
132972
|
+
};
|
132973
|
+
if (!packageName.startsWith("@modern-js")) {
|
132974
|
+
return getLatetPluginVersion();
|
132975
|
+
}
|
132976
|
+
const pkgPath = _path.default.join(__require.resolve(_generatorCommon.SolutionToolsMap[solution], {
|
132977
|
+
paths: [cwd]
|
132978
|
+
}), "../../../../", "package.json");
|
132979
|
+
if (_utils.fs.existsSync(pkgPath)) {
|
132980
|
+
const pkgInfo = _utils.fs.readJSONSync(pkgPath);
|
132981
|
+
const modernVersion = pkgInfo.version;
|
132982
|
+
if (typeof modernVersion !== "string") {
|
132983
|
+
return getLatetPluginVersion();
|
132984
|
+
}
|
132985
|
+
if (_utils.semver.lt(modernVersion, "1.15.0")) {
|
132986
|
+
return getLatetPluginVersion();
|
132987
|
+
}
|
132988
|
+
return (0, _package.getAvailableVersion)(packageName, modernVersion, registry);
|
132989
|
+
}
|
132990
|
+
return getLatetPluginVersion();
|
132991
|
+
}
|
131641
132992
|
function getPackageManagerText2(packageManager) {
|
131642
132993
|
return packageManager === "yarn" ? "yarn" : `${packageManager} run`;
|
131643
132994
|
}
|
@@ -131712,350 +133063,7 @@ var require_node9 = __commonJSMin((exports) => {
|
|
131712
133063
|
var import_codesmith = __toESM2(require_node());
|
131713
133064
|
var import_codesmith_api_app = __toESM2(require_node7());
|
131714
133065
|
var import_codesmith_api_json = __toESM2(require_node8());
|
131715
|
-
|
131716
|
-
var ZH_LOCALE = {
|
131717
|
-
solution: {
|
131718
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
131719
|
-
mwa: "\u5E94\u7528",
|
131720
|
-
module: "\u6A21\u5757",
|
131721
|
-
monorepo: "Monorepo",
|
131722
|
-
custom: "\u81EA\u5B9A\u4E49",
|
131723
|
-
"default": "\u9ED8\u8BA4"
|
131724
|
-
},
|
131725
|
-
scenes: {
|
131726
|
-
self: "\u8BF7\u9009\u62E9\u9879\u76EE\u573A\u666F"
|
131727
|
-
},
|
131728
|
-
sub_solution: {
|
131729
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u521B\u5EFA\u7684\u5DE5\u7A0B\u7C7B\u578B",
|
131730
|
-
mwa: "\u5E94\u7528",
|
131731
|
-
mwa_test: "\u5E94\u7528\uFF08\u6D4B\u8BD5\uFF09",
|
131732
|
-
module: "\u6A21\u5757",
|
131733
|
-
inner_module: "\u6A21\u5757\uFF08\u5185\u90E8\uFF09"
|
131734
|
-
},
|
131735
|
-
action: {
|
131736
|
-
self: "\u8BF7\u9009\u62E9\u4F60\u60F3\u8981\u7684\u64CD\u4F5C",
|
131737
|
-
"function": {
|
131738
|
-
self: "\u542F\u7528\u53EF\u9009\u529F\u80FD",
|
131739
|
-
tailwindcss: "\u542F\u7528 Tailwind CSS \u652F\u6301",
|
131740
|
-
less: "\u542F\u7528 Less \u652F\u6301",
|
131741
|
-
sass: "\u542F\u7528 Sass \u652F\u6301",
|
131742
|
-
bff: "\u542F\u7528\u300CBFF\u300D\u529F\u80FD",
|
131743
|
-
micro_frontend: "\u542F\u7528\u300C\u5FAE\u524D\u7AEF\u300D\u6A21\u5F0F",
|
131744
|
-
electron: "\u542F\u7528\u300CElectron\u300D\u6A21\u5F0F",
|
131745
|
-
i18n: "\u542F\u7528\u300C\u56FD\u9645\u5316\uFF08i18n\uFF09\u300D\u529F\u80FD",
|
131746
|
-
test: "\u542F\u7528\u300C\u5355\u5143\u6D4B\u8BD5 / \u96C6\u6210\u6D4B\u8BD5\u300D\u529F\u80FD",
|
131747
|
-
e2e_test: "\u542F\u7528\u300CE2E \u6D4B\u8BD5\u300D\u529F\u80FD",
|
131748
|
-
doc: "\u542F\u7528\u300C\u6587\u6863\u7AD9\u300D\u529F\u80FD",
|
131749
|
-
storybook: "\u542F\u7528\u300CStorybook\u300D",
|
131750
|
-
runtime_api: "\u542F\u7528\u300CRuntime API\u300D",
|
131751
|
-
mwa_storybook: "\u542F\u7528\u300CVisual Testing (Storybook)\u300D\u6A21\u5F0F",
|
131752
|
-
ssg: "\u542F\u7528\u300CSSG\u300D\u529F\u80FD",
|
131753
|
-
polyfill: "\u542F\u7528\u300C\u57FA\u4E8E UA \u7684 Polyfill\u300D\u529F\u80FD",
|
131754
|
-
deploy: "\u542F\u7528\u300C\u90E8\u7F72\u300D\u529F\u80FD",
|
131755
|
-
proxy: "\u542F\u7528\u300C\u5168\u5C40\u4EE3\u7406\u300D"
|
131756
|
-
},
|
131757
|
-
element: {
|
131758
|
-
self: "\u521B\u5EFA\u5DE5\u7A0B\u5143\u7D20",
|
131759
|
-
entry: "\u65B0\u5EFA\u300C\u5E94\u7528\u5165\u53E3\u300D",
|
131760
|
-
server: "\u65B0\u5EFA\u300CServer \u81EA\u5B9A\u4E49\u300D\u6E90\u7801\u76EE\u5F55"
|
131761
|
-
},
|
131762
|
-
refactor: {
|
131763
|
-
self: "\u81EA\u52A8\u91CD\u6784",
|
131764
|
-
bff_to_app: "BFF \u5207\u6362\u6846\u67B6\u6A21\u5F0F"
|
131765
|
-
}
|
131766
|
-
},
|
131767
|
-
"boolean": {
|
131768
|
-
yes: "\u662F",
|
131769
|
-
no: "\u5426"
|
131770
|
-
},
|
131771
|
-
language: {
|
131772
|
-
self: "\u8BF7\u9009\u62E9\u5F00\u53D1\u8BED\u8A00"
|
131773
|
-
},
|
131774
|
-
packageManager: {
|
131775
|
-
self: "\u8BF7\u9009\u62E9\u5305\u7BA1\u7406\u5DE5\u5177"
|
131776
|
-
},
|
131777
|
-
runWay: {
|
131778
|
-
self: "\u662F\u5426\u9700\u8981\u652F\u6301\u4EE5\u4E0B\u7C7B\u578B\u5E94\u7528",
|
131779
|
-
no: "\u4E0D\u9700\u8981",
|
131780
|
-
electron: "Electron"
|
131781
|
-
},
|
131782
|
-
needModifyConfig: {
|
131783
|
-
self: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
131784
|
-
enableLess: "\u662F\u5426\u542F\u7528 Less \u652F\u6301?",
|
131785
|
-
enableSass: "\u662F\u5426\u542F\u7528 Sass \u652F\u6301?"
|
131786
|
-
},
|
131787
|
-
entry: {
|
131788
|
-
name: "\u8BF7\u586B\u5199\u5165\u53E3\u540D\u79F0",
|
131789
|
-
no_empty: "\u5165\u53E3\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
131790
|
-
no_pages: '\u5165\u53E3\u540D\u79F0\u4E0D\u652F\u6301 "pages"\uFF01',
|
131791
|
-
needModifyConfig: "\u662F\u5426\u9700\u8981\u8C03\u6574\u9ED8\u8BA4\u914D\u7F6E?",
|
131792
|
-
disableStateManagement: "\u662F\u5426\u5173\u95ED\u300C\u5E94\u7528\u72B6\u6001\u7BA1\u7406\u300D\u529F\u80FD?",
|
131793
|
-
clientRoute: {
|
131794
|
-
self: "\u8BF7\u9009\u62E9\u5BA2\u6237\u7AEF\u8DEF\u7531\u65B9\u5F0F",
|
131795
|
-
selfControlRoute: "\u542F\u7528\u81EA\u63A7\u8DEF\u7531",
|
131796
|
-
conventionalRoute: "\u542F\u7528\u7EA6\u5B9A\u5F0F\u8DEF\u7531",
|
131797
|
-
no: "\u4E0D\u542F\u7528"
|
131798
|
-
}
|
131799
|
-
},
|
131800
|
-
packageName: {
|
131801
|
-
self: "\u8BF7\u586B\u5199\u9879\u76EE\u540D\u79F0",
|
131802
|
-
sub_name: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u540D\u79F0",
|
131803
|
-
no_empty: "\u9879\u76EE\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01"
|
131804
|
-
},
|
131805
|
-
packagePath: {
|
131806
|
-
self: "\u8BF7\u586B\u5199\u5B50\u9879\u76EE\u76EE\u5F55\u540D\u79F0",
|
131807
|
-
no_empty: "\u76EE\u5F55\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A\uFF01",
|
131808
|
-
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"
|
131809
|
-
},
|
131810
|
-
framework: {
|
131811
|
-
self: "\u8BF7\u9009\u62E9\u8FD0\u884C\u65F6\u6846\u67B6",
|
131812
|
-
egg: "Egg",
|
131813
|
-
express: "Express",
|
131814
|
-
koa: "Koa",
|
131815
|
-
nest: "Nest"
|
131816
|
-
},
|
131817
|
-
bff: {
|
131818
|
-
bffType: {
|
131819
|
-
self: "\u8BF7\u9009\u62E9 BFF \u7C7B\u578B",
|
131820
|
-
func: "\u51FD\u6570\u6A21\u5F0F",
|
131821
|
-
framework: "\u6846\u67B6\u6A21\u5F0F"
|
131822
|
-
}
|
131823
|
-
},
|
131824
|
-
deploy: {
|
131825
|
-
cloud: {
|
131826
|
-
self: "\u9ED8\u8BA4\u4F7F\u7528\u6846\u67B6\u5185\u7F6E\u7684\u4EA7\u54C1\u7EA7 Web \u670D\u52A1\u5668\uFF0C\u662F\u5426\u8C03\u6574\uFF1F"
|
131827
|
-
},
|
131828
|
-
cdn: {
|
131829
|
-
self: "\u8BF7\u9009\u62E9 CDN \u5E73\u53F0",
|
131830
|
-
oss: "\u963F\u91CC\u4E91 OSS",
|
131831
|
-
cos: "\u817E\u8BAF\u4E91 COS",
|
131832
|
-
no: "\u4E0D\u4F7F\u7528 CDN"
|
131833
|
-
},
|
131834
|
-
lambda: {
|
131835
|
-
self: "\u8BF7\u9009\u62E9\u4E91\u51FD\u6570\u5E73\u53F0",
|
131836
|
-
fc: "\u963F\u91CC\u4E91 FC",
|
131837
|
-
scf: "\u817E\u8BAF\u4E91 SCF",
|
131838
|
-
no: "\u4E0D\u4F7F\u7528\u4E91\u51FD\u6570\u90E8\u7F72"
|
131839
|
-
}
|
131840
|
-
}
|
131841
|
-
};
|
131842
|
-
var EN_LOCALE = {
|
131843
|
-
solution: {
|
131844
|
-
self: "Please select the solution you want to create",
|
131845
|
-
mwa: "MWA Solution",
|
131846
|
-
module: "Module Solution",
|
131847
|
-
monorepo: "Monorepo Solution",
|
131848
|
-
custom: "Custom Solution",
|
131849
|
-
"default": "Default"
|
131850
|
-
},
|
131851
|
-
scenes: {
|
131852
|
-
self: "Please select the scene you want to create"
|
131853
|
-
},
|
131854
|
-
sub_solution: {
|
131855
|
-
self: "Please select the solution you want to create",
|
131856
|
-
mwa: "MWA Solution",
|
131857
|
-
mwa_test: "MWA Solution(Test)",
|
131858
|
-
module: "Module Solution",
|
131859
|
-
inner_module: "Module Solution(Inner)",
|
131860
|
-
monorepo: "Monorepo Solution"
|
131861
|
-
},
|
131862
|
-
action: {
|
131863
|
-
self: "Action",
|
131864
|
-
"function": {
|
131865
|
-
self: "Enable features",
|
131866
|
-
tailwindcss: "Enable Tailwind CSS",
|
131867
|
-
less: "Enable Less",
|
131868
|
-
sass: "Enable Sass",
|
131869
|
-
bff: "Enable BFF",
|
131870
|
-
micro_frontend: "Enable Micro Frontend",
|
131871
|
-
electron: "Enable Electron",
|
131872
|
-
i18n: "Enable Internationalization (i18n)",
|
131873
|
-
test: "Enable Unit Test / Integration Test",
|
131874
|
-
e2e_test: "Enable E2E Test",
|
131875
|
-
doc: "Enable Document Station",
|
131876
|
-
storybook: "Enable Storybook",
|
131877
|
-
runtime_api: "Enable Runtime API",
|
131878
|
-
mwa_storybook: "Enable Visual Testing (Storybook)",
|
131879
|
-
ssg: "Enable SSG",
|
131880
|
-
polyfill: "Enable UA-based Polyfill Feature",
|
131881
|
-
deploy: "Enable Deploy",
|
131882
|
-
proxy: "Enable Global Proxy"
|
131883
|
-
},
|
131884
|
-
element: {
|
131885
|
-
self: "Create project element",
|
131886
|
-
entry: 'New "entry"',
|
131887
|
-
server: 'New "Server Custom" source code directory'
|
131888
|
-
},
|
131889
|
-
refactor: {
|
131890
|
-
self: "Automatic refactor",
|
131891
|
-
bff_to_app: "Transform BFF to frame mode"
|
131892
|
-
}
|
131893
|
-
},
|
131894
|
-
"boolean": {
|
131895
|
-
yes: "Yes",
|
131896
|
-
no: "No"
|
131897
|
-
},
|
131898
|
-
language: {
|
131899
|
-
self: "Development Language"
|
131900
|
-
},
|
131901
|
-
packageManager: {
|
131902
|
-
self: "Package Management Tool"
|
131903
|
-
},
|
131904
|
-
packageName: {
|
131905
|
-
self: "Package Name",
|
131906
|
-
sub_name: "Package Name",
|
131907
|
-
no_empty: "The package name cannot be empty!"
|
131908
|
-
},
|
131909
|
-
packagePath: {
|
131910
|
-
self: "Package Path",
|
131911
|
-
no_empty: "The package path cannot be empty!",
|
131912
|
-
format: "Only lowercase letters, numbers and delimiters (-), and underscore (_), and directory delimiters (/) can be used in package path."
|
131913
|
-
},
|
131914
|
-
runWay: {
|
131915
|
-
self: "Do you need to support the following types of applications",
|
131916
|
-
no: "Not Enabled",
|
131917
|
-
electron: "Electron"
|
131918
|
-
},
|
131919
|
-
needModifyConfig: {
|
131920
|
-
self: "Modify the Default Configuration?",
|
131921
|
-
enableLess: "Enable Less?",
|
131922
|
-
enableSass: "Enable Sass?"
|
131923
|
-
},
|
131924
|
-
entry: {
|
131925
|
-
name: "Entry name",
|
131926
|
-
no_empty: "The entry name cannot be empty!",
|
131927
|
-
no_pages: 'The entry name cannot be "pages"!',
|
131928
|
-
disableStateManagement: "Disable App State Management?",
|
131929
|
-
clientRoute: {
|
131930
|
-
self: "Client Routing",
|
131931
|
-
selfControlRoute: "Enable Self Control Route",
|
131932
|
-
conventionalRoute: "Enable Conventional Route",
|
131933
|
-
no: "Not Enabled"
|
131934
|
-
}
|
131935
|
-
},
|
131936
|
-
framework: {
|
131937
|
-
self: "Please select the framework you want to use",
|
131938
|
-
egg: "Egg",
|
131939
|
-
express: "Express",
|
131940
|
-
koa: "Koa",
|
131941
|
-
nest: "Nest"
|
131942
|
-
},
|
131943
|
-
bff: {
|
131944
|
-
bffType: {
|
131945
|
-
self: "BFF Type",
|
131946
|
-
func: "Function",
|
131947
|
-
framework: "Framework"
|
131948
|
-
}
|
131949
|
-
},
|
131950
|
-
deploy: {
|
131951
|
-
cloud: {
|
131952
|
-
self: "Modify the default Web Server?"
|
131953
|
-
},
|
131954
|
-
cdn: {
|
131955
|
-
self: "Please select the cdn platform you want to use",
|
131956
|
-
oss: "Aliyun OSS",
|
131957
|
-
cos: "Tencent COS",
|
131958
|
-
no: "Not Enabled"
|
131959
|
-
},
|
131960
|
-
lambda: {
|
131961
|
-
self: "Please select the lambda you want to use",
|
131962
|
-
fc: "Aliyun FC",
|
131963
|
-
scf: "Tencent SCF",
|
131964
|
-
no: "Not Enabled"
|
131965
|
-
}
|
131966
|
-
}
|
131967
|
-
};
|
131968
|
-
var i18n = new I18n2();
|
131969
|
-
var localeKeys = i18n.init("zh", {
|
131970
|
-
zh: ZH_LOCALE,
|
131971
|
-
en: EN_LOCALE
|
131972
|
-
});
|
131973
|
-
init_toConsumableArray();
|
131974
|
-
init_defineProperty();
|
131975
|
-
var _SolutionText;
|
131976
|
-
var _SubSolutionText;
|
131977
|
-
var _SolutionGenerator;
|
131978
|
-
var _SubSolutionGenerator;
|
131979
|
-
var Solution;
|
131980
|
-
(function(Solution2) {
|
131981
|
-
Solution2["MWA"] = "mwa";
|
131982
|
-
Solution2["Module"] = "module";
|
131983
|
-
Solution2["Monorepo"] = "monorepo";
|
131984
|
-
})(Solution || (Solution = {}));
|
131985
|
-
var SubSolution;
|
131986
|
-
(function(SubSolution2) {
|
131987
|
-
SubSolution2["MWA"] = "mwa";
|
131988
|
-
SubSolution2["MWATest"] = "mwa_test";
|
131989
|
-
SubSolution2["Module"] = "module";
|
131990
|
-
SubSolution2["InnerModule"] = "inner_module";
|
131991
|
-
})(SubSolution || (SubSolution = {}));
|
131992
|
-
var SolutionText = (_SolutionText = {}, _defineProperty(_SolutionText, Solution.MWA, function() {
|
131993
|
-
return i18n.t(localeKeys.solution.mwa);
|
131994
|
-
}), _defineProperty(_SolutionText, Solution.Module, function() {
|
131995
|
-
return i18n.t(localeKeys.solution.module);
|
131996
|
-
}), _defineProperty(_SolutionText, Solution.Monorepo, function() {
|
131997
|
-
return i18n.t(localeKeys.solution.monorepo);
|
131998
|
-
}), _SolutionText);
|
131999
|
-
var SubSolutionText = (_SubSolutionText = {}, _defineProperty(_SubSolutionText, SubSolution.MWA, function() {
|
132000
|
-
return i18n.t(localeKeys.sub_solution.mwa);
|
132001
|
-
}), _defineProperty(_SubSolutionText, SubSolution.MWATest, function() {
|
132002
|
-
return i18n.t(localeKeys.sub_solution.mwa_test);
|
132003
|
-
}), _defineProperty(_SubSolutionText, SubSolution.Module, function() {
|
132004
|
-
return i18n.t(localeKeys.sub_solution.module);
|
132005
|
-
}), _defineProperty(_SubSolutionText, SubSolution.InnerModule, function() {
|
132006
|
-
return i18n.t(localeKeys.sub_solution.inner_module);
|
132007
|
-
}), _SubSolutionText);
|
132008
|
-
var BaseGenerator = "@modern-js/base-generator";
|
132009
|
-
var 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);
|
132010
|
-
var 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);
|
132011
|
-
var ChangesetGenerator = "@modern-js/changeset-generator";
|
132012
|
-
init_defineProperty();
|
132013
|
-
var _PackageManagerName;
|
132014
|
-
var PackageManager;
|
132015
|
-
(function(PackageManager2) {
|
132016
|
-
PackageManager2["Pnpm"] = "pnpm";
|
132017
|
-
PackageManager2["Yarn"] = "yarn";
|
132018
|
-
PackageManager2["Npm"] = "npm";
|
132019
|
-
})(PackageManager || (PackageManager = {}));
|
132020
|
-
var PackageManagerName = (_PackageManagerName = {}, _defineProperty(_PackageManagerName, PackageManager.Pnpm, function() {
|
132021
|
-
return "pnpm";
|
132022
|
-
}), _defineProperty(_PackageManagerName, PackageManager.Yarn, function() {
|
132023
|
-
return "Yarn";
|
132024
|
-
}), _defineProperty(_PackageManagerName, PackageManager.Npm, function() {
|
132025
|
-
return "npm";
|
132026
|
-
}), _PackageManagerName);
|
132027
|
-
var PackageManagerSchema = {
|
132028
|
-
key: "packageManager",
|
132029
|
-
type: ["string"],
|
132030
|
-
label: function label() {
|
132031
|
-
return i18n.t(localeKeys.packageManager.self);
|
132032
|
-
},
|
132033
|
-
mutualExclusion: true,
|
132034
|
-
when: function when(_values, extra) {
|
132035
|
-
return !(extra !== null && extra !== void 0 && extra.isMonorepoSubProject) && !(extra !== null && extra !== void 0 && extra.isSubProject);
|
132036
|
-
},
|
132037
|
-
items: Object.values(PackageManager).map(function(packageManager) {
|
132038
|
-
return {
|
132039
|
-
key: packageManager,
|
132040
|
-
label: PackageManagerName[packageManager]
|
132041
|
-
};
|
132042
|
-
})
|
132043
|
-
};
|
132044
|
-
init_objectSpread2();
|
132045
|
-
var MonorepoPackageManagerSchema = _objectSpread2(_objectSpread2({}, PackageManagerSchema), {}, {
|
132046
|
-
items: PackageManagerSchema.items.filter(function(item) {
|
132047
|
-
return item.key !== PackageManager.Npm;
|
132048
|
-
})
|
132049
|
-
});
|
132050
|
-
var MonorepoSchemas = [MonorepoPackageManagerSchema];
|
132051
|
-
var MonorepoSchema = {
|
132052
|
-
key: "monorepo",
|
132053
|
-
isObject: true,
|
132054
|
-
items: MonorepoSchemas
|
132055
|
-
};
|
132056
|
-
var MonorepoDefaultConfig = {
|
132057
|
-
packageManager: PackageManager.Pnpm
|
132058
|
-
};
|
133066
|
+
init_treeshaking4();
|
132059
133067
|
var import_generator_utils = __toESM2(require_node9());
|
132060
133068
|
init_treeshaking3();
|
132061
133069
|
var ZH_LOCALE2 = {
|
@@ -132105,10 +133113,11 @@ var handleTemplateFile = async (context, generator, appApi) => {
|
|
132105
133113
|
...inputValue,
|
132106
133114
|
isMonorepo: true
|
132107
133115
|
});
|
133116
|
+
const modernVersion = await (0, import_generator_utils.getModernVersion)(Solution.Monorepo, context.config.registry);
|
132108
133117
|
generator.logger.debug(`ans=`, ans);
|
132109
133118
|
const { packageManager } = ans;
|
132110
133119
|
await appApi.runSubGenerator(getGeneratorPath(BaseGenerator, context.config.distTag), void 0, { ...context.config, hasPlugin: false });
|
132111
|
-
await appApi.forgeTemplate("templates/base-template/**/*", void 0, (resourceKey) => resourceKey.replace("templates/base-template/", "").replace(".handlebars", ""), { packageManager });
|
133120
|
+
await appApi.forgeTemplate("templates/base-template/**/*", void 0, (resourceKey) => resourceKey.replace("templates/base-template/", "").replace(".handlebars", ""), { packageManager, modernVersion });
|
132112
133121
|
if (packageManager === PackageManager.Pnpm) {
|
132113
133122
|
await appApi.forgeTemplate("templates/pnpm-template/**/*", void 0, (resourceKey) => resourceKey.replace("templates/pnpm-template/", "").replace(".handlebars", ""));
|
132114
133123
|
}
|