adding common scripts for use by multiple dev scenario scripts (#59)
This PR gets Master up to date with the common scripts approach. These are not done but this seems far enough along to proceed. We'll now move forward with refining these common scripts along with the dev scenario scripts that reference them.
This commit is contained in:
@@ -1,49 +1,41 @@
|
||||
# Description: Boxstarter Script
|
||||
# Author: Microsoft
|
||||
# Common dev settings for web development
|
||||
# Common settings for web development with NodeJS
|
||||
|
||||
Disable-UAC
|
||||
|
||||
#--- Windows Features ---
|
||||
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
|
||||
# see if we can't get calling URL somehow, that would eliminate this need
|
||||
# should move to a config file
|
||||
$user = "Microsoft";
|
||||
$baseBranch = "BreakUpScripts";
|
||||
$finalBaseHelperUri = "https://raw.githubusercontent.com/$user/windows-dev-box-setup-scripts/$baseBranch/scripts";
|
||||
|
||||
#--- File Explorer Settings ---
|
||||
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
|
||||
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
|
||||
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
|
||||
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
|
||||
function executeScript {
|
||||
Param ([string]$script)
|
||||
write-host "executing $finalBaseHelperUri/$script ..."
|
||||
iex ((new-object net.webclient).DownloadString("$finalBaseHelperUri/$script"))
|
||||
}
|
||||
|
||||
#--- Tools ---
|
||||
choco install -y vscode
|
||||
code --install-extension msjsdiag.debugger-for-chrome
|
||||
code --install-extension msjsdiag.debugger-for-edge
|
||||
|
||||
choco install -y git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"'
|
||||
choco install -y 7zip.install
|
||||
|
||||
#--- Windows Subsystems/Features ---
|
||||
choco install -y Microsoft-Hyper-V-All -source windowsFeatures
|
||||
choco install -y Microsoft-Windows-Subsystem-Linux -source windowsfeatures
|
||||
|
||||
#--- Ubuntu ---
|
||||
# Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile ~/Ubuntu.appx -UseBasicParsing
|
||||
# Add-AppxPackage -Path ~/Ubuntu.appx
|
||||
#--- Setting up Windows ---
|
||||
executeScript "SystemConfiguration.ps1";
|
||||
executeScript "FileExplorerSettings.ps1";
|
||||
executeScript "RemoveDefaultApps.ps1";
|
||||
executeScript "CommonDevTools.ps1";
|
||||
executeScript "VirtualizationTools.ps1";
|
||||
|
||||
#--- Browsers ---
|
||||
choco install -y Firefox
|
||||
choco install -y Googlechrome
|
||||
|
||||
#--- Fonts ---
|
||||
choco install -y inconsolata
|
||||
# choco install -y ubuntu.font
|
||||
#--- 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 sysinternals
|
||||
choco install -y docker-for-windows
|
||||
choco install -y python2 # Node.js requires Python 2 to build native modules
|
||||
|
||||
Enable-UAC
|
||||
|
||||
Reference in New Issue
Block a user