@h3ravel/console 11.11.0 → 11.11.2

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 ADDED
@@ -0,0 +1,482 @@
1
+ import { FileSystem, Logger, TaskManager, mainTsconfig } from "@h3ravel/shared";
2
+ import { Command, Kernel } from "@h3ravel/musket";
3
+ import { execa } from "execa";
4
+ import preferredPM from "preferred-pm";
5
+ import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
6
+ import { Str } from "@h3ravel/support";
7
+ import nodepath, { join } from "node:path";
8
+ import "tsx/esm";
9
+ import { Application, ContainerResolver, ServiceProvider } from "@h3ravel/core";
10
+ import { existsSync } from "node:fs";
11
+ import { fork } from "child_process";
12
+ import { dirname, join as join$1, resolve } from "path";
13
+
14
+ //#region src/Commands/BuildCommand.ts
15
+ var BuildCommand = class BuildCommand extends Command {
16
+ /**
17
+ * The name and signature of the console command.
18
+ *
19
+ * @var string
20
+ */
21
+ signature = `build
22
+ {--m|minify : Minify your bundle output}
23
+ {--d|dev : Build for dev but don't watch for changes}
24
+ `;
25
+ /**
26
+ * The console command description.
27
+ *
28
+ * @var string
29
+ */
30
+ description = "Build the app for production";
31
+ async handle() {
32
+ try {
33
+ await this.fire();
34
+ } catch (e) {
35
+ Logger.error(e);
36
+ }
37
+ }
38
+ async fire() {
39
+ const outDir$1 = this.option("dev") ? ".h3ravel/serve" : env("DIST_DIR", "dist");
40
+ const minify = this.option("minify");
41
+ const verbosity = this.getVerbosity();
42
+ const debug = verbosity > 0;
43
+ this.newLine();
44
+ await BuildCommand.build({
45
+ outDir: outDir$1,
46
+ minify,
47
+ verbosity,
48
+ debug,
49
+ mute: false
50
+ });
51
+ this.newLine();
52
+ }
53
+ /**
54
+ * build
55
+ */
56
+ static async build({ debug, minify, mute, verbosity, outDir: outDir$1 } = {
57
+ mute: false,
58
+ debug: false,
59
+ minify: false,
60
+ verbosity: 0,
61
+ outDir: "dist"
62
+ }) {
63
+ const pm = (await preferredPM(base_path()))?.name ?? "pnpm";
64
+ const ENV_VARS = {
65
+ EXTENDED_DEBUG: debug ? "true" : "false",
66
+ CLI_BUILD: "true",
67
+ NODE_ENV: "production",
68
+ DIST_DIR: outDir$1,
69
+ DIST_MINIFY: minify,
70
+ LOG_LEVEL: [
71
+ "silent",
72
+ "info",
73
+ "warn",
74
+ "error"
75
+ ][verbosity]
76
+ };
77
+ const silent = ENV_VARS.LOG_LEVEL === "silent" ? "--silent" : null;
78
+ if (mute) return await execa(pm, [
79
+ "tsdown",
80
+ silent,
81
+ "--config-loader",
82
+ "unconfig",
83
+ "-c",
84
+ "tsdown.default.config.ts"
85
+ ].filter((e) => e !== null), {
86
+ stdout: "inherit",
87
+ stderr: "inherit",
88
+ cwd: base_path(),
89
+ env: Object.assign({}, process.env, ENV_VARS)
90
+ });
91
+ const type = outDir$1 === "dist" ? "Production" : "Development";
92
+ return await TaskManager.advancedTaskRunner([[`Creating ${type} Bundle`, "STARTED"], [`${type} Bundle Created`, "COMPLETED"]], async () => {
93
+ await execa(pm, [
94
+ "tsdown",
95
+ silent,
96
+ "--config-loader",
97
+ "unconfig",
98
+ "-c",
99
+ "tsdown.default.config.ts"
100
+ ].filter((e) => e !== null), {
101
+ stdout: "inherit",
102
+ stderr: "inherit",
103
+ cwd: base_path(),
104
+ env: Object.assign({}, process.env, ENV_VARS)
105
+ });
106
+ });
107
+ }
108
+ };
109
+
110
+ //#endregion
111
+ //#region src/Commands/MakeCommand.ts
112
+ var MakeCommand = class extends Command {
113
+ /**
114
+ * The name and signature of the console command.
115
+ *
116
+ * @var string
117
+ */
118
+ signature = `#make:
119
+ {controller : Create a new controller class.
120
+ | {--a|api : Exclude the create and edit methods from the controller}
121
+ | {--m|model= : Generate a resource controller for the given model}
122
+ | {--r|resource : Generate a resource controller class}
123
+ | {--force : Create the controller even if it already exists}
124
+ }
125
+ {resource : Create a new resource.
126
+ | {--c|collection : Create a resource collection}
127
+ | {--force : Create the resource even if it already exists}
128
+ }
129
+ {command : Create a new Musket command.
130
+ | {--command : The terminal command that will be used to invoke the class}
131
+ | {--force : Create the class even if the console command already exists}
132
+ }
133
+ {view : Create a new view.
134
+ | {--force : Create the view even if it already exists}
135
+ }
136
+ {^name : The name of the [name] to generate}
137
+ `;
138
+ /**
139
+ * The console command description.
140
+ *
141
+ * @var string
142
+ */
143
+ description = "Generate component classes";
144
+ async handle() {
145
+ const command = this.dictionary.baseCommand ?? this.dictionary.name;
146
+ if (!this.argument("name")) this.program.error("Please provide a valid name for the " + command);
147
+ await this[{
148
+ controller: "makeController",
149
+ resource: "makeResource",
150
+ view: "makeView",
151
+ command: "makeCommand"
152
+ }[command]]();
153
+ }
154
+ /**
155
+ * Create a new controller class.
156
+ */
157
+ async makeController() {
158
+ const type = this.option("api") ? "-resource" : "";
159
+ const name = this.argument("name");
160
+ const force = this.option("force");
161
+ const crtlrPath = FileSystem.findModulePkg("@h3ravel/http", this.kernel.cwd) ?? "";
162
+ const stubPath = nodepath.join(crtlrPath, `dist/stubs/controller${type}.stub`);
163
+ const path = app_path(`Http/Controllers/${name}.ts`);
164
+ /** The Controller is scoped to a path make sure to create the associated directories */
165
+ if (name.includes("/")) await mkdir(Str.beforeLast(path, "/"), { recursive: true });
166
+ /** Check if the controller already exists */
167
+ if (!force && await FileSystem.fileExists(path)) Logger.error(`ERORR: ${name} controller already exists`);
168
+ let stub = await readFile(stubPath, "utf-8");
169
+ stub = stub.replace(/{{ name }}/g, name);
170
+ await writeFile(path, stub);
171
+ Logger.split("INFO: Controller Created", Logger.log(nodepath.basename(path), "gray", false));
172
+ }
173
+ makeResource() {
174
+ Logger.success("Resource support is not yet available");
175
+ }
176
+ /**
177
+ * Create a new Musket command
178
+ */
179
+ makeCommand() {
180
+ Logger.success("Musket command creation is not yet available");
181
+ }
182
+ /**
183
+ * Create a new view.
184
+ */
185
+ async makeView() {
186
+ const name = this.argument("name");
187
+ const force = this.option("force");
188
+ const path = base_path(`src/resources/views/${name}.edge`);
189
+ /** The view is scoped to a path make sure to create the associated directories */
190
+ if (name.includes("/")) await mkdir(Str.beforeLast(path, "/"), { recursive: true });
191
+ /** Check if the view already exists */
192
+ if (!force && await FileSystem.fileExists(path)) Logger.error(`ERORR: ${name} view already exists`);
193
+ await writeFile(path, `{{-- src/resources/views/${name}.edge --}}`);
194
+ Logger.split("INFO: View Created", Logger.log(`src/resources/views/${name}.edge`, "gray", false));
195
+ }
196
+ };
197
+
198
+ //#endregion
199
+ //#region src/Commands/PostinstallCommand.ts
200
+ var PostinstallCommand = class extends Command {
201
+ /**
202
+ * The name and signature of the console command.
203
+ *
204
+ * @var string
205
+ */
206
+ signature = "postinstall";
207
+ /**
208
+ * The console command description.
209
+ *
210
+ * @var string
211
+ */
212
+ description = "Default post installation command";
213
+ async handle() {
214
+ this.createSqliteDB();
215
+ }
216
+ /**
217
+ * Create sqlite database if none exist
218
+ *
219
+ * @returns
220
+ */
221
+ async createSqliteDB() {
222
+ if (config("database.default") !== "sqlite") return;
223
+ if (!await FileSystem.fileExists(database_path())) await mkdir(database_path(), { recursive: true });
224
+ if (!await FileSystem.fileExists(database_path("db.sqlite"))) await writeFile(database_path("db.sqlite"), "");
225
+ }
226
+ };
227
+
228
+ //#endregion
229
+ //#region src/IO/app.ts
230
+ var app_default = class {
231
+ async fire() {
232
+ const DIST_DIR = process.env.DIST_DIR ?? "/.h3ravel/serve/";
233
+ const providers = [];
234
+ const app = new Application(process.cwd());
235
+ /**
236
+ * Load Service Providers already registered by the app
237
+ */
238
+ const app_providers = base_path(nodepath.join(DIST_DIR, "bootstrap/providers.js"));
239
+ providers.push(...(await import(app_providers)).default);
240
+ /** Add the ConsoleServiceProvider */
241
+ providers.push(ConsoleServiceProvider);
242
+ /** Register all the Service Providers */
243
+ await app.quickStartup(providers, ["CoreServiceProvider"]);
244
+ }
245
+ };
246
+
247
+ //#endregion
248
+ //#region src/fire.ts
249
+ new app_default().fire();
250
+
251
+ //#endregion
252
+ //#region src/IO/zero.ts
253
+ var zero_default = class {
254
+ /**
255
+ * Ensures that the app is pre built
256
+ *
257
+ * @returns
258
+ */
259
+ async spawn(DIST_DIR = ".h3ravel/serve") {
260
+ const pm = (await preferredPM(process.cwd()))?.name ?? "npm";
261
+ const outDir$1 = join(process.env.DIST_DIR ?? DIST_DIR);
262
+ if (await FileSystem.fileExists(outDir$1) && (await readdir(outDir$1)).length > 0) return;
263
+ if (!await FileSystem.fileExists(nodepath.join(outDir$1, "tsconfig.json"))) {
264
+ await mkdir(nodepath.join(outDir$1.replace("/serve", "")), { recursive: true });
265
+ await writeFile(nodepath.join(outDir$1.replace("/serve", ""), "tsconfig.json"), JSON.stringify(mainTsconfig, null, 2));
266
+ }
267
+ const ENV_VARS = {
268
+ EXTENDED_DEBUG: "false",
269
+ CLI_BUILD: "true",
270
+ NODE_ENV: "production",
271
+ DIST_DIR: outDir$1,
272
+ LOG_LEVEL: "silent"
273
+ };
274
+ await execa(pm, [
275
+ "tsdown",
276
+ "--silent",
277
+ "--config-loader",
278
+ "unconfig",
279
+ "-c",
280
+ "tsdown.default.config.ts"
281
+ ].filter((e) => e !== null), {
282
+ stdout: "inherit",
283
+ stderr: "inherit",
284
+ cwd: join(process.cwd()),
285
+ env: Object.assign({}, process.env, ENV_VARS)
286
+ });
287
+ }
288
+ };
289
+
290
+ //#endregion
291
+ //#region src/logo.ts
292
+ const logo = String.raw`
293
+ 111
294
+ 111111111
295
+ 1111111111 111111
296
+ 111111 111 111111
297
+ 111111 111 111111
298
+ 11111 111 11111
299
+ 1111111 111 1111111
300
+ 111 11111 111 111111 111 1111 1111 11111111 1111
301
+ 111 11111 1111 111111 111 1111 1111 1111 11111 1111
302
+ 111 11111 11111 111 1111 1111 111111111111 111111111111 1111 1111111 1111
303
+ 111 111111 1111 111 111111111111 111111 11111 1111 111 1111 11111111 1111 1111
304
+ 111 111 11111111 111 1101 1101 111111111 11111111 1111 1111111111111111101
305
+ 111 1111111111111111 1111 111 1111 1111 111 11111011 1111 111 1111111 1101 1111
306
+ 111 11111 1110111111111111 111 1111 1111 1111111101 1111 111111111 1111011 111111111 1111
307
+ 1111111 111110111110 111 1111 1111 111111 1111 11011101 10111 11111 1111
308
+ 11011 111111 11 11111
309
+ 111111 11101 111111
310
+ 111111 111 111111
311
+ 111111 111 111111
312
+ 111111111
313
+ 110
314
+ `;
315
+ const altLogo = String.raw`
316
+ _ _ _____ _
317
+ | | | |___ / _ __ __ ___ _____| |
318
+ | |_| | |_ \| '__/ _ \ \ / / _ \ |
319
+ | _ |___) | | | (_| |\ V / __/ |
320
+ |_| |_|____/|_| \__,_| \_/ \___|_|
321
+
322
+ `;
323
+
324
+ //#endregion
325
+ //#region ../../node_modules/.pnpm/@rollup+plugin-run@3.1.0_rollup@4.52.3/node_modules/@rollup/plugin-run/dist/es/index.js
326
+ function run(opts = {}) {
327
+ let input;
328
+ let proc;
329
+ const args = opts.args || [];
330
+ const allowRestarts = opts.allowRestarts || false;
331
+ const overrideInput = opts.input;
332
+ const forkOptions = opts.options || opts;
333
+ delete forkOptions.args;
334
+ delete forkOptions.allowRestarts;
335
+ return {
336
+ name: "run",
337
+ buildStart(options) {
338
+ let inputs = overrideInput !== null && overrideInput !== void 0 ? overrideInput : options.input;
339
+ if (typeof inputs === "string") inputs = [inputs];
340
+ if (typeof inputs === "object") inputs = Object.values(inputs);
341
+ if (inputs.length > 1) throw new Error(`@rollup/plugin-run must have a single entry point; consider setting the \`input\` option`);
342
+ input = resolve(inputs[0]);
343
+ },
344
+ generateBundle(_outputOptions, _bundle, isWrite) {
345
+ if (!isWrite) this.error(`@rollup/plugin-run currently only works with bundles that are written to disk`);
346
+ },
347
+ writeBundle(outputOptions, bundle) {
348
+ const forkBundle = (dir$1, entryFileName$1) => {
349
+ if (proc) proc.kill();
350
+ proc = fork(join$1(dir$1, entryFileName$1), args, forkOptions);
351
+ };
352
+ const dir = outputOptions.dir || dirname(outputOptions.file);
353
+ const entryFileName = Object.keys(bundle).find((fileName) => {
354
+ const chunk = bundle[fileName];
355
+ return chunk.isEntry && chunk.facadeModuleId === input;
356
+ });
357
+ if (entryFileName) {
358
+ forkBundle(dir, entryFileName);
359
+ if (allowRestarts) {
360
+ process.stdin.resume();
361
+ process.stdin.setEncoding("utf8");
362
+ process.stdin.on("data", (data) => {
363
+ const line = data.toString().trim().toLowerCase();
364
+ if (line === "rs" || line === "restart" || data.toString().charCodeAt(0) === 11) forkBundle(dir, entryFileName);
365
+ else if (line === "cls" || line === "clear" || data.toString().charCodeAt(0) === 12) console.clear();
366
+ });
367
+ }
368
+ } else this.error(`@rollup/plugin-run could not find output chunk`);
369
+ }
370
+ };
371
+ }
372
+
373
+ //#endregion
374
+ //#region src/TsdownConfig.ts
375
+ const env$1 = process.env.NODE_ENV || "development";
376
+ let outDir = env$1 === "development" ? ".h3ravel/serve" : "dist";
377
+ if (process.env.DIST_DIR) outDir = process.env.DIST_DIR;
378
+ const TsDownConfig = {
379
+ outDir,
380
+ entry: ["src/**/*.ts"],
381
+ format: ["esm"],
382
+ target: "node22",
383
+ sourcemap: env$1 === "development",
384
+ minify: !!process.env.DIST_MINIFY,
385
+ external: [/^@h3ravel\/.*/gi],
386
+ clean: true,
387
+ shims: true,
388
+ copy: [
389
+ {
390
+ from: "public",
391
+ to: outDir
392
+ },
393
+ "src/resources",
394
+ "src/database"
395
+ ],
396
+ env: env$1 === "development" ? {
397
+ NODE_ENV: env$1,
398
+ DIST_DIR: outDir
399
+ } : {},
400
+ watch: env$1 === "development" && process.env.CLI_BUILD !== "true" ? [
401
+ ".env",
402
+ ".env.*",
403
+ "src",
404
+ "../../packages"
405
+ ] : false,
406
+ dts: false,
407
+ logLevel: "silent",
408
+ nodeProtocol: true,
409
+ skipNodeModulesBundle: true,
410
+ hooks(e) {
411
+ e.hook("build:done", async () => {
412
+ const paths = [
413
+ "database/migrations",
414
+ "database/factories",
415
+ "database/seeders"
416
+ ];
417
+ for (let i = 0; i < paths.length; i++) {
418
+ const name = paths[i];
419
+ if (existsSync(nodepath.join(outDir, name))) await rm(nodepath.join(outDir, name), { recursive: true });
420
+ }
421
+ });
422
+ },
423
+ plugins: env$1 === "development" && process.env.CLI_BUILD !== "true" ? [run({
424
+ env: Object.assign({}, process.env, {
425
+ NODE_ENV: env$1,
426
+ DIST_DIR: outDir
427
+ }),
428
+ execArgv: ["-r", "source-map-support/register"],
429
+ allowRestarts: false,
430
+ input: process.cwd() + "/src/server.ts"
431
+ })] : []
432
+ };
433
+ var TsdownConfig_default = TsDownConfig;
434
+
435
+ //#endregion
436
+ //#region src/Providers/ConsoleServiceProvider.ts
437
+ /**
438
+ * Handles CLI commands and tooling.
439
+ *
440
+ * Auto-Registered when in CLI mode
441
+ */
442
+ var ConsoleServiceProvider = class extends ServiceProvider {
443
+ static priority = 992;
444
+ /**
445
+ * Indicate that this service provider only runs in console
446
+ */
447
+ static runsInConsole = true;
448
+ runsInConsole = true;
449
+ register() {}
450
+ boot() {
451
+ const DIST_DIR = `/${env("DIST_DIR", ".h3ravel/serve")}/`.replaceAll("//", "");
452
+ Kernel.init(this.app, {
453
+ logo: altLogo,
454
+ resolver: new ContainerResolver(this.app).resolveMethodParams,
455
+ tsDownConfig: TsdownConfig_default,
456
+ packages: [{
457
+ name: "@h3ravel/core",
458
+ alias: "H3ravel Framework"
459
+ }, {
460
+ name: "@h3ravel/musket",
461
+ alias: "Musket CLI"
462
+ }],
463
+ cliName: "musket",
464
+ hideMusketInfo: true,
465
+ discoveryPaths: [app_path("Console/Commands/*.js").replace("/src/", DIST_DIR)]
466
+ });
467
+ process.on("SIGINT", () => {
468
+ process.exit(0);
469
+ });
470
+ process.on("SIGTERM", () => {
471
+ process.exit(0);
472
+ });
473
+ }
474
+ };
475
+
476
+ //#endregion
477
+ //#region src/spawn.ts
478
+ new zero_default().spawn();
479
+
480
+ //#endregion
481
+ export { BuildCommand, ConsoleServiceProvider, MakeCommand, PostinstallCommand, TsDownConfig };
482
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["outDir","providers: AServiceProvider[]","path","musket","outDir","path","join","dir","entryFileName","env","TsDownConfig: Options","path","zero"],"sources":["../src/Commands/BuildCommand.ts","../src/Commands/MakeCommand.ts","../src/Commands/PostinstallCommand.ts","../src/IO/app.ts","../src/fire.ts","../src/IO/zero.ts","../src/logo.ts","../../../node_modules/.pnpm/@rollup+plugin-run@3.1.0_rollup@4.52.3/node_modules/@rollup/plugin-run/dist/es/index.js","../src/TsdownConfig.ts","../src/Providers/ConsoleServiceProvider.ts","../src/spawn.ts"],"sourcesContent":["import { Logger, TaskManager } from '@h3ravel/shared'\n\nimport { Command } from '@h3ravel/musket'\nimport { execa } from 'execa'\nimport preferredPM from 'preferred-pm'\n\nexport class BuildCommand extends Command {\n\n /**\n * The name and signature of the console command.\n *\n * @var string\n */\n protected signature: string = `build\n {--m|minify : Minify your bundle output}\n {--d|dev : Build for dev but don't watch for changes}\n `\n\n /**\n * The console command description.\n *\n * @var string\n */\n protected description: string = 'Build the app for production'\n\n public async handle () {\n try {\n await this.fire()\n } catch (e) {\n Logger.error(e as any)\n }\n }\n\n protected async fire () {\n const outDir = this.option('dev') ? '.h3ravel/serve' : env('DIST_DIR', 'dist')\n const minify = this.option('minify')\n const verbosity = this.getVerbosity()\n const debug = verbosity > 0\n\n this.newLine()\n await BuildCommand.build({ outDir, minify, verbosity, debug, mute: false })\n this.newLine()\n }\n\n /**\n * build\n */\n public static async build ({ debug, minify, mute, verbosity, outDir } = {\n mute: false,\n debug: false,\n minify: false,\n verbosity: 0,\n outDir: 'dist'\n }) {\n\n const pm = (await preferredPM(base_path()))?.name ?? 'pnpm'\n\n const LOG_LEVELS = [\n 'silent',\n 'info',\n 'warn',\n 'error',\n ]\n\n const ENV_VARS = {\n EXTENDED_DEBUG: debug ? 'true' : 'false',\n CLI_BUILD: 'true',\n NODE_ENV: 'production',\n DIST_DIR: outDir,\n DIST_MINIFY: minify,\n LOG_LEVEL: LOG_LEVELS[verbosity]\n }\n\n const silent = ENV_VARS.LOG_LEVEL === 'silent' ? '--silent' : null\n\n if (mute) {\n return await execa(\n pm,\n ['tsdown', silent, '--config-loader', 'unconfig', '-c', 'tsdown.default.config.ts'].filter(e => e !== null),\n { stdout: 'inherit', stderr: 'inherit', cwd: base_path(), env: Object.assign({}, process.env, ENV_VARS) }\n )\n }\n\n const type = outDir === 'dist' ? 'Production' : 'Development'\n\n return await TaskManager.advancedTaskRunner(\n [[`Creating ${type} Bundle`, 'STARTED'], [`${type} Bundle Created`, 'COMPLETED']],\n async () => {\n await execa(\n pm,\n ['tsdown', silent, '--config-loader', 'unconfig', '-c', 'tsdown.default.config.ts'].filter(e => e !== null),\n { stdout: 'inherit', stderr: 'inherit', cwd: base_path(), env: Object.assign({}, process.env, ENV_VARS) }\n )\n }\n )\n }\n}\n","import { FileSystem, Logger } from '@h3ravel/shared'\nimport { mkdir, readFile, writeFile } from 'node:fs/promises'\n\nimport { Command } from '@h3ravel/musket'\nimport { Str } from '@h3ravel/support'\nimport nodepath from 'node:path'\n\nexport class MakeCommand extends Command {\n\n /**\n * The name and signature of the console command.\n *\n * @var string\n */\n protected signature: string = `#make:\n {controller : Create a new controller class. \n | {--a|api : Exclude the create and edit methods from the controller} \n | {--m|model= : Generate a resource controller for the given model} \n | {--r|resource : Generate a resource controller class} \n | {--force : Create the controller even if it already exists}\n }\n {resource : Create a new resource. \n | {--c|collection : Create a resource collection}\n | {--force : Create the resource even if it already exists}\n }\n {command : Create a new Musket command. \n | {--command : The terminal command that will be used to invoke the class} \n | {--force : Create the class even if the console command already exists}\n }\n {view : Create a new view.\n | {--force : Create the view even if it already exists}\n }\n {^name : The name of the [name] to generate}\n `\n /**\n * The console command description.\n *\n * @var string\n */\n protected description: string = 'Generate component classes'\n\n public async handle (this: any) {\n const command = (this.dictionary.baseCommand ?? this.dictionary.name) as never\n\n if (!this.argument('name')) {\n this.program.error('Please provide a valid name for the ' + command)\n }\n\n const methods = {\n controller: 'makeController',\n resource: 'makeResource',\n view: 'makeView',\n command: 'makeCommand',\n } as const\n\n await this[methods[command]]()\n }\n\n /**\n * Create a new controller class.\n */\n protected async makeController () {\n const type = this.option('api') ? '-resource' : ''\n const name = this.argument('name')\n const force = this.option('force')\n\n const crtlrPath = FileSystem.findModulePkg('@h3ravel/http', this.kernel.cwd) ?? ''\n const stubPath = nodepath.join(crtlrPath, `dist/stubs/controller${type}.stub`)\n const path = app_path(`Http/Controllers/${name}.ts`)\n\n /** The Controller is scoped to a path make sure to create the associated directories */\n if (name.includes('/')) {\n await mkdir(Str.beforeLast(path, '/'), { recursive: true })\n }\n\n /** Check if the controller already exists */\n if (!force && await FileSystem.fileExists(path)) {\n Logger.error(`ERORR: ${name} controller already exists`)\n }\n\n let stub = await readFile(stubPath, 'utf-8')\n stub = stub.replace(/{{ name }}/g, name)\n\n await writeFile(path, stub)\n Logger.split('INFO: Controller Created', Logger.log(nodepath.basename(path), 'gray', false))\n }\n\n protected makeResource () {\n Logger.success('Resource support is not yet available')\n }\n\n /**\n * Create a new Musket command\n */\n protected makeCommand () {\n Logger.success('Musket command creation is not yet available')\n }\n\n /**\n * Create a new view.\n */\n protected async makeView () {\n const name = this.argument('name')\n const force = this.option('force')\n\n const path = base_path(`src/resources/views/${name}.edge`)\n\n /** The view is scoped to a path make sure to create the associated directories */\n if (name.includes('/')) {\n await mkdir(Str.beforeLast(path, '/'), { recursive: true })\n }\n\n /** Check if the view already exists */\n if (!force && await FileSystem.fileExists(path)) {\n Logger.error(`ERORR: ${name} view already exists`)\n }\n\n await writeFile(path, `{{-- src/resources/views/${name}.edge --}}`)\n Logger.split('INFO: View Created', Logger.log(`src/resources/views/${name}.edge`, 'gray', false))\n }\n}\n","import { mkdir, writeFile } from 'node:fs/promises'\n\nimport { Command } from '@h3ravel/musket'\nimport { FileSystem } from '@h3ravel/shared'\n\nexport class PostinstallCommand extends Command {\n\n /**\n * The name and signature of the console command.\n *\n * @var string\n */\n protected signature: string = 'postinstall'\n\n /**\n * The console command description.\n *\n * @var string\n */\n protected description: string = 'Default post installation command'\n\n public async handle () {\n this.createSqliteDB()\n }\n\n /**\n * Create sqlite database if none exist\n * \n * @returns \n */\n private async createSqliteDB () {\n if (config('database.default') !== 'sqlite') return\n\n if (!await FileSystem.fileExists(database_path())) {\n await mkdir(database_path(), { recursive: true })\n }\n\n if (!await FileSystem.fileExists(database_path('db.sqlite'))) {\n await writeFile(database_path('db.sqlite'), '')\n }\n }\n}\n","import { Application, ServiceProvider } from '@h3ravel/core'\n\nimport { ConsoleServiceProvider } from '..'\nimport path from 'node:path'\n\ntype AServiceProvider = (new (_app: Application) => ServiceProvider) & Partial<ServiceProvider>\n\nexport default class {\n async fire () {\n\n const DIST_DIR = process.env.DIST_DIR ?? '/.h3ravel/serve/'\n const providers: AServiceProvider[] = []\n const app = new Application(process.cwd())\n\n /**\n * Load Service Providers already registered by the app\n */\n const app_providers = base_path(path.join(DIST_DIR, 'bootstrap/providers.js'))\n providers.push(...(await import(app_providers)).default)\n\n /** Add the ConsoleServiceProvider */\n providers.push(ConsoleServiceProvider)\n\n /** Register all the Service Providers */\n await app.quickStartup(providers, ['CoreServiceProvider'])\n }\n}\n","#!/usr/bin/env node\n\nimport 'tsx/esm'\n\nimport musket from './IO/app'\n\nnew musket().fire()\n","import { FileSystem, mainTsconfig } from '@h3ravel/shared'\nimport { mkdir, readdir, writeFile } from 'node:fs/promises'\nimport path, { join } from 'node:path'\n\nimport { execa } from 'execa'\nimport preferredPM from 'preferred-pm'\n\nexport default class {\n /**\n * Ensures that the app is pre built\n * \n * @returns \n */\n async spawn (DIST_DIR = '.h3ravel/serve') {\n const pm = (await preferredPM(process.cwd()))?.name ?? 'npm'\n const outDir = join(process.env.DIST_DIR ?? DIST_DIR)\n\n if (await FileSystem.fileExists(outDir) && (await readdir(outDir)).length > 0) return\n if (!await FileSystem.fileExists(path.join(outDir, 'tsconfig.json'))) {\n await mkdir(path.join(outDir.replace('/serve', '')), { recursive: true })\n await writeFile(path.join(outDir.replace('/serve', ''), 'tsconfig.json'), JSON.stringify(mainTsconfig, null, 2))\n }\n\n const ENV_VARS = {\n EXTENDED_DEBUG: 'false',\n CLI_BUILD: 'true',\n NODE_ENV: 'production',\n DIST_DIR: outDir,\n LOG_LEVEL: 'silent'\n }\n\n await execa(\n pm,\n ['tsdown', '--silent', '--config-loader', 'unconfig', '-c', 'tsdown.default.config.ts'].filter(e => e !== null),\n { stdout: 'inherit', stderr: 'inherit', cwd: join(process.cwd()), env: Object.assign({}, process.env, ENV_VARS) }\n )\n }\n}\n","export const logo = String.raw`\n 111 \n 111111111 \n 1111111111 111111 \n 111111 111 111111 \n 111111 111 111111 \n11111 111 11111 \n1111111 111 1111111 \n111 11111 111 111111 111 1111 1111 11111111 1111\n111 11111 1111 111111 111 1111 1111 1111 11111 1111\n111 11111 11111 111 1111 1111 111111111111 111111111111 1111 1111111 1111\n111 111111 1111 111 111111111111 111111 11111 1111 111 1111 11111111 1111 1111\n111 111 11111111 111 1101 1101 111111111 11111111 1111 1111111111111111101\n111 1111111111111111 1111 111 1111 1111 111 11111011 1111 111 1111111 1101 1111\n111 11111 1110111111111111 111 1111 1111 1111111101 1111 111111111 1111011 111111111 1111\n1111111 111110111110 111 1111 1111 111111 1111 11011101 10111 11111 1111\n11011 111111 11 11111 \n 111111 11101 111111 \n 111111 111 111111 \n 111111 111 111111 \n 111111111 \n 110 \n`\n\nexport const altLogo = String.raw`\n _ _ _____ _ \n| | | |___ / _ __ __ ___ _____| |\n| |_| | |_ \\| '__/ _ \\ \\ / / _ \\ |\n| _ |___) | | | (_| |\\ V / __/ |\n|_| |_|____/|_| \\__,_| \\_/ \\___|_|\n\n`\n","import { fork } from 'child_process';\nimport { resolve, dirname, join } from 'path';\n\nfunction run(opts = {}) {\n let input;\n let proc;\n const args = opts.args || [];\n const allowRestarts = opts.allowRestarts || false;\n const overrideInput = opts.input;\n const forkOptions = opts.options || opts;\n delete forkOptions.args;\n delete forkOptions.allowRestarts;\n return {\n name: 'run',\n buildStart(options) {\n let inputs = overrideInput !== null && overrideInput !== void 0 ? overrideInput : options.input;\n if (typeof inputs === 'string') {\n inputs = [inputs];\n }\n if (typeof inputs === 'object') {\n inputs = Object.values(inputs);\n }\n if (inputs.length > 1) {\n throw new Error(`@rollup/plugin-run must have a single entry point; consider setting the \\`input\\` option`);\n }\n input = resolve(inputs[0]);\n },\n generateBundle(_outputOptions, _bundle, isWrite) {\n if (!isWrite) {\n this.error(`@rollup/plugin-run currently only works with bundles that are written to disk`);\n }\n },\n writeBundle(outputOptions, bundle) {\n const forkBundle = (dir, entryFileName) => {\n if (proc)\n proc.kill();\n proc = fork(join(dir, entryFileName), args, forkOptions);\n };\n const dir = outputOptions.dir || dirname(outputOptions.file);\n const entryFileName = Object.keys(bundle).find((fileName) => {\n const chunk = bundle[fileName];\n return chunk.isEntry && chunk.facadeModuleId === input;\n });\n if (entryFileName) {\n forkBundle(dir, entryFileName);\n if (allowRestarts) {\n process.stdin.resume();\n process.stdin.setEncoding('utf8');\n process.stdin.on('data', (data) => {\n const line = data.toString().trim().toLowerCase();\n if (line === 'rs' || line === 'restart' || data.toString().charCodeAt(0) === 11) {\n forkBundle(dir, entryFileName);\n }\n else if (line === 'cls' || line === 'clear' || data.toString().charCodeAt(0) === 12) {\n // eslint-disable-next-line no-console\n console.clear();\n }\n });\n }\n }\n else {\n this.error(`@rollup/plugin-run could not find output chunk`);\n }\n }\n };\n}\n\nexport { run as default };\n//# sourceMappingURL=index.js.map\n","import { Options } from 'tsdown'\nimport { existsSync } from 'node:fs'\nimport path from 'node:path'\nimport { rm } from 'node:fs/promises'\nimport run from '@rollup/plugin-run'\n\nconst env = process.env.NODE_ENV || 'development'\nlet outDir = env === 'development' ? '.h3ravel/serve' : 'dist'\nif (process.env.DIST_DIR) {\n outDir = process.env.DIST_DIR\n}\n\nexport const TsDownConfig: Options = {\n outDir,\n entry: ['src/**/*.ts'],\n format: ['esm'],//, 'cjs'],\n target: 'node22',\n sourcemap: env === 'development',\n minify: !!process.env.DIST_MINIFY,\n external: [\n /^@h3ravel\\/.*/gi,\n ],\n clean: true,\n shims: true,\n copy: [{ from: 'public', to: outDir }, 'src/resources', 'src/database'],\n env: env === 'development' ? {\n NODE_ENV: env,\n DIST_DIR: outDir,\n } : {},\n watch:\n env === 'development' && process.env.CLI_BUILD !== 'true'\n ? ['.env', '.env.*', 'src', '../../packages']\n : false,\n dts: false,\n logLevel: 'silent',\n nodeProtocol: true,\n skipNodeModulesBundle: true,\n hooks (e) {\n e.hook('build:done', async () => {\n const paths = ['database/migrations', 'database/factories', 'database/seeders']\n for (let i = 0; i < paths.length; i++) {\n const name = paths[i]\n if (existsSync(path.join(outDir, name)))\n await rm(path.join(outDir, name), { recursive: true })\n }\n })\n },\n plugins: env === 'development' && process.env.CLI_BUILD !== 'true' ? [\n run({\n env: Object.assign({}, process.env, {\n NODE_ENV: env,\n DIST_DIR: outDir,\n }),\n execArgv: ['-r', 'source-map-support/register'],\n allowRestarts: false,\n input: process.cwd() + '/src/server.ts'//\n })\n ] : [],\n}\n\nexport default TsDownConfig\n","/// <reference path=\"../../../core/src/app.globals.d.ts\" />\n\nimport { ContainerResolver, ServiceProvider } from '@h3ravel/core'\n\nimport { Kernel } from '@h3ravel/musket'\nimport { altLogo } from '../logo'\nimport tsDownConfig from '../TsdownConfig'\n\n/**\n * Handles CLI commands and tooling.\n * \n * Auto-Registered when in CLI mode\n */\nexport class ConsoleServiceProvider extends ServiceProvider {\n public static priority = 992\n\n /**\n * Indicate that this service provider only runs in console\n */\n public static runsInConsole = true\n public runsInConsole = true\n\n register () {\n }\n\n boot () {\n const DIST_DIR = `/${env('DIST_DIR', '.h3ravel/serve')}/`.replaceAll('//', '')\n\n Kernel.init(\n this.app,\n {\n logo: altLogo,\n resolver: new ContainerResolver(this.app).resolveMethodParams,\n tsDownConfig,\n packages: [\n { name: '@h3ravel/core', alias: 'H3ravel Framework' },\n { name: '@h3ravel/musket', alias: 'Musket CLI' }\n ],\n cliName: 'musket',\n hideMusketInfo: true,\n discoveryPaths: [app_path('Console/Commands/*.js').replace('/src/', DIST_DIR)],\n }\n )\n\n process.on('SIGINT', () => {\n process.exit(0)\n })\n process.on('SIGTERM', () => {\n process.exit(0)\n })\n }\n}\n","#!/usr/bin/env node\n\nimport zero from './IO/zero'\n\nnew zero().spawn()\n\n"],"x_google_ignoreList":[7],"mappings":";;;;;;;;;;;;;;AAMA,IAAa,eAAb,MAAa,qBAAqB,QAAQ;;;;;;CAOtC,AAAU,YAAoB;;;;;;;;;CAU9B,AAAU,cAAsB;CAEhC,MAAa,SAAU;AACnB,MAAI;AACA,SAAM,KAAK,MAAM;WACZ,GAAG;AACR,UAAO,MAAM,EAAS;;;CAI9B,MAAgB,OAAQ;EACpB,MAAMA,WAAS,KAAK,OAAO,MAAM,GAAG,mBAAmB,IAAI,YAAY,OAAO;EAC9E,MAAM,SAAS,KAAK,OAAO,SAAS;EACpC,MAAM,YAAY,KAAK,cAAc;EACrC,MAAM,QAAQ,YAAY;AAE1B,OAAK,SAAS;AACd,QAAM,aAAa,MAAM;GAAE;GAAQ;GAAQ;GAAW;GAAO,MAAM;GAAO,CAAC;AAC3E,OAAK,SAAS;;;;;CAMlB,aAAoB,MAAO,EAAE,OAAO,QAAQ,MAAM,WAAW,qBAAW;EACpE,MAAM;EACN,OAAO;EACP,QAAQ;EACR,WAAW;EACX,QAAQ;EACX,EAAE;EAEC,MAAM,MAAM,MAAM,YAAY,WAAW,CAAC,GAAG,QAAQ;EASrD,MAAM,WAAW;GACb,gBAAgB,QAAQ,SAAS;GACjC,WAAW;GACX,UAAU;GACV,UAAUA;GACV,aAAa;GACb,WAbe;IACf;IACA;IACA;IACA;IACH,CAQyB;GACzB;EAED,MAAM,SAAS,SAAS,cAAc,WAAW,aAAa;AAE9D,MAAI,KACA,QAAO,MAAM,MACT,IACA;GAAC;GAAU;GAAQ;GAAmB;GAAY;GAAM;GAA2B,CAAC,QAAO,MAAK,MAAM,KAAK,EAC3G;GAAE,QAAQ;GAAW,QAAQ;GAAW,KA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BAAiB,QAAQ,IAAI,cAAc,SAAS,CACjE,IAAI;EACA,KAAK,OAAO,OAAO,EAAE,EAAE,QAAQ,KAAK;GAChC,UAAUA;GACV,UAAU;GACb,CAAC;EACF,UAAU,CAAC,MAAM,8BAA8B;EAC/C,eAAe;EACf,OAAO,QAAQ,KAAK,GAAG;EAC1B,CAAC,CACL,GAAG,EAAE;CACT;AAED,2BAAe;;;;;;;;;AC/Cf,IAAa,yBAAb,cAA4C,gBAAgB;CACxD,OAAc,WAAW;;;;CAKzB,OAAc,gBAAgB;CAC9B,AAAO,gBAAgB;CAEvB,WAAY;CAGZ,OAAQ;EACJ,MAAM,WAAW,IAAI,IAAI,YAAY,iBAAiB,CAAC,GAAG,WAAW,MAAM,GAAG;AAE9E,SAAO,KACH,KAAK,KACL;GACI,MAAM;GACN,UAAU,IAAI,kBAAkB,KAAK,IAAI,CAAC;GAC1C;GACA,UAAU,CACN;IAAE,MAAM;IAAiB,OAAO;IAAqB,EACrD;IAAE,MAAM;IAAmB,OAAO;IAAc,CACnD;GACD,SAAS;GACT,gBAAgB;GAChB,gBAAgB,CAAC,SAAS,wBAAwB,CAAC,QAAQ,SAAS,SAAS,CAAC;GACjF,CACJ;AAED,UAAQ,GAAG,gBAAgB;AACvB,WAAQ,KAAK,EAAE;IACjB;AACF,UAAQ,GAAG,iBAAiB;AACxB,WAAQ,KAAK,EAAE;IACjB;;;;;;AC7CV,IAAIG,cAAM,CAAC,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/console",
3
- "version": "11.11.0",
3
+ "version": "11.11.2",
4
4
  "description": "CLI utilities for scaffolding, running migrations, tasks and for H3ravel.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -34,7 +34,7 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "homepage": "https://h3ravel.toneflix.net",
37
+ "homepage": "https://h3ravel.toneflix.net/musket",
38
38
  "repository": {
39
39
  "type": "git",
40
40
  "url": "git+https://github.com/h3ravel/framework.git",