@h3ravel/console 11.0.5 → 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.
Files changed (78) hide show
  1. package/bin/fire.cjs +2 -0
  2. package/bin/fire.js +2 -0
  3. package/dist/Utils-7OrjoB1C.d.cts +22 -0
  4. package/dist/Utils-B1kpj9-1.cjs +130 -0
  5. package/dist/Utils-B1kpj9-1.cjs.map +1 -0
  6. package/dist/Utils-DAJvoXlr.js +86 -0
  7. package/dist/Utils-DAJvoXlr.js.map +1 -0
  8. package/dist/Utils-DxnHOGMz.d.ts +22 -0
  9. package/dist/Utils.cjs +3 -217
  10. package/dist/Utils.d.cts +2 -0
  11. package/dist/Utils.d.ts +2 -0
  12. package/dist/Utils.js +3 -9
  13. package/dist/index.cjs +885 -921
  14. package/dist/index.cjs.map +1 -0
  15. package/dist/index.d.cts +270 -290
  16. package/dist/index.d.ts +270 -290
  17. package/dist/index.js +899 -44
  18. package/dist/index.js.map +1 -0
  19. package/package.json +36 -19
  20. package/bin/run.cjs +0 -26
  21. package/bin/run.js +0 -26
  22. package/dist/Commands/Command.cjs +0 -104
  23. package/dist/Commands/Command.js +0 -7
  24. package/dist/Commands/MakeCommand.cjs +0 -433
  25. package/dist/Commands/MakeCommand.js +0 -9
  26. package/dist/Commands/MigrateCommand.cjs +0 -202
  27. package/dist/Commands/MigrateCommand.js +0 -8
  28. package/dist/Commands/ServeCommand.cjs +0 -159
  29. package/dist/Commands/ServeCommand.js +0 -8
  30. package/dist/Contracts/ICommand.cjs +0 -18
  31. package/dist/Contracts/ICommand.js +0 -1
  32. package/dist/IO/app.cjs +0 -935
  33. package/dist/IO/app.js +0 -17
  34. package/dist/IO/providers.cjs +0 -911
  35. package/dist/IO/providers.js +0 -16
  36. package/dist/Kernel.cjs +0 -892
  37. package/dist/Kernel.js +0 -14
  38. package/dist/Musket.cjs +0 -837
  39. package/dist/Musket.js +0 -13
  40. package/dist/Providers/ConsoleServiceProvider.cjs +0 -904
  41. package/dist/Providers/ConsoleServiceProvider.js +0 -15
  42. package/dist/Signature.cjs +0 -172
  43. package/dist/Signature.js +0 -7
  44. package/dist/chunk-2O2AYFAG.js +0 -63
  45. package/dist/chunk-3FVPHQCH.js +0 -151
  46. package/dist/chunk-3VCNSA6P.js +0 -14
  47. package/dist/chunk-3WHUADTN.js +0 -6
  48. package/dist/chunk-6OCHCPBP.js +0 -36
  49. package/dist/chunk-CTQ6DUT2.js +0 -8
  50. package/dist/chunk-E5XIGIEX.js +0 -14
  51. package/dist/chunk-FOSDCKCR.js +0 -106
  52. package/dist/chunk-GVGO5OAK.js +0 -8
  53. package/dist/chunk-GXRCTWKL.js +0 -16
  54. package/dist/chunk-HVKW7JK4.js +0 -8
  55. package/dist/chunk-IGEFNODG.js +0 -22
  56. package/dist/chunk-JXL4VJHZ.js +0 -36
  57. package/dist/chunk-KMIFCLXG.js +0 -16
  58. package/dist/chunk-M4ZRDJJ2.js +0 -68
  59. package/dist/chunk-MAQAT3PU.js +0 -32
  60. package/dist/chunk-NADN2PHB.js +0 -0
  61. package/dist/chunk-O45AB4MX.js +0 -83
  62. package/dist/chunk-P7M5PEDY.js +0 -18
  63. package/dist/chunk-PMV4TMFS.js +0 -151
  64. package/dist/chunk-POF4JGTX.js +0 -186
  65. package/dist/chunk-RRP7K5LI.js +0 -36
  66. package/dist/chunk-SHUYVCID.js +0 -6
  67. package/dist/chunk-SP4JKAUC.js +0 -63
  68. package/dist/chunk-TJZCDDEV.js +0 -36
  69. package/dist/chunk-TN5SV7LF.js +0 -133
  70. package/dist/chunk-U6TOLKGJ.js +0 -22
  71. package/dist/chunk-UCOXL3OM.js +0 -0
  72. package/dist/chunk-URLTFJET.js +0 -68
  73. package/dist/chunk-XCOSZXAE.js +0 -133
  74. package/dist/chunk-XSL373TG.js +0 -36
  75. package/dist/chunk-YAYU7VOK.js +0 -8
  76. package/dist/chunk-ZTIO25VB.js +0 -8
  77. package/dist/run.cjs +0 -929
  78. 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: true
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,8 +0,0 @@
1
- import {
2
- ServeCommand
3
- } from "../chunk-2O2AYFAG.js";
4
- import "../chunk-O45AB4MX.js";
5
- import "../chunk-SHUYVCID.js";
6
- export {
7
- ServeCommand
8
- };
@@ -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";