-
-
Save keith-kurak/e36d3b0d2e8e02caca56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# This gist is meant to be used to install everything needed to get up and running with the Ionic Framework on Windows using Chocolatey (http://chocolatey.org) | |
# Read "How to use this Gist File" section below for instructions. | |
######################### | |
######################### | |
# NOTE : for those familiar with Chocolatey, there are a couple of custom packages used as part of the install that are not published and are waiting on maintainers to make updates to their packages. | |
######################### | |
#--------------------------- | |
# How to use this Gist File | |
#--------------------------- | |
# | |
# Install Chocolatey from http://www.chocolatey.org. Command is on the front-page of the site. | |
# | |
# Install the BoxStarter Chocolatey package | |
# after install chocolatey, the command is cinst BoxStarter | |
# | |
# close the cmd prompt or powershell prompt that you opened to install Chocolatey and BoxStarter | |
# On the desktop there should be a BoxStarter Shell icon, double-click on that to run it. | |
# Note that the url in the next line is this gist file's raw url. | |
# Run the following command to install this Gist: Install-BoxStarterPackage -PackageName https://gist.githubusercontent.com/digitaldrummerj/3fe2eb057004b6742b89/raw/c042aecff396d9b26d4061f45544bff80ff321e8/IonicSetup -DisableReboots | |
# | |
# | |
#--------------------------- | |
# END REQUIRED PRE-WORK | |
#--------------------------- | |
#--------------------------- | |
# START OF SCRIPT THAT DOES THE INSTALLS | |
#--------------------------- | |
$chocTempDir = Join-Path $env:TEMP "chocolatey" | |
#***************** | |
# install nodejs | |
#***************** | |
choco install nodejs.install # https://chocolatey.org/packages/nodejs.install | |
#***************** | |
# install git command line | |
#***************** | |
choco install git # https://chocolatey.org/packages/git | |
#***************** | |
# install ruby (needed for sass/ compass) | |
#***************** | |
choco install ruby | |
# *********** | |
# install JDK7. | |
# *********** | |
#choco install jdk7 #https://chocolatey.org/packages/jdk7 | |
#***************** | |
# install android sdk | |
# unfortunately the Android sdk exe silent install puts it in %LocalAppData%\Android | |
# the package also doesn't add the android tools and platform-tools into the path. I did that below. Maintainer has been contacted. | |
#***************** | |
#choco install android-sdk #https://chocolatey.org/packages/android-sdk | |
# Add Android tools to path so that you can guy Android from the command like to start the Android SDK manager | |
#Install-ChocolateyPath $env:localappdata\Android\android-sdk\tools 'Machine' | |
#Install-ChocolateyPath $env:localappdata\Android\android-sdk\platform-tools 'Machine' | |
#******************** | |
# Installs Anroid studio without SDK | |
#********************* | |
#choco install AndroidStudio -InstallArguments "/AddToDesktop:true /PinnedToTaskbar:true" #https://chocolatey.org/packages/androidstudio | |
#***************** | |
# install Google Chrome | |
#***************** | |
#choco install GoogleChrome # https://chocolatey.org/packages/GoogleChrome | |
#*********************** | |
# Installs Visual Studio Community Edition | |
#*********************** | |
#choco install VisualStudioCommunity2013 | |
#choco install windowsphone8sdk #apparently this doesn't come with visual studio community and is experimental | |
#*********************** | |
# Installs git hub for windows client | |
#*********************** | |
#choco install github #this seems to kick off the clickonce install, though chocolatey still says it fails | |
###### | |
# Weird stuff that might not work | |
##### | |
Write-Host 'Installing Phonegap. This may take a few minutes' | |
npm install -g cordova # install phonegap | |
Write-Host 'Installing Grunt. This may take a few minutes' | |
npm install -g grunt # install grunt | |
npm install -g grunt-cli #needed to actually run grunt | |
Write-Host 'Installing Bower. This may take a few minutes' | |
npm install -g bower # install bower | |
#compass stuff | |
gem update --system | |
gem install compass | |
#------------------------- | |
# Check versions of node, cordova, and ionic | |
#------------------------- | |
node -v | |
cordova -v | |
ruby -v | |
#------------------------- | |
# POST INSTALL | |
#------------------------- | |
# Install Android 19 | |
# run command line run Android | |
# this will bring up the SDK manager and you can select API 19 | |
#cd $env:LocalAppData\Android\Android-Sdk\tools\ | |
#android.bat | |
#------------------------- | |
# END POST INSTALL | |
#------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment