gulp-noop
v1.0.1
Published
simple no-operation plugin for gulp
Downloads
52,550
Readme
gulp-noop
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
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"));
});