11Get-Command kitty - ErrorAction Stop | Out-Null
2- Write-Host ' Starting CIPP Dev Emulators'
32Get-Process node - ErrorAction SilentlyContinue | Stop-Process - ErrorAction SilentlyContinue
43$Path = (Get-Item $PSScriptRoot ).Parent.Parent.FullName
54
5+ pwsh - file (Join-Path $PSScriptRoot ' Start-CippDevInstallation.ps1' )
6+
7+ Write-Host ' Starting CIPP Dev Emulators'
8+
69if (Test-Path (Join-Path $Path ' CIPP-API-Processor' )) {
710 $Process = Read-Host - Prompt ' Start Process Function (y/N)?'
811}
@@ -11,14 +14,14 @@ if ($Process -eq 'y') {
1114 kitty -- detach -- title ' CIPP' - o allow_remote_control= yes -- pwsh - c "
1215 kitty @new-window --new-tab --tab-title `" Azurite`" --cwd $Path -- azurite ;
1316 kitty @new-window --new-tab --tab-title `" FunctionApp`" --cwd (Join-Path $Path `" CIPP-API`" ) -- func start;
14- kitty @new-window --new-tab --tab-title `" CIPP Frontend`" --cwd (Join-Path $Path `" CIPP`" ) -- npm run dev ;
17+ kitty @new-window --new-tab --tab-title `" CIPP Frontend`" --cwd (Join-Path $Path `" CIPP`" ) -- yarn run dev ;
1518 kitty @new-window --new-tab --tab-title `" SWA`" --cwd (Join-Path $Path `" CIPP`" ) -- npm run start-swa;
1619 kitty @new-window --new-tab --tab-title `" CIPP-API-Processor`" --cwd (Join-Path $Path `" CIPP-API-Processor`" ) -- func start --port 7072"
1720
1821} else {
1922 kitty -- detach -- title ' CIPP' - o allow_remote_control= yes -- pwsh - c "
2023 kitty @new-window --new-tab --tab-title `" Azurite`" --cwd $Path -- azurite ;
2124 kitty @new-window --new-tab --tab-title `" FunctionApp`" --cwd (Join-Path $Path `" CIPP-API`" ) -- func start;
22- kitty @new-window --new-tab --tab-title `" CIPP Frontend`" --cwd (Join-Path $Path `" CIPP`" ) -- npm run dev ;
25+ kitty @new-window --new-tab --tab-title `" CIPP Frontend`" --cwd (Join-Path $Path `" CIPP`" ) -- yarn run dev ;
2326 kitty @new-window --new-tab --tab-title `" SWA`" --cwd (Join-Path $Path `" CIPP`" ) -- npm run start-swa"
2427}
0 commit comments