EthanBrown.SublimeText2.WebPackages to 0.0.3
- Copy CoffeeScript.sublime-settings to User packages directory
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<metadata>
|
<metadata>
|
||||||
<id>EthanBrown.SublimeText2.WebPackages</id>
|
<id>EthanBrown.SublimeText2.WebPackages</id>
|
||||||
<title>Sublime Text 2 - Web Development Packages</title>
|
<title>Sublime Text 2 - Web Development Packages</title>
|
||||||
<version>0.0.2</version>
|
<version>0.0.3</version>
|
||||||
<authors>Various</authors>
|
<authors>Various</authors>
|
||||||
<owners>Ethan Brown</owners>
|
<owners>Ethan Brown</owners>
|
||||||
<summary>A number of packages helpful for auto-completion, snippets and syntax recognition of common web frameowrks and tools to increase editor productivity.</summary>
|
<summary>A number of packages helpful for auto-completion, snippets and syntax recognition of common web frameowrks and tools to increase editor productivity.</summary>
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
Rules for
|
Rules for
|
||||||
- Autocompletion triggers, like . and $ in CoffeeScript
|
- Autocompletion triggers, like . and $ in CoffeeScript
|
||||||
- Autocompletion commit on TAB
|
- Autocompletion commit on TAB
|
||||||
- ensuring 2 tab indent
|
- ensuring 2 spaces for soft TAB indent
|
||||||
- customized word_separators
|
- customized word_separators
|
||||||
</description>
|
</description>
|
||||||
<projectUrl>http://github.com/Iristyle/ChocolateyPackages/</projectUrl>
|
<projectUrl>http://github.com/Iristyle/ChocolateyPackages/</projectUrl>
|
||||||
|
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"tab_size": 2,
|
||||||
|
"translate_tabs_to_spaces": true
|
||||||
|
}
|
@@ -15,14 +15,28 @@ function Which([string]$cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
. (Join-Path (Get-CurrentDirectory) 'JsonHelpers.ps1')
|
$current = Get-CurrentDirectory
|
||||||
. (Join-Path (Get-CurrentDirectory) 'SublimeHelpers.ps1')
|
|
||||||
|
. (Join-Path $current 'JsonHelpers.ps1')
|
||||||
|
. (Join-Path $current 'SublimeHelpers.ps1')
|
||||||
|
|
||||||
$sublimeUserDataPath = Get-SublimeUserPath
|
$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'
|
$linterFileName = 'SublimeLinter.sublime-settings'
|
||||||
$gruntFileName = 'SublimeGrunt.sublime-settings'
|
$gruntFileName = 'SublimeGrunt.sublime-settings'
|
||||||
$linter = Join-Path (Get-CurrentDirectory) $linterFileName
|
$linter = Join-Path $current $linterFileName
|
||||||
$grunt = Join-Path (Get-CurrentDirectory) $gruntFileName
|
$grunt = Join-Path $current $gruntFileName
|
||||||
|
|
||||||
$node = (Which node)
|
$node = (Which node)
|
||||||
$nodeRoot = Split-Path $node
|
$nodeRoot = Split-Path $node
|
||||||
@@ -35,10 +49,10 @@ try {
|
|||||||
([IO.File]::ReadAllText($grunt)) -replace '{{node_path}}', $escapedNodeRoot |
|
([IO.File]::ReadAllText($grunt)) -replace '{{node_path}}', $escapedNodeRoot |
|
||||||
Out-File -FilePath (Join-Path $sublimeUserDataPath $gruntFileName) -Force -Encoding ASCII
|
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
|
Merge-PackageControlSettings -FilePath $packageControl
|
||||||
|
|
||||||
$preferences = (Join-Path (Get-CurrentDirectory) 'Preferences.sublime-settings')
|
$preferences = (Join-Path $current 'Preferences.sublime-settings')
|
||||||
Merge-Preferences -FilePath $preferences
|
Merge-Preferences -FilePath $preferences
|
||||||
|
|
||||||
if (Get-Process -Name sublime_text -ErrorAction SilentlyContinue)
|
if (Get-Process -Name sublime_text -ErrorAction SilentlyContinue)
|
||||||
|
Reference in New Issue
Block a user