diff --git a/EthanBrown.DevTools.Web/Content/content.txt b/EthanBrown.DevTools.Web/Content/content.txt new file mode 100644 index 0000000..6101509 --- /dev/null +++ b/EthanBrown.DevTools.Web/Content/content.txt @@ -0,0 +1 @@ +This file is used to work around Nuget peculiarities - http://danlimerick.wordpress.com/2011/10/01/getting-around-nugets-external-package-dependency-problem/ diff --git a/EthanBrown.DevTools.Web/EthanBrown.DevTools.Web.nuspec b/EthanBrown.DevTools.Web/EthanBrown.DevTools.Web.nuspec new file mode 100644 index 0000000..07340b7 --- /dev/null +++ b/EthanBrown.DevTools.Web/EthanBrown.DevTools.Web.nuspec @@ -0,0 +1,67 @@ + + + + EthanBrown.DevTools.Web + EthanBrown.DevTools.Web + 0.1.0 + Ethan Brown + Ethan Brown + Batteries included web development tool stack for Windows. + Batteries included web development tool stack for Windows. Includes Git, Node.js, Ruby, Chrome Canary, PhantomJS, Sublime Text 2 and a number of web-specific Sublime packages amongst a host of other tools. + http://github.com/Iristyle/ChocolateyPackages/ + nodejs conemu git powershell font sublimetext2 + + https://raw.github.com/Iristyle/ChocolateyPackages/master/LICENSE.md + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + For Ruby: Bundler, Capistrano, Twig + For Node: coffee-script coffeelint bower grunt-cli http-server jshint codo recess csslint + + Configures a number of Git settings, such as Notepad++ for + commit editor, DiffMerge as diff / merge tool, and core.autocrlf + to true. + + Additionally includes a number of very useful Git aliases. + + + + + + + diff --git a/EthanBrown.DevTools.Web/Tools/chocolateyInstall.ps1 b/EthanBrown.DevTools.Web/Tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..ae73a7b --- /dev/null +++ b/EthanBrown.DevTools.Web/Tools/chocolateyInstall.ps1 @@ -0,0 +1,60 @@ +$package = 'EthanBrown.DevTools.Web' + +try { + + # simulate the unix command for finding things in path + # http://stackoverflow.com/questions/63805/equivalent-of-nix-which-command-in-powershell + function Which([string]$cmd) + { + Get-Command -ErrorAction "SilentlyContinue" $cmd | + Select -ExpandProperty Definition + } + + # "External packages cannot depend on packages that target projects." + # http://nuget.codeplex.com/workitem/595 + + # install required NPM packages + $packages = @( + 'coffee-script@1.6.2', + 'coffeelint@0.5.4', + 'bower@0.9.2', + 'grunt-cli@0.1.8', + 'http-server@0.5.3', + 'jshint@2.0.1', + 'codo@1.7.0', + 'recess@1.1.6', + 'csslint@0.9.10' + ) + + $npmDefault = Join-Path $Env:ProgramFiles 'nodejs\npm.cmd' + $npm = (Which npm), + $npmDefault | + ? { Test-Path $_ } | + Select -First 1 + + if ($npm) + { + &$npm install -g $packages + } + else + { + $msg = @" +Could not find NodeJS NPM to install global packages: +Please install these packages in a command prompt that has access to npm.cmd + +npm install -g $packages +"@ + Write-Warning $msg + } + + # install required gems + gem update --system + gem install bundler --version '=1.3.5' + gem install capistrano --version '=2.14.2' + gem install twig --version '=1.2' + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package $($_.Exception.Message) + throw +}