Skip to content

dkern/gulp-noop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gulp-noop

GitHub version NPM version Dependencies Status

simple no-operation plugin for gulp


About

This plugin is just the same as noop in gulp-util. If you already use gulp-util in your project, you should pick this instead of gulp-noop. If not, this plugin is a smaller and lighter alternative. :)

Install

$ npm install --save-dev gulp-noop

NPM

Example

Use it for inline decisions:

var noop = require("gulp-noop");
var obfuscate = true;

gulp.task("my-task", function() {
    return gulp.src("*.js")
               .pipe(jshint())
               .pipe(obfuscate ? uglify() : noop())
               .pipe(gulp.dest("./dist"));
});

Or just replace other actions with noop(), like for debugging purpose:

var noop = require("gulp-noop");

gulp.task("my-task", function() {
    return gulp.src("*.js")
               .pipe(noop())
               .pipe(noop())
               .pipe(gulp.dest("./dist"));
});