Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jocafi/5935d57c19a2fe675f1b8c8afc74dfd2 to your computer and use it in GitHub Desktop.
Save jocafi/5935d57c19a2fe675f1b8c8afc74dfd2 to your computer and use it in GitHub Desktop.
Script to install all good tools on a fresh new Windows 10 machine. The main reason for this file is to be used on my online course: https://udemy.com/angular-native Raw
:: I think it's didactic showing the actions done here in the window
:: @echo off
:: This line should be executed before you run the current script
:: Don't follow along before doing that
:: @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
:: Git
choco install git.install -y
:: Restart your command prompt
set /p username="Define your Git username: "
git config --global user.name "%username%"
set /p email="Define your Git email: "
git config --global user.email "%email%"
:: Java
choco install jdk8 -y
:: Android Studio
choco install android-sdk -y
:: Open Android Studio to download the minimal environment
@powershell -Command "New-Item C:\Users\%username%\.android\repositories.cfg -type file"
"%ANDROID_HOME%\tools\bin\sdkmanager" "tools" "platform-tools" "platforms;android-25" "build-tools;25.0.2" "extras;android;m2repository" "extras;google;m2repository"
:: NodeJS
choco install nvm
nvm on
nvm install latest
:: Visual Studio Code
choco install visualstudiocode
:: Restart your command prompt
code --install-extension Telerik.nativescript
code --install-extension dbaeumer.vscode-eslint
code --install-extension eg2.tslint
code --install-extension johnpapa.Angular2
code --install-extension robertohuertasm.vscode-icons
code --install-extension wwwalkerrun.nativescript-ng2-snippets
code --install-extension xabikos.JavaScriptSnippets
code --install-extension Angular.ng-template
code --install-extension PeterJausovec.vscode-docker
code --install-extension eamodio.gitlens
code --install-extension esbenp.prettier-vscode
code --install-extension EditorConfig.editorconfig
code --install-extension Arjun.swagger-viewer
code --install-extension PeterJausovec.vscode-docker
:: VirtualBox
choco install virtualbox
:: Angular CLI & Nativescript
npm i -g @angular/cli
npm i -g nativescript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment