Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dkern/gulp-noop

simple no-operation plugin for gulp
https://github.com/dkern/gulp-noop

gulp gulp-js gulp-noop gulp-plugin gulp-plugins gulpfile gulpjs noop

Last synced: 2 months ago
JSON representation

simple no-operation plugin for gulp

Awesome Lists containing this project

README

        

# gulp-noop

[![GitHub version](https://badge.fury.io/gh/dkern%2Fgulp-noop.svg)](http://github.com/dkern/gulp-noop)
[![NPM version](https://badge.fury.io/js/gulp-noop.svg)](http://www.npmjs.org/package/gulp-noop)
[![Dependencies Status](https://david-dm.org/dkern/gulp-noop/status.svg)](https://david-dm.org/dkern/gulp-noop)

simple no-operation plugin for [gulp](http://gulpjs.com/)

-----

## About
This plugin is just the same as `noop` in [`gulp-util`](https://www.npmjs.com/package/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
```SH
$ npm install --save-dev gulp-noop
```
[![NPM](https://nodei.co/npm/gulp-noop.png?compact=true)](https://nodei.co/npm/gulp-noop/)

## Example
Use it for inline decisions:

```JS
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:
```JS
var noop = require("gulp-noop");

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