Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Gulp SnippetsNew to Visual Studio Code? Get it now.
Gulp Snippets

Gulp Snippets

tanato

|
59,174 installs
| (2) | Free
Gulp JS Snippets for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Gulp - VS Code

Installation

Type cmd+p/ctrl+p to bring up the command pallete and pick >ext install from the dropdown, type gulp and select the extension, restart VSCode and you are all set.

Snippets

gulpvar

var gulp = require('gulp-name');

pipe | gulppipe

.pipe(name('file'))

gulpsrc - Docs

gulp.src('scriptFiles')
  .pipe(name('file'))

gulptask - Docs

gulp.task('name', function() {
    // content
});

gulptaskdep - Docs

gulp.task('name', ['tasks'], function() {
    // content
});

gulpdest - Docs

.pipe(gulp.dest('folder'));

gulpwatch - Docs

gulp.watch('file', ['tasks']);

gulpwcb - Docs

gulp.watch('file', function(event) {
  console.log(' File '+event.path+' was '+event.type+', running tasks...');
});

gulptaskfull

gulp.task('name',['tasks'], function() {
    gulp.src('files')
        .pipe(plugin())
        .pipe(gulp.dest('folder'));
});

** Enjoy!**

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft