1
1
Get-Command kitty - ErrorAction Stop | Out-Null
2
- Write-Host ' Starting CIPP Dev Emulators'
3
2
Get-Process node - ErrorAction SilentlyContinue | Stop-Process - ErrorAction SilentlyContinue
4
3
$Path = (Get-Item $PSScriptRoot ).Parent.Parent.FullName
5
4
5
+ pwsh - file (Join-Path $PSScriptRoot ' Start-CippDevInstallation.ps1' )
6
+
7
+ Write-Host ' Starting CIPP Dev Emulators'
8
+
6
9
if (Test-Path (Join-Path $Path ' CIPP-API-Processor' )) {
7
10
$Process = Read-Host - Prompt ' Start Process Function (y/N)?'
8
11
}
@@ -11,14 +14,14 @@ if ($Process -eq 'y') {
11
14
kitty -- detach -- title ' CIPP' - o allow_remote_control= yes -- pwsh - c "
12
15
kitty @new-window --new-tab --tab-title `" Azurite`" --cwd $Path -- azurite ;
13
16
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 ;
15
18
kitty @new-window --new-tab --tab-title `" SWA`" --cwd (Join-Path $Path `" CIPP`" ) -- npm run start-swa;
16
19
kitty @new-window --new-tab --tab-title `" CIPP-API-Processor`" --cwd (Join-Path $Path `" CIPP-API-Processor`" ) -- func start --port 7072"
17
20
18
21
} else {
19
22
kitty -- detach -- title ' CIPP' - o allow_remote_control= yes -- pwsh - c "
20
23
kitty @new-window --new-tab --tab-title `" Azurite`" --cwd $Path -- azurite ;
21
24
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 ;
23
26
kitty @new-window --new-tab --tab-title `" SWA`" --cwd (Join-Path $Path `" CIPP`" ) -- npm run start-swa"
24
27
}
0 commit comments