Files
windows-dev-box-setup-scripts/dev_web_nodejs.ps1
Yosef Durr 79bbe5bdc4 Started a demoscripts folder, refactored some helper scripts (#70)
* moving all recipes to dynamically find helper scripts
* started to a devops_azure script
* re-organizing some existing scripts
* updated Readme known issues
2018-09-18 09:37:18 -07:00

46 lines
1.5 KiB
PowerShell

# Description: Boxstarter Script
# Author: Microsoft
# Common settings for web development with NodeJS
Disable-UAC
# Get the base URI path from the ScriptToCall value
$bstrappackage = "-bootstrapPackage"
$helperUri = $Boxstarter['ScriptToCall']
$strpos = $helperUri.IndexOf($bstrappackage)
$helperUri = $helperUri.Substring($strpos + $bstrappackage.Length)
$helperUri = $helperUri.TrimStart("'", " ")
$helperUri = $helperUri.TrimEnd("'", " ")
$helperUri = $helperUri.Substring(0, $helperUri.LastIndexOf("/"))
$helperUri += "/scripts"
write-host "helper script base URI is $helperUri"
function executeScript {
Param ([string]$script)
write-host "executing $helperUri/$script ..."
iex ((new-object net.webclient).DownloadString("$helperUri/$script"))
}
#--- Setting up Windows ---
executeScript "SystemConfiguration.ps1";
executeScript "FileExplorerSettings.ps1";
executeScript "RemoveDefaultApps.ps1";
executeScript "CommonDevTools.ps1";
executeScript "WSL.ps1";
executeScript "Browsers.ps1";
#--- Tools ---
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension msjsdiag.debugger-for-edge
#--- Tools ---
choco install -y nodejs-lts # Node.js LTS, Recommended for most users
# choco install -y nodejs # Node.js Current, Latest features
choco install -y visualstudio2017buildtools
choco install -y visualstudio2017-workload-vctools
choco install -y python2 # Node.js requires Python 2 to build native modules
Enable-UAC
Enable-MicrosoftUpdate
Install-WindowsUpdate -acceptEula