From 2dbf85a6752ee5e465c3caf10082ee0df8db526d Mon Sep 17 00:00:00 2001 From: Iristyle Date: Fri, 15 Mar 2013 09:22:34 -0400 Subject: [PATCH] EthanBrown.SublimeText2.WebPackages to 0.0.3 - Copy CoffeeScript.sublime-settings to User packages directory --- ...EthanBrown.SublimeText2.WebPackages.nuspec | 4 +-- .../tools/CoffeeScript.sublime-settings | 4 +++ .../tools/chocolateyInstall.ps1 | 26 ++++++++++++++----- 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 EthanBrown.SublimeText2.WebPackages/tools/CoffeeScript.sublime-settings diff --git a/EthanBrown.SublimeText2.WebPackages/EthanBrown.SublimeText2.WebPackages.nuspec b/EthanBrown.SublimeText2.WebPackages/EthanBrown.SublimeText2.WebPackages.nuspec index 4a767a9..cb32785 100644 --- a/EthanBrown.SublimeText2.WebPackages/EthanBrown.SublimeText2.WebPackages.nuspec +++ b/EthanBrown.SublimeText2.WebPackages/EthanBrown.SublimeText2.WebPackages.nuspec @@ -3,7 +3,7 @@ EthanBrown.SublimeText2.WebPackages Sublime Text 2 - Web Development Packages - 0.0.2 + 0.0.3 Various Ethan Brown A number of packages helpful for auto-completion, snippets and syntax recognition of common web frameowrks and tools to increase editor productivity. @@ -88,7 +88,7 @@ Rules for - Autocompletion triggers, like . and $ in CoffeeScript - Autocompletion commit on TAB - - ensuring 2 tab indent + - ensuring 2 spaces for soft TAB indent - customized word_separators http://github.com/Iristyle/ChocolateyPackages/ diff --git a/EthanBrown.SublimeText2.WebPackages/tools/CoffeeScript.sublime-settings b/EthanBrown.SublimeText2.WebPackages/tools/CoffeeScript.sublime-settings new file mode 100644 index 0000000..ba80571 --- /dev/null +++ b/EthanBrown.SublimeText2.WebPackages/tools/CoffeeScript.sublime-settings @@ -0,0 +1,4 @@ +{ + "tab_size": 2, + "translate_tabs_to_spaces": true +} diff --git a/EthanBrown.SublimeText2.WebPackages/tools/chocolateyInstall.ps1 b/EthanBrown.SublimeText2.WebPackages/tools/chocolateyInstall.ps1 index 127424f..3f2cb2b 100644 --- a/EthanBrown.SublimeText2.WebPackages/tools/chocolateyInstall.ps1 +++ b/EthanBrown.SublimeText2.WebPackages/tools/chocolateyInstall.ps1 @@ -15,14 +15,28 @@ function Which([string]$cmd) } try { - . (Join-Path (Get-CurrentDirectory) 'JsonHelpers.ps1') - . (Join-Path (Get-CurrentDirectory) 'SublimeHelpers.ps1') + $current = Get-CurrentDirectory + + . (Join-Path $current 'JsonHelpers.ps1') + . (Join-Path $current 'SublimeHelpers.ps1') $sublimeUserDataPath = Get-SublimeUserPath + + #straight file copies + 'CoffeeScript.sublime-settings' | + % { + $params = @{ + Path = Join-Path $current $_; + Destination = Join-Path $sublimeUserDataPath $_; + Force = $true + } + Copy-Item @params + } + $linterFileName = 'SublimeLinter.sublime-settings' $gruntFileName = 'SublimeGrunt.sublime-settings' - $linter = Join-Path (Get-CurrentDirectory) $linterFileName - $grunt = Join-Path (Get-CurrentDirectory) $gruntFileName + $linter = Join-Path $current $linterFileName + $grunt = Join-Path $current $gruntFileName $node = (Which node) $nodeRoot = Split-Path $node @@ -35,10 +49,10 @@ try { ([IO.File]::ReadAllText($grunt)) -replace '{{node_path}}', $escapedNodeRoot | Out-File -FilePath (Join-Path $sublimeUserDataPath $gruntFileName) -Force -Encoding ASCII - $packageControl = (Join-Path (Get-CurrentDirectory) 'Package Control.sublime-settings') + $packageControl = (Join-Path $current 'Package Control.sublime-settings') Merge-PackageControlSettings -FilePath $packageControl - $preferences = (Join-Path (Get-CurrentDirectory) 'Preferences.sublime-settings') + $preferences = (Join-Path $current 'Preferences.sublime-settings') Merge-Preferences -FilePath $preferences if (Get-Process -Name sublime_text -ErrorAction SilentlyContinue)