-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3195 from Ren-Roros-Digital/CippDevInstallation
feat: Start-CippDevInstallation.ps1
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
$Path = (Get-Item $PSScriptRoot).Parent.Parent.FullName | ||
|
||
if (-not(Get-Command npm)) { | ||
throw 'npm is required to install the CIPP development environment' | ||
} | ||
|
||
if (-not(Get-Command azurite)) { | ||
Write-Host 'Installing Azurite' | ||
npm install --global 'azurite' | ||
} | ||
|
||
if (-not(Get-Command swa)) { | ||
Write-Host 'Installing @azure/static-web-apps-cli' | ||
npm install --global '@azure/static-web-apps-cli' | ||
} | ||
|
||
if (-not(Get-Command func)) { | ||
Write-Host 'Installing Azure Functions Core Tools' | ||
npm install --global 'azure-functions-core-tools@4' --unsafe-perms true | ||
} | ||
|
||
if (-not(Get-Command yarn)) { | ||
Write-Host 'Installing Yarn' | ||
npm install --global yarn | ||
} | ||
|
||
if (-not(yarn list --global --pattern 'next' | Select-String -Pattern 'next')) { | ||
Write-Host 'Installing Next.js' | ||
yarn install --global next --network-timeout 500000 | ||
} | ||
|
||
yarn install --cwd (Join-Path $Path "CIPP") --network-timeout 500000 |