19 lines
585 B
PowerShell
19 lines
585 B
PowerShell
# Spustí vývojové prostředí — server na 3001, klienta na 3000, každý ve svém okně.
|
|
$ErrorActionPreference = 'Stop'
|
|
$root = $PSScriptRoot
|
|
|
|
Push-Location (Join-Path $root 'types')
|
|
try { yarn openapi-ts } finally { Pop-Location }
|
|
|
|
Start-Process powershell -ArgumentList @(
|
|
'-NoExit', '-Command',
|
|
"Set-Location '$root\server'; `$env:NODE_ENV='development'; yarn startReload"
|
|
)
|
|
|
|
Start-Process powershell -ArgumentList @(
|
|
'-NoExit', '-Command',
|
|
"Set-Location '$root\client'; yarn start"
|
|
)
|
|
|
|
Write-Host 'Server: http://localhost:3001, klient: http://localhost:3000'
|