Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dkern/gulp-noop
- Owner: dkern
- License: mit
- Created: 2016-08-11T09:08:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-07-24T11:39:51.000Z (over 4 years ago)
- Last Synced: 2024-09-28T06:41:59.644Z (3 months ago)
- Topics: gulp, gulp-js, gulp-noop, gulp-plugin, gulp-plugins, gulpfile, gulpjs, noop
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/gulp-noop
- Size: 2.93 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"));
});
```