gulp-ignore
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -6,5 +6,5 @@ "use strict"; | ||
var include = function(condition){ | ||
var include = function(condition, minimatchOptions){ | ||
return through.obj(function (file, enc, callback) { | ||
if (gulpmatch(file,condition)) { | ||
if (gulpmatch(file, condition, minimatchOptions)) { | ||
this.push(file); | ||
@@ -16,5 +16,5 @@ } | ||
var exclude = function(condition){ | ||
var exclude = function(condition, minimatchOptions){ | ||
return through.obj(function (file, enc, callback) { | ||
if (!gulpmatch(file,condition)) { | ||
if (!gulpmatch(file, condition, minimatchOptions)) { | ||
this.push(file); | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "gulp-ignore", | ||
"description": "Include or exclude gulp files from the stream based on a condition", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"homepage": "https://github.com/robrich/gulp-ignore", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/robrich/gulp-ignore.git", |
@@ -101,7 +101,7 @@ gulp-ignore ![status](https://secure.travis-ci.org/robrich/gulp-ignore.png?branch=master) | ||
### exclude(condition) | ||
### exclude(condition [, minimatchOptions]) | ||
Exclude files whose `file.path` matches, include everything else | ||
### include(condition) | ||
### include(condition [, minimatchOptions]) | ||
@@ -118,3 +118,7 @@ Include files whose `file.path` matches, exclude everything else | ||
##### minimatchOptions | ||
Optional, if it's a glob condition, these options are passed to [https://github.com/isaacs/minimatch](minimatch). | ||
LICENSE | ||
@@ -121,0 +125,0 @@ ------- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53308
153