Skip to content

Instantly share code, notes, and snippets.

@adamdehaven
Created September 21, 2017 15:22
Show Gist options
  • Save adamdehaven/b1c1510d37b705b312ad745a755d861a to your computer and use it in GitHub Desktop.
Save adamdehaven/b1c1510d37b705b312ad745a755d861a to your computer and use it in GitHub Desktop.
Adds a "Kill and Delete Cache" command to the sublime-gulp package for Sublime Text 3
import sublime
import sublime_plugin
class GulpDeleteCacheOnKill(sublime_plugin.WindowCommand):
def run(self):
self.window.run_command("gulp_kill")
self.window.run_command("gulp_delete_cache")
[
{
"caption": "Gulp: Kill and Delete Cache",
"command": "gulp_delete_cache_on_kill"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment