gulp-task-listing
Advanced tools
Comparing version 0.3.0 to 1.0.0
35
index.js
@@ -10,3 +10,3 @@ /*jshint node:true */ | ||
var DEFAULT_SUBTASK_REGEX = /[-_:]/, | ||
filter = function(inc, subtaskFilter) { | ||
@@ -26,3 +26,3 @@ return function(n) { | ||
return function(t) { | ||
return t.search(rfn) !== -1; | ||
return t.search(rfn) !== -1; | ||
}; | ||
@@ -32,7 +32,7 @@ } | ||
}, | ||
help = function(subtaskFilter, excludeFilter) { | ||
subtaskFilter = regexFunc(subtaskFilter || DEFAULT_SUBTASK_REGEX); | ||
excludeFilter = regexFunc(excludeFilter); | ||
return function(cb) { | ||
@@ -45,17 +45,21 @@ var tasks = Object.keys(gulp.tasks).sort(); | ||
} | ||
header('Main Tasks'); | ||
tasks.filter(filter(false, subtaskFilter)).forEach(function(name) { | ||
console.log(' '+colors.cyan(name)); | ||
console.log(' ' + colors.cyan(name)); | ||
}); | ||
header('Sub Tasks'); | ||
tasks.filter(filter(true, subtaskFilter)).forEach(function(name) { | ||
console.log(' '+name); | ||
}); | ||
var subtasks = tasks.filter(filter(true, subtaskFilter)); | ||
if(subtasks.length) { | ||
header('Sub Tasks'); | ||
subtasks.forEach(function(name) { | ||
console.log(' ' + name); | ||
}); | ||
} | ||
console.log(''); | ||
// we're synchronous | ||
@@ -71,2 +75,1 @@ cb && cb(); | ||
}; | ||
{ | ||
"name": "gulp-task-listing", | ||
"description": "Adds the ability to provide a task listing for your gulpfile", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/OverZealous/gulp-task-listing", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6300
54
0