Skip to content

Instantly share code, notes, and snippets.

@brendanjerwin
Last active December 18, 2015 23:48
Show Gist options
  • Save brendanjerwin/f84bbfc1cd64420992c7 to your computer and use it in GitHub Desktop.
Save brendanjerwin/f84bbfc1cd64420992c7 to your computer and use it in GitHub Desktop.
In an elevated cmd shell, run: @PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://gist.github.com/brendanjerwin/f84bbfc1cd64420992c7/raw/dev_setup.ps1'))"
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
$env:Path +=";" + $env:systemdrive + "\chocolatey\bin"
cwindowsfeatures MSMQ-Server
cinst git.commandline
$env:Path +=";" + $env:systemdrive + "\git\bin"
cinst git-credential-winstore
git config --global core.autocrlf input
git clone https://github.com/tnwinc/grc.git c:\grc
cinst ruby
$env:Path +=";" + $env:systemdrive + "\ruby193\bin"
cinst ruby.devkit
cd c:\grc
gem update --system --no-document
gem install bundler --no-document
bundle install --gemfile GemFileForWindows
cinst Devbox-Common
cinst Devbox-P4Merge
cinst Devbox-GitSettings
cinst VisualStudio2012Professional
cinst Dogtail.VS2012.3
cinst nuget.commandline
cinst resharper
cinst specflow
cinst webpicommandline
cinst aspnetmvc.install
cinst MsSqlServer2012Express
cinst linqpad4
cinst GoogleChrome
cinst Firefox
cinst Devbox-ConEmu
cinst notepadplusplus
cinst WindowsUpdate.DisableAutoRestart
cinst vim
cinst poshgit
cinst fiddler4
cinst curl
cinst Wget
cinst nodejs
cinst javaruntime
rake init:install_certs
rake init:allow_iis_express_443
rake init:install_raven
cd c:\grc\client
bundle install
npm install
cd c:\grc
rake build
rake init:configs
rake test
@cekelly
Copy link

cekelly commented Aug 29, 2013

cinst ruby installs version 2.0 Need to change it to cinst ruby -Version 1.9.3.44800

@cekelly
Copy link

cekelly commented Aug 29, 2013

Need to update the ruby dev kit to the older version as well. I manually downloaded fromhttps://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe

@cekelly
Copy link

cekelly commented Aug 30, 2013

@brendanjerwin I am still getting an issue with the npm install saying, npm is not a valid command. Failing me on both the npm install and the rake build. If you can help my look at it in the morning that would be great.

@cekelly
Copy link

cekelly commented Aug 30, 2013

[Environment]::SetEnvironmentVariable("PATH", [Environment]::GetEnvironmentVariable("PATH", 'Machine') + $env:systemdrive + '\ruby193\bin',"Machine"

Also need to change cinst nodejs to cinst nodejs.install the other does not install npm

Also need to look at adding node and npm to the path so that you can keep running.

@cekelly
Copy link

cekelly commented Aug 30, 2013

also add this for clipx cinst clipx

@cekelly
Copy link

cekelly commented Aug 30, 2013

have to add python.

@dslewis
Copy link

dslewis commented Sep 17, 2013

You might want to remove the last step of 'rake test' if the front-end tests aren't going to run in Windows.

@dslewis
Copy link

dslewis commented Sep 17, 2013

Other neat bits we could add:
-Bits to plug in GitHub credentials so they aren't needed to execute git commands
-Restore of default TNW.GrcSuite, Client and ClientSQL databases
-Run of TaskRunner commands to obliterate and recreate indexes
-Completing the script with a successfully rake launch of a tenant you can log into

@driver800
Copy link

error on "npm install" : "The term 'npm' is not recognized as the name of a cmdlet..." can be resolved by adding path to nodejs directory.

$env:Path +=";" + $env:systemdrive + "\Program Files\nodejs"

@driver800
Copy link

note on "cinst nodejs"...

this "should" create a C:\Program Files\nodejs directory with npm in it. If not run ""const nodes.install". Then you can install nom like this:

"C:\Program Files\nodejs\npm" install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment