Skip to content

Instantly share code, notes, and snippets.

@manolenso
Created April 16, 2014 07:26
Show Gist options
  • Save manolenso/10823766 to your computer and use it in GitHub Desktop.
Save manolenso/10823766 to your computer and use it in GitHub Desktop.
Gulp snippets for Vim (put in vim-snippets plugin: ~/vim-snippets/snippets/javascript/gulp.snippets)
# Gulp Task source
snippet gus
gulp.task('${1}', function () {
return gulp.src(${2})
.pipe(${3}(${4}))${5}
});
# Gulp Task Watch
snippet guw
gulp.task('watch', function () {
gulp.watch('${1}', ['${2}'])${3}
});
# Gulp Watch
snippet gug
gulp.watch('${1}', ['${2}']);${3}
# Gulp pipe
snippet gup
.pipe(${1}('${2}'))${3}
# Gulp pipe bracket
snippet gupb
.pipe(${1}({ ${2}: '${3}' }))${4}
# Gulp var require
snippet guv
var ${1} = require('gulp-${2}');${3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment