Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "wulp", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Gulp tasks that can be run directly or as part of a watch task.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -89,6 +89,6 @@ var debug = require('debug')('wulp'); | ||
if (micromatch.any(file.relative, task.runAll, MICROMATCH_OPTIONS)) { | ||
if (micromatch(file.relative, task.runAll, MICROMATCH_OPTIONS).length) { | ||
tasksToRun.push(taskName); | ||
this._enqueueTask(taskName, true); | ||
} else if (micromatch.any(file.relative, task.globs, MICROMATCH_OPTIONS)) { | ||
} else if (micromatch(file.relative, task.globs, MICROMATCH_OPTIONS).length) { | ||
tasksToRun.push(taskName); | ||
@@ -149,5 +149,10 @@ this._enqueueTask(taskName, file); | ||
var inputStream = Array.isArray(files) | ||
? streamArray(files) | ||
: this._gulp.src(task.globs, {base: process.cwd()}); | ||
var inputStream; | ||
if (Array.isArray(files)) { | ||
debug('_runTask', taskName, 'with files:', files.map(function(f) { return f.relative; })); | ||
inputStream = streamArray(files); | ||
} else { | ||
debug('_runTask', taskName, 'with globs:', task.globs); | ||
inputStream = this._gulp.src(task.globs, {base: process.cwd()}); | ||
} | ||
var outputStream = task.runner(inputStream); | ||
@@ -154,0 +159,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
17989
166