@h3ravel/console 11.18.0 → 11.18.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.d.ts +1 -45
- package/dist/index.js +1 -74
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -47,50 +47,6 @@ declare class BuildCommand extends Command {
|
|
|
47
47
|
}>>;
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region src/Commands/DevCommand.d.ts
|
|
51
|
-
declare class DevCommand extends Command {
|
|
52
|
-
/**
|
|
53
|
-
* The name and signature of the console command.
|
|
54
|
-
*
|
|
55
|
-
* @var string
|
|
56
|
-
*/
|
|
57
|
-
protected signature: string;
|
|
58
|
-
/**
|
|
59
|
-
* The console command description.
|
|
60
|
-
*
|
|
61
|
-
* @var string
|
|
62
|
-
*/
|
|
63
|
-
protected description: string;
|
|
64
|
-
handle(): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* Build output for developement
|
|
67
|
-
*
|
|
68
|
-
* @param param0
|
|
69
|
-
* @returns
|
|
70
|
-
*/
|
|
71
|
-
static dev({
|
|
72
|
-
debug,
|
|
73
|
-
minify,
|
|
74
|
-
verbosity
|
|
75
|
-
}?: {
|
|
76
|
-
debug: boolean;
|
|
77
|
-
minify: boolean;
|
|
78
|
-
verbosity: number;
|
|
79
|
-
}): Promise<import("execa").Result<{
|
|
80
|
-
stdout: "inherit";
|
|
81
|
-
stderr: "inherit";
|
|
82
|
-
cwd: string;
|
|
83
|
-
env: NodeJS.ProcessEnv & {
|
|
84
|
-
EXTENDED_DEBUG: string;
|
|
85
|
-
CLI_BUILD: string;
|
|
86
|
-
NODE_ENV: string;
|
|
87
|
-
DIST_DIR: string;
|
|
88
|
-
DIST_MINIFY: boolean;
|
|
89
|
-
LOG_LEVEL: string;
|
|
90
|
-
};
|
|
91
|
-
}>>;
|
|
92
|
-
}
|
|
93
|
-
//#endregion
|
|
94
50
|
//#region src/Commands/KeyGenerateCommand.d.ts
|
|
95
51
|
declare class KeyGenerateCommand extends Command {
|
|
96
52
|
/**
|
|
@@ -167,4 +123,4 @@ declare class PostinstallCommand extends Command {
|
|
|
167
123
|
private createSqliteDB;
|
|
168
124
|
}
|
|
169
125
|
//#endregion
|
|
170
|
-
export { BuildCommand,
|
|
126
|
+
export { BuildCommand, KeyGenerateCommand, MakeCommand, PostinstallCommand };
|
package/dist/index.js
CHANGED
|
@@ -106,79 +106,6 @@ var BuildCommand = class BuildCommand extends Command {
|
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
//#endregion
|
|
109
|
-
//#region src/Commands/DevCommand.ts
|
|
110
|
-
var DevCommand = class DevCommand extends Command {
|
|
111
|
-
/**
|
|
112
|
-
* The name and signature of the console command.
|
|
113
|
-
*
|
|
114
|
-
* @var string
|
|
115
|
-
*/
|
|
116
|
-
signature = `dev
|
|
117
|
-
{--m|minify : Minify your bundle output}
|
|
118
|
-
`;
|
|
119
|
-
/**
|
|
120
|
-
* The console command description.
|
|
121
|
-
*
|
|
122
|
-
* @var string
|
|
123
|
-
*/
|
|
124
|
-
description = "Build the app for production";
|
|
125
|
-
async handle() {
|
|
126
|
-
const minify = this.option("minify");
|
|
127
|
-
const verbosity = this.getVerbosity();
|
|
128
|
-
const debug = verbosity > 0;
|
|
129
|
-
try {
|
|
130
|
-
this.newLine();
|
|
131
|
-
await DevCommand.dev({
|
|
132
|
-
minify,
|
|
133
|
-
verbosity,
|
|
134
|
-
debug
|
|
135
|
-
});
|
|
136
|
-
this.newLine();
|
|
137
|
-
} catch (e) {
|
|
138
|
-
Logger.error(e);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Build output for developement
|
|
143
|
-
*
|
|
144
|
-
* @param param0
|
|
145
|
-
* @returns
|
|
146
|
-
*/
|
|
147
|
-
static async dev({ debug, minify, verbosity } = {
|
|
148
|
-
debug: false,
|
|
149
|
-
minify: false,
|
|
150
|
-
verbosity: 0
|
|
151
|
-
}) {
|
|
152
|
-
const pm = (await preferredPM(base_path()))?.name ?? "pnpm";
|
|
153
|
-
const ENV_VARS = {
|
|
154
|
-
EXTENDED_DEBUG: debug ? "true" : "false",
|
|
155
|
-
CLI_BUILD: "false",
|
|
156
|
-
NODE_ENV: "development",
|
|
157
|
-
DIST_DIR: ".h3ravel/serve",
|
|
158
|
-
DIST_MINIFY: minify,
|
|
159
|
-
LOG_LEVEL: [
|
|
160
|
-
"silent",
|
|
161
|
-
"info",
|
|
162
|
-
"warn",
|
|
163
|
-
"error"
|
|
164
|
-
][verbosity]
|
|
165
|
-
};
|
|
166
|
-
return await execa(pm, [
|
|
167
|
-
"tsdown",
|
|
168
|
-
...ENV_VARS.LOG_LEVEL === "silent" ? ["--log-level", "silent"] : [],
|
|
169
|
-
"--config-loader",
|
|
170
|
-
"native",
|
|
171
|
-
"-c",
|
|
172
|
-
"tsdown.default.config.ts"
|
|
173
|
-
].filter((e) => e !== null), {
|
|
174
|
-
stdout: "inherit",
|
|
175
|
-
stderr: "inherit",
|
|
176
|
-
cwd: base_path(),
|
|
177
|
-
env: Object.assign({}, process.env, ENV_VARS)
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
//#endregion
|
|
182
109
|
//#region src/Commands/KeyGenerateCommand.ts
|
|
183
110
|
var KeyGenerateCommand = class extends Command {
|
|
184
111
|
/**
|
|
@@ -371,4 +298,4 @@ var PostinstallCommand = class extends Command {
|
|
|
371
298
|
}
|
|
372
299
|
};
|
|
373
300
|
//#endregion
|
|
374
|
-
export { BuildCommand,
|
|
301
|
+
export { BuildCommand, KeyGenerateCommand, MakeCommand, PostinstallCommand };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/console",
|
|
3
|
-
"version": "11.18.
|
|
3
|
+
"version": "11.18.2",
|
|
4
4
|
"description": "CLI utilities for scaffolding, running migrations, tasks and for H3ravel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
"laravel"
|
|
47
47
|
],
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@h3ravel/core": "^2.1.
|
|
50
|
-
"@h3ravel/support": "^2.1.
|
|
49
|
+
"@h3ravel/core": "^2.1.2",
|
|
50
|
+
"@h3ravel/support": "^2.1.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@h3ravel/contracts": "^2.1.
|
|
53
|
+
"@h3ravel/contracts": "^2.1.2",
|
|
54
54
|
"typescript": "^6.0.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@h3ravel/musket": "^1.29.0-alpha.15",
|
|
58
|
-
"@h3ravel/shared": "^2.1.
|
|
59
|
-
"@h3ravel/foundation": "^2.1.
|
|
58
|
+
"@h3ravel/shared": "^2.1.2",
|
|
59
|
+
"@h3ravel/foundation": "^2.1.2",
|
|
60
60
|
"chalk": "^5.6.2",
|
|
61
61
|
"commander": "^14.0.1",
|
|
62
62
|
"dayjs": "^1.11.18",
|