Gulp Bash Completion
Simple Usage
You have to do two things:
- Add
gulp-bash-completion
to yourpackage.json
, require it somewhere in your gulpfile, and pass gulp into it.
var gulp = ; gulp;
- Copy
gulp-completion.bash
somewhere and source it in your shell.
More Usage
You can pass in an options object as the second argument to gulp-bash-completion
's exported function. This only takes one option at the moment, filter
. It's used to filter tasks out of tab completion.
The default filter hides task names with a leading underscore, as well as the task added by gulp-bash-completion
itself.
var gulp = ; gulp { if !taskName === 'smurf' return true; } ;
Notes
- The bash script creates a cache file
.gulp_tasks~
in the same directory as your gulpfile. Add it to any relevant .ignore files. - Sometimes all the whitespace in Python makes me feel cold and empty.