@h3ravel/console 11.0.7 → 11.1.0
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/bin/fire.cjs +2 -0
- package/bin/fire.js +2 -0
- package/dist/Utils-7OrjoB1C.d.cts +22 -0
- package/dist/Utils-B1kpj9-1.cjs +130 -0
- package/dist/Utils-B1kpj9-1.cjs.map +1 -0
- package/dist/Utils-DAJvoXlr.js +86 -0
- package/dist/Utils-DAJvoXlr.js.map +1 -0
- package/dist/Utils-DxnHOGMz.d.ts +22 -0
- package/dist/Utils.cjs +3 -217
- package/dist/Utils.d.cts +2 -0
- package/dist/Utils.d.ts +2 -0
- package/dist/Utils.js +3 -9
- package/dist/index.cjs +885 -933
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +270 -290
- package/dist/index.d.ts +270 -290
- package/dist/index.js +899 -44
- package/dist/index.js.map +1 -0
- package/package.json +35 -23
- package/bin/chunk-6Z5DP356.js +0 -1
- package/bin/lexer-DQCqS3nf-XQPNMZG6.js +0 -4
- package/bin/run.cjs +0 -26
- package/bin/run.js +0 -26
- package/dist/Commands/Command.cjs +0 -104
- package/dist/Commands/Command.js +0 -7
- package/dist/Commands/MakeCommand.cjs +0 -433
- package/dist/Commands/MakeCommand.js +0 -9
- package/dist/Commands/MigrateCommand.cjs +0 -200
- package/dist/Commands/MigrateCommand.js +0 -8
- package/dist/Commands/ServeCommand.cjs +0 -159
- package/dist/Commands/ServeCommand.js +0 -8
- package/dist/Contracts/ICommand.cjs +0 -18
- package/dist/Contracts/ICommand.js +0 -1
- package/dist/IO/app.cjs +0 -946
- package/dist/IO/app.js +0 -17
- package/dist/IO/providers.cjs +0 -930
- package/dist/IO/providers.js +0 -16
- package/dist/Kernel.cjs +0 -890
- package/dist/Kernel.js +0 -14
- package/dist/Musket.cjs +0 -835
- package/dist/Musket.js +0 -13
- package/dist/Providers/ConsoleServiceProvider.cjs +0 -912
- package/dist/Providers/ConsoleServiceProvider.js +0 -15
- package/dist/Signature.cjs +0 -172
- package/dist/Signature.js +0 -7
- package/dist/chunk-23QH5R54.js +0 -27
- package/dist/chunk-2O2AYFAG.js +0 -63
- package/dist/chunk-3ASEWMRX.js +0 -37
- package/dist/chunk-3FVPHQCH.js +0 -151
- package/dist/chunk-3RX6CLNR.js +0 -32
- package/dist/chunk-3VCNSA6P.js +0 -14
- package/dist/chunk-3WHUADTN.js +0 -6
- package/dist/chunk-6OCHCPBP.js +0 -36
- package/dist/chunk-6OIH6FS4.js +0 -32
- package/dist/chunk-7EWRZPTX.js +0 -63
- package/dist/chunk-7PUQ5ZIN.js +0 -6
- package/dist/chunk-A5AONVOH.js +0 -6
- package/dist/chunk-ADIVRUAJ.js +0 -27
- package/dist/chunk-CCEWV2BR.js +0 -39
- package/dist/chunk-CTQ6DUT2.js +0 -8
- package/dist/chunk-DXQTBFGG.js +0 -31
- package/dist/chunk-E4SSLXFT.js +0 -63
- package/dist/chunk-E5XIGIEX.js +0 -14
- package/dist/chunk-EIOQKTRM.js +0 -104
- package/dist/chunk-FOSDCKCR.js +0 -106
- package/dist/chunk-G4OE26TZ.js +0 -33
- package/dist/chunk-GVGO5OAK.js +0 -8
- package/dist/chunk-GXRCTWKL.js +0 -16
- package/dist/chunk-HVKW7JK4.js +0 -8
- package/dist/chunk-IGEFNODG.js +0 -22
- package/dist/chunk-JXL4VJHZ.js +0 -36
- package/dist/chunk-K3GOQSS3.js +0 -6
- package/dist/chunk-KCJKQP37.js +0 -133
- package/dist/chunk-KMIFCLXG.js +0 -16
- package/dist/chunk-KZA3MC77.js +0 -151
- package/dist/chunk-LLL3V7LB.js +0 -6
- package/dist/chunk-LQ6DL2HS.js +0 -68
- package/dist/chunk-M4ZRDJJ2.js +0 -68
- package/dist/chunk-MAQAT3PU.js +0 -32
- package/dist/chunk-MPXPSSLJ.js +0 -133
- package/dist/chunk-NADN2PHB.js +0 -0
- package/dist/chunk-NFRXMBRP.js +0 -24
- package/dist/chunk-NVPKTRMT.js +0 -7
- package/dist/chunk-O45AB4MX.js +0 -83
- package/dist/chunk-ORPRWIQ2.js +0 -33
- package/dist/chunk-P7M5PEDY.js +0 -18
- package/dist/chunk-PBNCVQZC.js +0 -6
- package/dist/chunk-PMV4TMFS.js +0 -151
- package/dist/chunk-POF4JGTX.js +0 -186
- package/dist/chunk-PYSJMSNM.js +0 -27
- package/dist/chunk-Q3OMG6YH.js +0 -186
- package/dist/chunk-QCNBVSFO.js +0 -68
- package/dist/chunk-QMEO4OUR.js +0 -151
- package/dist/chunk-QSQNELZQ.js +0 -83
- package/dist/chunk-RRP7K5LI.js +0 -36
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-SP4JKAUC.js +0 -63
- package/dist/chunk-T6OOKENF.js +0 -6
- package/dist/chunk-TBDROT3I.js +0 -6356
- package/dist/chunk-TH2RWMWA.js +0 -133
- package/dist/chunk-TJZCDDEV.js +0 -36
- package/dist/chunk-TN5SV7LF.js +0 -133
- package/dist/chunk-U6TOLKGJ.js +0 -22
- package/dist/chunk-UCOXL3OM.js +0 -0
- package/dist/chunk-URLTFJET.js +0 -68
- package/dist/chunk-UWCTG2LX.js +0 -24
- package/dist/chunk-WO2BXMBQ.js +0 -6
- package/dist/chunk-XAWZUZVP.js +0 -32
- package/dist/chunk-XCOSZXAE.js +0 -133
- package/dist/chunk-XD2Q7LWE.js +0 -24
- package/dist/chunk-XSL373TG.js +0 -36
- package/dist/chunk-XUYTJO6X.js +0 -104
- package/dist/chunk-YAYU7VOK.js +0 -8
- package/dist/chunk-YRUCICBV.js +0 -24
- package/dist/chunk-Z5XE72Q5.js +0 -68
- package/dist/chunk-ZTIO25VB.js +0 -8
- package/dist/lexer-DQCqS3nf-6W2BHF4T.js +0 -68
- package/dist/run.cjs +0 -943
- package/dist/run.js +0 -14
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/Commands/ServeCommand.ts
|
|
22
|
-
var ServeCommand_exports = {};
|
|
23
|
-
__export(ServeCommand_exports, {
|
|
24
|
-
ServeCommand: () => ServeCommand
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(ServeCommand_exports);
|
|
27
|
-
|
|
28
|
-
// src/Commands/Command.ts
|
|
29
|
-
var Command = class {
|
|
30
|
-
static {
|
|
31
|
-
__name(this, "Command");
|
|
32
|
-
}
|
|
33
|
-
app;
|
|
34
|
-
kernel;
|
|
35
|
-
constructor(app, kernel) {
|
|
36
|
-
this.app = app;
|
|
37
|
-
this.kernel = kernel;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* The name and signature of the console command.
|
|
41
|
-
*
|
|
42
|
-
* @var string
|
|
43
|
-
*/
|
|
44
|
-
signature;
|
|
45
|
-
/**
|
|
46
|
-
* A dictionary of signatures or what not.
|
|
47
|
-
*
|
|
48
|
-
* @var object
|
|
49
|
-
*/
|
|
50
|
-
dictionary = {};
|
|
51
|
-
/**
|
|
52
|
-
* The console command description.
|
|
53
|
-
*
|
|
54
|
-
* @var string
|
|
55
|
-
*/
|
|
56
|
-
description;
|
|
57
|
-
/**
|
|
58
|
-
* The console command input.
|
|
59
|
-
*
|
|
60
|
-
* @var object
|
|
61
|
-
*/
|
|
62
|
-
input = {
|
|
63
|
-
options: {},
|
|
64
|
-
arguments: {}
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Execute the console command.
|
|
68
|
-
*/
|
|
69
|
-
async handle(..._args) {
|
|
70
|
-
}
|
|
71
|
-
setApplication(app) {
|
|
72
|
-
this.app = app;
|
|
73
|
-
}
|
|
74
|
-
setInput(options, args, regArgs, dictionary) {
|
|
75
|
-
this.dictionary = dictionary;
|
|
76
|
-
this.input.options = options;
|
|
77
|
-
this.input.arguments = regArgs.map((e, i) => ({
|
|
78
|
-
[e.name()]: args[i]
|
|
79
|
-
})).reduce((e, x) => Object.assign(e, x), {});
|
|
80
|
-
}
|
|
81
|
-
getSignature() {
|
|
82
|
-
return this.signature;
|
|
83
|
-
}
|
|
84
|
-
getDescription() {
|
|
85
|
-
return this.description;
|
|
86
|
-
}
|
|
87
|
-
option(key, def) {
|
|
88
|
-
return this.input.options[key] ?? def;
|
|
89
|
-
}
|
|
90
|
-
options(key) {
|
|
91
|
-
if (key) {
|
|
92
|
-
return this.input.options[key];
|
|
93
|
-
}
|
|
94
|
-
return this.input.options;
|
|
95
|
-
}
|
|
96
|
-
argument(key, def) {
|
|
97
|
-
return this.input.arguments[key] ?? def;
|
|
98
|
-
}
|
|
99
|
-
arguments() {
|
|
100
|
-
return this.input.arguments;
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// src/Commands/ServeCommand.ts
|
|
105
|
-
var import_node_child_process = require("child_process");
|
|
106
|
-
var ServeCommand = class extends Command {
|
|
107
|
-
static {
|
|
108
|
-
__name(this, "ServeCommand");
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* The name and signature of the console command.
|
|
112
|
-
*
|
|
113
|
-
* @var string
|
|
114
|
-
*/
|
|
115
|
-
signature = "serve";
|
|
116
|
-
/**
|
|
117
|
-
* The console command description.
|
|
118
|
-
*
|
|
119
|
-
* @var string
|
|
120
|
-
*/
|
|
121
|
-
description = "Start the Developement Server";
|
|
122
|
-
async handle() {
|
|
123
|
-
try {
|
|
124
|
-
await this.serve();
|
|
125
|
-
} catch (e) {
|
|
126
|
-
this.kernel.output.error(e);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
async serve() {
|
|
130
|
-
const child = (0, import_node_child_process.spawn)("tsup-node", {
|
|
131
|
-
stdio: "inherit",
|
|
132
|
-
shell: true,
|
|
133
|
-
env: Object.assign({}, process.env, {
|
|
134
|
-
NODE_ENV: "development"
|
|
135
|
-
}),
|
|
136
|
-
detached: false
|
|
137
|
-
});
|
|
138
|
-
const cleanup = /* @__PURE__ */ __name(() => {
|
|
139
|
-
console.log(111111);
|
|
140
|
-
if (child.pid) {
|
|
141
|
-
process.kill(child.pid, "SIGTERM");
|
|
142
|
-
}
|
|
143
|
-
}, "cleanup");
|
|
144
|
-
process.on("SIGINT", () => child.kill("SIGINT"));
|
|
145
|
-
process.on("SIGTERM", () => child.kill("SIGTERM"));
|
|
146
|
-
process.on("SIGINT", () => {
|
|
147
|
-
cleanup();
|
|
148
|
-
process.exit(0);
|
|
149
|
-
});
|
|
150
|
-
process.on("SIGTERM", () => {
|
|
151
|
-
cleanup();
|
|
152
|
-
process.exit(0);
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
157
|
-
0 && (module.exports = {
|
|
158
|
-
ServeCommand
|
|
159
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/Contracts/ICommand.ts
|
|
17
|
-
var ICommand_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(ICommand_exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "../chunk-NADN2PHB.js";
|