From dda4898b0d240c2de7a5beb0cbc61f43f0ed6176 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Fri, 1 Mar 2013 14:45:50 -0500 Subject: [PATCH] EthanBrown.ChromeDevExtensions 0.0.1 Includes Batarang Clear Cache DevTools AutoSave PageSpeed Insights Simple REST Client Speed Tracer CoffeeConsole YSlow Does Not Include CoffeeScript IDE - Requires login PostMan - Requires login LiveReload - Not necessary with grunt Grunt DevTools - Evaluating Tincr - Might be superceded by Chrome workspaces --- ...thanBrown.ChromeCanaryDevExtensions.nuspec | 91 +++++++++++++++++++ .../tools/chocolateyInstall.ps1 | 38 ++++++++ .../tools/chocolateyUninstall.ps1 | 24 +++++ 3 files changed, 153 insertions(+) create mode 100644 EthanBrown.ChromeDevExtensions/EthanBrown.ChromeCanaryDevExtensions.nuspec create mode 100644 EthanBrown.ChromeDevExtensions/tools/chocolateyInstall.ps1 create mode 100644 EthanBrown.ChromeDevExtensions/tools/chocolateyUninstall.ps1 diff --git a/EthanBrown.ChromeDevExtensions/EthanBrown.ChromeCanaryDevExtensions.nuspec b/EthanBrown.ChromeDevExtensions/EthanBrown.ChromeCanaryDevExtensions.nuspec new file mode 100644 index 0000000..3f63ec2 --- /dev/null +++ b/EthanBrown.ChromeDevExtensions/EthanBrown.ChromeCanaryDevExtensions.nuspec @@ -0,0 +1,91 @@ + + + + EthanBrown.ChromeDevExtensions + Chrome - Web Development Extensions + 0.0.1 + Various + Ethan Brown + Chrome extensions for web development. + Includes a number of very useful extensions for web application + development within Chrome. + + WARNING: This is not a "silent" installer. Assumes installation of the + dev version of Chrome, and not stable or beta. + + Chrome no longer provides any ability to automatically install extensions + due to abuse, so the existing preferences file is examined, to determine + what is currently installed. + + For plugins that are not installed, Chrome is launched with each extension + in a new browser tab, where the user must press the 'Add To Chrome' button. + + Included + =========================================================================== + + - Batarang for AngularJS development + https://chrome.google.com/webstore/detail/ighdmehidhipcmcojjgiloacoafjmpfk + + - Clear Cache + https://chrome.google.com/webstore/detail/cppjkneekbjaeellbfkmgnhonkkjfpdn + + - DevTools AutoSave + https://chrome.google.com/webstore/detail/mlejngncgiocofkcbnnpaieapabmanfl + + - PageSpeed Insights + https://developers.google.com/speed/docs/insights/using_chrome + + - YSlow + https://chrome.google.com/webstore/detail/yslow/ninejjcohidippngpapiilnmkgllmakh + + - Simple REST Client + https://chrome.google.com/webstore/detail/simple-rest-client/fhjcajmcbmldlhcimfajhfbgofnpcjmb + + Postman is the preferred client, but requires login, which is + often undesireable with a test browser + https://chrome.google.com/webstore/detail/fdmmgilgnpjigdojojpjoooidkmcomcm + + - Speed Tracer + https://chrome.google.com/webstore/detail/ognampngfcbddbfemdapefohjiobgbdl + + - CoffeeConsole + https://chrome.google.com/webstore/detail/coffeeconsole/ladbkfdlnaibelfidknofapbbdlhadfp + + CoffeeScript IDE is preferred, but requires login + https://chrome.google.com/webstore/detail/coffeescript-ide/hikjpmfebkagiijbdinakadphhjffaik + + + Previously Included + =========================================================================== + + - LiveReload + https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei + Grunt-contrib-livereload plugin now handles this + + - Tincr + https://chrome.google.com/webstore/detail/tincr/lfjbhpnjiajjgnjganiaggebdhhpnbih + Hasn't been updated recently, and Chrome workspaces might supercede this + + Under evaluation + =========================================================================== + + - Grunt DevTools + https://chrome.google.com/webstore/detail/grunt-devtools/fbiodiodggnlakggeeckkjccjhhjndnb + + http://github.com/Iristyle/ChocolateyPackages/ + Google Chrome Extension Development Web + + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/GoogleChrome.Dev/GoogleChrome.png + + + + + + + + + + diff --git a/EthanBrown.ChromeDevExtensions/tools/chocolateyInstall.ps1 b/EthanBrown.ChromeDevExtensions/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..9fd82e3 --- /dev/null +++ b/EthanBrown.ChromeDevExtensions/tools/chocolateyInstall.ps1 @@ -0,0 +1,38 @@ +$package = 'EthanBrown.ChromeDevExtensions' + +try { + + function Get-CurrentDirectory + { + $thisName = $MyInvocation.MyCommand.Name + [IO.Path]::GetDirectoryName((Get-Content function:$thisName).File) + } + + . (Join-Path (Get-CurrentDirectory) 'ChromeHelpers.ps1') + + $toInstall = @{ + "ighdmehidhipcmcojjgiloacoafjmpfk" = "Batarang"; + "cppjkneekbjaeellbfkmgnhonkkjfpdn" = "Clear Cache"; + "mlejngncgiocofkcbnnpaieapabmanfl" = "DevTools AutoSave"; + "gplegfbjlmmehdoakndmohflojccocli" = "PageSpeed Insights"; + "fhjcajmcbmldlhcimfajhfbgofnpcjmb" = "Simple REST Client"; + "ognampngfcbddbfemdapefohjiobgbdl" = "Speed Tracer"; + "ladbkfdlnaibelfidknofapbbdlhadfp" = "CoffeeConsole"; + "ninejjcohidippngpapiilnmkgllmakh" = "YSlow"; + # has messed up install requirements + # "hikjpmfebkagiijbdinakadphhjffaik" = "CoffeeScript IDE"; + # "fdmmgilgnpjigdojojpjoooidkmcomcm" = "PostMan"; + # handled by Grunt + # "jnihajbhpnppcggbcgedagnkighmdlei" = "LiveReload"; + # deprecated for now + # "fbiodiodggnlakggeeckkjccjhhjndnb" = "Grunt DevTools"; + # "lfjbhpnjiajjgnjganiaggebdhhpnbih" = "Tincr" + } + + Install-ChromeExtensions $toInstall + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +} diff --git a/EthanBrown.ChromeDevExtensions/tools/chocolateyUninstall.ps1 b/EthanBrown.ChromeDevExtensions/tools/chocolateyUninstall.ps1 new file mode 100644 index 0000000..1b8b2c5 --- /dev/null +++ b/EthanBrown.ChromeDevExtensions/tools/chocolateyUninstall.ps1 @@ -0,0 +1,24 @@ +$package = 'EthanBrown.ChromeDevExtensions' + +try { + + function Get-CurrentDirectory + { + $thisName = $MyInvocation.MyCommand.Name + [IO.Path]::GetDirectoryName((Get-Content function:$thisName).File) + } + + . (Join-Path (Get-CurrentDirectory) 'ChromeHelpers.ps1') + + Write-Host "Launching Chrome extensions page to remove extensions" + + $chromePath = Get-ChromePath + $chromeExe = Join-Path $chromePath 'Application\chrome.exe' + $chromeParams = @('--new-window', 'chrome://extensions/') + &$chromeExe @chromeParams + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +}