forked from KelvinTegelaar/CIPP
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #13 from KelvinTegelaar/main
[pull] main from KelvinTegelaar:main
- Loading branch information
Showing
96 changed files
with
4,416 additions
and
601 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 |
---|---|---|
@@ -1,32 +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 npm -ErrorAction SilentlyContinue) -or (Get-Command yarn -ErrorAction SilentlyContinue))) { | ||
throw 'npm or yarn is required to install the CIPP development environment.' | ||
} | ||
|
||
if (-not(Get-Command azurite)) { | ||
if (-not(Get-Command yarn -ErrorAction SilentlyContinue)) { | ||
Write-Host 'Installing Yarn' | ||
npm install --global yarn | ||
} | ||
|
||
if (-not(Get-Command azurite -ErrorAction SilentlyContinue)) { | ||
Write-Host 'Installing Azurite' | ||
npm install --global 'azurite' | ||
yarn global add 'azurite' | ||
} | ||
|
||
if (-not(Get-Command swa)) { | ||
if (-not(Get-Command swa -ErrorAction SilentlyContinue)) { | ||
Write-Host 'Installing @azure/static-web-apps-cli' | ||
npm install --global '@azure/static-web-apps-cli' | ||
yarn global add '@azure/static-web-apps-cli' | ||
} | ||
|
||
if (-not(Get-Command func)) { | ||
if (-not(Get-Command func -ErrorAction SilentlyContinue)) { | ||
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 | ||
yarn global add 'azure-functions-core-tools@4' | ||
} | ||
|
||
if (-not(yarn list --global --pattern 'next' | Select-String -Pattern 'next')) { | ||
if (-not(yarn global list | Select-String -Pattern 'next')) { | ||
Write-Host 'Installing Next.js' | ||
yarn install --global next --network-timeout 500000 | ||
yarn global add 'next' | ||
} | ||
|
||
yarn install --cwd (Join-Path $Path "CIPP") --network-timeout 500000 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"version": "7.1.3" | ||
"version": "7.2.1" | ||
} |
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
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
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
Oops, something went wrong.