@vertz/cli 0.2.12 → 0.2.13
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 +18 -2
- package/dist/index.js +313 -199
- package/dist/shared/chunk-08ajrqm8.js +248 -0
- package/dist/shared/chunk-f6hd0h7q.js +17 -0
- package/dist/shared/chunk-tb59xfvg.js +247 -0
- package/dist/shared/chunk-wvn2b9k8.js +16 -0
- package/dist/vertz.js +298 -185
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -135,6 +135,16 @@ declare function routesAction(options: RoutesOptions): Promise<Result7<{
|
|
|
135
135
|
routes: FlatRoute[];
|
|
136
136
|
output: string;
|
|
137
137
|
}, Error>>;
|
|
138
|
+
import { Result as Result8 } from "@vertz/errors";
|
|
139
|
+
interface StartCommandOptions {
|
|
140
|
+
port?: number;
|
|
141
|
+
host?: string;
|
|
142
|
+
verbose?: boolean;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Start the production server.
|
|
146
|
+
*/
|
|
147
|
+
declare function startAction(options?: StartCommandOptions): Promise<Result8<void, Error>>;
|
|
138
148
|
import { VertzConfig as VertzConfig2 } from "@vertz/compiler";
|
|
139
149
|
declare function findConfigFile(startDir?: string): string | undefined;
|
|
140
150
|
declare function loadConfig(configPath?: string): Promise<VertzConfig2>;
|
|
@@ -174,8 +184,8 @@ interface ProcessManager {
|
|
|
174
184
|
}
|
|
175
185
|
type SpawnFn = (entryPoint: string, env?: Record<string, string>) => ChildProcess;
|
|
176
186
|
declare function createProcessManager(spawnFn?: SpawnFn): ProcessManager;
|
|
177
|
-
import { AppIR } from "@vertz/compiler";
|
|
178
187
|
import { GenerateResult } from "@vertz/codegen";
|
|
188
|
+
import { AppIR } from "@vertz/compiler";
|
|
179
189
|
/**
|
|
180
190
|
* Pipeline types - Core type definitions
|
|
181
191
|
*/
|
|
@@ -224,6 +234,7 @@ interface PipelineWatcherHandlers {
|
|
|
224
234
|
analyze: (changes: FileChange2[]) => void;
|
|
225
235
|
codegen: (changes: FileChange2[]) => void;
|
|
226
236
|
"build-ui": (changes: FileChange2[]) => void;
|
|
237
|
+
"db-sync": (changes: FileChange2[]) => void;
|
|
227
238
|
error: (error: Error) => void;
|
|
228
239
|
}
|
|
229
240
|
/**
|
|
@@ -249,6 +260,11 @@ interface PipelineConfig {
|
|
|
249
260
|
open: boolean;
|
|
250
261
|
/** Port for dev server */
|
|
251
262
|
port: number;
|
|
263
|
+
/** @internal — override for testing */
|
|
264
|
+
_dbSyncRunner?: () => Promise<{
|
|
265
|
+
run: () => Promise<void>;
|
|
266
|
+
close: () => Promise<void>;
|
|
267
|
+
}>;
|
|
252
268
|
/** Host for dev server */
|
|
253
269
|
host: string;
|
|
254
270
|
}
|
|
@@ -365,4 +381,4 @@ declare function isCI(): boolean;
|
|
|
365
381
|
declare function requireParam(value: string | undefined, name: string): string;
|
|
366
382
|
type Runtime = "bun" | "node";
|
|
367
383
|
declare function detectRuntime(): Runtime;
|
|
368
|
-
export { symbols, routesAction, requireParam, registerDevCommand, loadConfig, isCI, getAffectedStages, generateAction, formatPath, formatFileSize, formatDuration, formatDiagnosticSummary, formatDiagnostic, findProjectRoot, findConfigFile, devAction, detectTarget, detectRuntime, deployAction, defaultCLIConfig, createWatcher, createTaskRunner, createProcessManager, createPipelineWatcher, createPipelineOrchestrator, createDevLoop, createCLI, createAction, colors, checkAction, categorizeFileChange, buildAction, Watcher2 as Watcher, TaskRunner, TaskList, TaskHandle, TaskGroup, Task, StageResult, SelectList, PipelineWatcher, PipelineStage, PipelineResult, PipelineOrchestrator, PipelineConfig, Message, GeneratorDefinition, GeneratedFile, FileChange2 as FileChange, FileCategory, DevConfig, CLIConfig };
|
|
384
|
+
export { symbols, startAction, routesAction, requireParam, registerDevCommand, loadConfig, isCI, getAffectedStages, generateAction, formatPath, formatFileSize, formatDuration, formatDiagnosticSummary, formatDiagnostic, findProjectRoot, findConfigFile, devAction, detectTarget, detectRuntime, deployAction, defaultCLIConfig, createWatcher, createTaskRunner, createProcessManager, createPipelineWatcher, createPipelineOrchestrator, createDevLoop, createCLI, createAction, colors, checkAction, categorizeFileChange, buildAction, Watcher2 as Watcher, TaskRunner, TaskList, TaskHandle, TaskGroup, Task, StageResult, SelectList, PipelineWatcher, PipelineStage, PipelineResult, PipelineOrchestrator, PipelineConfig, Message, GeneratorDefinition, GeneratedFile, FileChange2 as FileChange, FileCategory, DevConfig, CLIConfig };
|