Adding
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
# Landmark Credit Union
|
||||
# Loan Wizard Environment Setup
|
||||
# Running this script on a Windows 10 machine should install all of the software you need
|
||||
# to work on the project for both the client and api.
|
||||
# You can use 'choco upgrade all' to keep software up to date.
|
||||
|
||||
Write-Output "Starting environment setup, if you use Visual Studio, or Webstorm, install those separately"
|
||||
|
||||
# 1. Create an update function.
|
||||
function Update-Environment-Path
|
||||
{
|
||||
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") `
|
||||
+ ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
|
||||
}
|
||||
|
||||
# 2. Get the Choco package manager, to enable the rest of this script
|
||||
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
|
||||
Invoke-WebRequest https://chocolatey.org/install.ps1 -UseBasicParsing | iex
|
||||
Update-Environment-Path
|
||||
|
||||
# 3. Git for source code management.
|
||||
choco install git --yes --params '/GitAndUnixToolsOnPath'
|
||||
Update-Environment-Path
|
||||
|
||||
# 4. Node for node and npm.
|
||||
# 10.14.1 to avoid e2e problems
|
||||
choco install nodejs --version 10.14.1 --yes
|
||||
Update-Environment-Path
|
||||
|
||||
# 5. VS Code
|
||||
choco install visualstudiocode --yes # includes dotnet
|
||||
Update-Environment-Path
|
||||
code --install-extension CoenraadS.bracket-pair-colorizer
|
||||
code --install-extension ms-vscode.PowerShell
|
||||
code --install-extension ms-vscode.csharp
|
||||
code --install-extension eg2.vscode-npm-script
|
||||
code --install-extension christian-kohler.npm-intellisense
|
||||
|
||||
# 6. major browsers
|
||||
choco install googlechrome --yes
|
||||
choco install firefox --yes
|
||||
Update-Environment-Path
|
||||
|
||||
Write-Output "Complete"
|
||||
Reference in New Issue
Block a user