<commit_before>#Script Name: New-EasyDevWorkstation.ps1
#Purpose: Quick and clean way to setup a simple developer workstation. Tested only for Windows 10
#Author <NAME>
#Date 30-08-2017
#Version 0.03

#ChangeLog
# 0.03 
# Remove
# officedevtools
#
# Add
# Visual Studio full suite reference
# SPFx required components
# Merge the SPFx script into this one.

#set the execution policy to allow chocolatey to install and chocolatey scripts to install software
#Use ByPass to avoid prompts when installing PowerShell modules
Set-ExecutionPolicy Bypass

#install chocolatey
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
refreshenv

#Install the basics - Git, Chrome browser, updated Powershell (if running on older Windows like Win Server 2008R2)
# Visual Studio Code (which is free), and latest SQL Server Management Studio (also free)
# Utilities like Microsoft Azure Storage Explorer, Postman and Fiddler are handy to have
# PowerBI Desktop
# nodejs is essential for building SPFx webparts, as required components installed via npm (Node Package Manager)

choco install -y --allow-empty-checksums git GoogleChrome powershell visualstudiocode sql-server-management-studio postman fiddler4 powerbi microsoftazurestorageexplorer nodejs


#Install Visual Studio 2017 and the workloads for Azure and Web Development

# To use another version of Visual Studio uncomment the line as appropriate

#Community edition
#choco install -y --allow-empty-checksums visualstudio2017community

#Professional edition
#choco install -y --allow-empty-checksums visualstudio2017professional

#Install enterprise edition of Visual Studio 2017
choco install -y --allow-empty-checksums visualstudio2017enterprise

#Comment and uncomment workloads to install for Visual Studio as appropriate
#More information on workloads can be found at https://www.visualstudio.com/vs/visual-studio-workloads/

#Azure development
choco install -y --allow-empty-checksums visualstudio2017-workload-azure

# Data storage and processing
choco install -y --allow-empty-checksums visualstudio2017-workload-data

#.Net Desktop development
choco install -y --allow-empty-checksums visualstudio2017-workload-manageddesktop

#Game development with Unity workload
choco install -y --allow-empty-checksums visualstudio2017-workload-managedgame

#Linux development with C++
choco install visualstudio2017-workload-nativecrossplat

#Desktop development with C++
choco upgrade visualstudio2017-workload-nativedesktop

#Game development with C++
choco install visualstudio2017-workload-nativegame

#Mobile development with C++
choco install visualstudio2017-workload-nativemobile

#.Net Core Cross platform development
choco install visualstudio2017-workload-netcoretools

#Mobile development with .NET
choco install visualstudio2017-workload-netcrossplat

#ASP.Net and web development
choco install visualstudio2017-workload-netweb

#Node.js development
choco install visualstudio2017-workload-node

#Office/SharePoint development
choco install visualstudio2017-workload-office

#Universal Windows Platform Development
choco install visualstudio2017-workload-universal

#Visual Studio extension development
choco install visualstudio2017-workload-visualstudioextension

#Mobile development with Javascript
choco install visualstudio2017-workload-webcrossplat

#Install the Azure Resource Manager and SharePoint PNP Powershell modules
Install-Module AzureRM -AllowClobber
Install-Module SharePointPnPPowerShellOnline -AllowClobber

refreshenv
#note if these do not work, close and reopen PowerShell window as PATH hasn't updated to recognize node and npm commands

#The basics: Gulp and Yeoman generator first, then the Microsoft SharePoint generator
npm install -g yo gulp
npm install -g @microsoft/generator-sharepoint

# Also need the windows build tools to install python 2.7 and vc++build tools as Visual Studio may not be present
# or may not have installed these components, and it's needed to build some of the spfx examples
npm install --global --production windows-build-tools

#Create a source code folder and clone the samples for SPFx available on github, this code is awesome
cd ~/Documents
mkdir Source
cd Source
mkdir Repos
cd Repos
git clone https://github.com/SharePoint/sp-dev-fx-webparts.git<commit_msg>Add -y to workloads to autoinstall without prompt<commit_after>#Script Name: New-EasyDevWorkstation.ps1
#Purpose: Quick and clean way to setup a simple developer workstation. Tested only for Windows 10
#Author <NAME>
#Date 30-08-2017
#Version 0.03

#ChangeLog
# 0.03 
# Remove
# officedevtools
#
# Add
# Visual Studio full suite reference
# SPFx required components
# Merge the SPFx script into this one.

#set the execution policy to allow chocolatey to install and chocolatey scripts to install software
#Use ByPass to avoid prompts when installing PowerShell modules
Set-ExecutionPolicy Bypass

#install chocolatey
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
refreshenv

#Install the basics - Git, Chrome browser, updated Powershell (if running on older Windows like Win Server 2008R2)
# Visual Studio Code (which is free), and latest SQL Server Management Studio (also free)
# Utilities like Microsoft Azure Storage Explorer, Postman and Fiddler are handy to have
# PowerBI Desktop
# nodejs is essential for building SPFx webparts, as required components installed via npm (Node Package Manager)

choco install -y --allow-empty-checksums git GoogleChrome powershell visualstudiocode sql-server-management-studio postman fiddler4 powerbi microsoftazurestorageexplorer nodejs


#Install Visual Studio 2017 and the workloads for Azure and Web Development

# To use another version of Visual Studio uncomment the line as appropriate

#Community edition
#choco install -y --allow-empty-checksums visualstudio2017community

#Professional edition
#choco install -y --allow-empty-checksums visualstudio2017professional

#Install enterprise edition of Visual Studio 2017
choco install -y --allow-empty-checksums visualstudio2017enterprise

#Comment and uncomment workloads to install for Visual Studio as appropriate
#More information on workloads can be found at https://www.visualstudio.com/vs/visual-studio-workloads/

#Azure development
choco install -y --allow-empty-checksums visualstudio2017-workload-azure

# Data storage and processing
choco install -y --allow-empty-checksums visualstudio2017-workload-data

#.Net Desktop development
choco install -y --allow-empty-checksums visualstudio2017-workload-manageddesktop

#Game development with Unity workload
choco install -y --allow-empty-checksums visualstudio2017-workload-managedgame

#Linux development with C++
choco install -y --allow-empty-checksums visualstudio2017-workload-nativecrossplat

#Desktop development with C++
choco upgrade -y --allow-empty-checksums visualstudio2017-workload-nativedesktop

#Game development with C++
choco install -y --allow-empty-checksums visualstudio2017-workload-nativegame

#Mobile development with C++
choco install -y --allow-empty-checksums visualstudio2017-workload-nativemobile

#.Net Core Cross platform development
choco install -y --allow-empty-checksums visualstudio2017-workload-netcoretools

#Mobile development with .NET
choco install -y --allow-empty-checksums visualstudio2017-workload-netcrossplat

#ASP.Net and web development
choco install -y --allow-empty-checksums visualstudio2017-workload-netweb

#Node.js development
choco install -y --allow-empty-checksums visualstudio2017-workload-node

#Office/SharePoint development
choco install -y --allow-empty-checksums visualstudio2017-workload-office

#Universal Windows Platform Development
choco install -y --allow-empty-checksums visualstudio2017-workload-universal

#Visual Studio extension development
choco install -y --allow-empty-checksums visualstudio2017-workload-visualstudioextension

#Mobile development with Javascript
choco install -y --allow-empty-checksums visualstudio2017-workload-webcrossplat

#Install the Azure Resource Manager and SharePoint PNP Powershell modules
Install-Module AzureRM -AllowClobber
Install-Module SharePointPnPPowerShellOnline -AllowClobber

refreshenv
#note if these do not work, close and reopen PowerShell window as PATH hasn't updated to recognize node and npm commands

#The basics: Gulp and Yeoman generator first, then the Microsoft SharePoint generator
npm install -g yo gulp
npm install -g @microsoft/generator-sharepoint

# Also need the windows build tools to install python 2.7 and vc++build tools as Visual Studio may not be present
# or may not have installed these components, and it's needed to build some of the spfx examples
npm install --global --production windows-build-tools

#Create a source code folder and clone the samples for SPFx available on github, this code is awesome
cd ~/Documents
mkdir Source
cd Source
mkdir Repos
cd Repos
git clone https://github.com/SharePoint/sp-dev-fx-webparts.git
{'fraction_non_alphanumeric': 0.0576836917562724, 'fraction_numerical': 0.0246415770609319, 'mean_word_length': 5.3824160114367405, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '810941', 'n_tokens_mistral': 2659, 'n_tokens_neox': 2362, 'n_words': 972}