A Grunt task runner for Sublime Text
sublime-grunt can be installed via Sublime Package Control. In Package Control, it is called Grunt. Please refer to the offical Package Control documentation to learn how to install packages.
Alternatively, you can also clone the sublime-grunt repository into your Sublime Text packages folder.
Open the command palette using Ctrl+Shift+P (or Cmd+Shift+P on Mac, respectively) and choose the "Grunt" command.
The plugin expects to find a Gruntfile (Gruntfile.js
or Gruntfile.coffee
) in an open folder.
It displays a sorted list of available Grunt tasks out of this Grunt file.
If it finds more than one Gruntfile, it first provides a list for selection.
As of version 0.2, there is also a command to kill running tasks, for example
watch
tasks.
The file SublimeGrunt.sublime-settings
is used for configuration.
You may override your PATH
environment variable as follows:
{
"exec_args": {
"path": "/bin:/usr/bin:/usr/local/bin"
}
}
If your GruntFile is not in the base path of the project, then you can add the path(s) to check as follows:
{
"gruntfile_paths": ["/path", "/another/path", "/one/final/path"]
}
Alternatively this could be set per-project in your .sublime-project settings object
watch
task)Thanks for some contributions go to