Created
April 16, 2014 07:26
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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