-
Notifications
You must be signed in to change notification settings - Fork 0
/
installVSCodeExtensionsAndCloneRepo.ps1
38 lines (31 loc) · 1.83 KB
/
installVSCodeExtensionsAndCloneRepo.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Write-Host "========================================================================================================="
Write-Host "Installing VS Code Extensions..."
Write-Host "========================================================================================================="
$vs_code_path = "C:/Program Files/Microsoft VS Code/bin/code.cmd"
# Array of VS Code extensions to install
$extensions = @(
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"flowtype.flow-for-vscode",
"mgmcdermott.vscode-language-babel",
"DevCenter.ms-devbox"
)
foreach ($extension in $extensions) {
Start-Process -FilePath $vs_code_path -ArgumentList "--install-extension $extension --force" -Wait -NoNewWindow
}
cd C:\Workspaces
#Checking if destination folder exists
Write-Host "========================================================================================================="
Write-Host "Checking if the project repository already exists..."
Write-Host "========================================================================================================="
if (Test-Path "C:\Workspaces\To-Do-List-WebApp") {
Write-Host "========================================================================================================="
Write-Host "Project repository already exists..."
Write-Host "========================================================================================================="
}
else {
Write-Host "========================================================================================================="
Write-Host "Cloning Repository...."
Write-Host "========================================================================================================="
git clone https://[email protected]/avadevboxpoc/Dev%20Box%20POC/_git/To-Do-List-WebApp
}