feat: start scheduler in local development
This commit is contained in:
@@ -55,12 +55,14 @@ try {
|
||||
$frontend = Join-Path $fixture 'frontend'
|
||||
New-Item -ItemType Directory -Path (Join-Path $backend 'cmd\api') -Force | Out-Null
|
||||
New-Item -ItemType Directory -Path (Join-Path $backend 'cmd\worker') -Force | Out-Null
|
||||
New-Item -ItemType Directory -Path (Join-Path $backend 'cmd\scheduler') -Force | Out-Null
|
||||
New-Item -ItemType Directory -Path $frontend -Force | Out-Null
|
||||
'{"scripts":{"dev":"vite"}}' | Set-Content -LiteralPath (Join-Path $frontend 'package.json') -Encoding utf8
|
||||
|
||||
$commands = Resolve-LocalDevCommands -BackendPath $backend -FrontendPath $frontend
|
||||
Assert-Equal './cmd/api' $commands.Api.Arguments[1] 'API command should follow the backend contract'
|
||||
Assert-Equal './cmd/worker' $commands.Worker.Arguments[1] 'Worker command should follow the backend contract'
|
||||
Assert-Equal './cmd/scheduler' $commands.Scheduler.Arguments[1] 'Scheduler command should follow the backend contract'
|
||||
Assert-Equal 'run' $commands.Frontend.Arguments[0] 'Frontend should use its checked-in dev script'
|
||||
|
||||
$stateDirectory = Join-Path $fixture '.local'
|
||||
|
||||
Reference in New Issue
Block a user