chore: checkpoint ai search comments and i18n foundation
This commit is contained in:
26
dev.ps1
26
dev.ps1
@@ -1,6 +1,8 @@
|
||||
param(
|
||||
[switch]$FrontendOnly,
|
||||
[switch]$BackendOnly,
|
||||
[switch]$McpOnly,
|
||||
[switch]$WithMcp,
|
||||
[string]$DatabaseUrl = "postgres://postgres:postgres%402025%21@10.0.0.2:5432/termi-api_development"
|
||||
)
|
||||
|
||||
@@ -9,9 +11,10 @@ $ErrorActionPreference = "Stop"
|
||||
$repoRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$frontendScript = Join-Path $repoRoot "start-frontend.ps1"
|
||||
$backendScript = Join-Path $repoRoot "start-backend.ps1"
|
||||
$mcpScript = Join-Path $repoRoot "start-mcp.ps1"
|
||||
|
||||
if ($FrontendOnly -and $BackendOnly) {
|
||||
throw "Use either -FrontendOnly or -BackendOnly, not both."
|
||||
if (@($FrontendOnly, $BackendOnly, $McpOnly).Where({ $_ }).Count -gt 1) {
|
||||
throw "Use only one of -FrontendOnly, -BackendOnly, or -McpOnly."
|
||||
}
|
||||
|
||||
if ($FrontendOnly) {
|
||||
@@ -24,7 +27,13 @@ if ($BackendOnly) {
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
Write-Host "[monorepo] Starting frontend and backend in separate PowerShell windows..." -ForegroundColor Cyan
|
||||
if ($McpOnly) {
|
||||
& $mcpScript
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
$services = if ($WithMcp) { "frontend, backend, and MCP" } else { "frontend and backend" }
|
||||
Write-Host "[monorepo] Starting $services in separate PowerShell windows..." -ForegroundColor Cyan
|
||||
|
||||
Start-Process powershell -ArgumentList @(
|
||||
"-NoExit",
|
||||
@@ -39,4 +48,13 @@ Start-Process powershell -ArgumentList @(
|
||||
"-DatabaseUrl", $DatabaseUrl
|
||||
)
|
||||
|
||||
Write-Host "[monorepo] Frontend window and backend window started." -ForegroundColor Green
|
||||
if ($WithMcp) {
|
||||
Start-Process powershell -ArgumentList @(
|
||||
"-NoExit",
|
||||
"-ExecutionPolicy", "Bypass",
|
||||
"-File", $mcpScript
|
||||
)
|
||||
}
|
||||
|
||||
$servicesStarted = if ($WithMcp) { "Frontend, backend, and MCP windows started." } else { "Frontend window and backend window started." }
|
||||
Write-Host "[monorepo] $servicesStarted" -ForegroundColor Green
|
||||
|
||||
Reference in New Issue
Block a user