Comparing version 0.1.3 to 0.2.0
@@ -53,12 +53,15 @@ // Generated by CoffeeScript 1.6.3 | ||
}).filter(function(path) { | ||
return !!path && !(function() { | ||
if ('[object Array]' !== toString.call(exclusion)) { | ||
exclusion = [exclusion]; | ||
} | ||
return !!path && !exclusion.some(function(_exclusion) { | ||
switch (false) { | ||
case !(exclusion instanceof RegExp): | ||
return exclusion.test(path); | ||
case !(exclusion instanceof String): | ||
return exclusion === path; | ||
case !(_exclusion instanceof RegExp): | ||
return _exclusion.test(path); | ||
case '[object String]' !== toString.call(_exclusion): | ||
return _exclusion === path; | ||
default: | ||
return false; | ||
} | ||
})(); | ||
}); | ||
}).map(function(path) { | ||
@@ -65,0 +68,0 @@ if (extension && ("." + extension) !== sysPath.extname(path)) { |
{ | ||
"name": "progeny", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Recursively finds dependencies of style and template source files", | ||
@@ -19,3 +19,4 @@ "author": { | ||
"scripts": { | ||
"prepublish": "rm -rf lib && coffee --bare --output lib/ src/" | ||
"prepublish": "rm -rf lib && coffee --bare --output lib/ src/", | ||
"test": "mocha --compilers coffee:coffee-script" | ||
}, | ||
@@ -25,3 +26,6 @@ "dependencies": { | ||
}, | ||
"devDependencies": {} | ||
"devDependencies": { | ||
"mocha": "~1.13.0", | ||
"coffee-script": "~1.6.3" | ||
} | ||
} |
@@ -50,3 +50,3 @@ Progeny | ||
// Matched stuff to exclude, string or regex | ||
// Matched stuff to exclude: string, regex, or array of either/both | ||
exclusion: /^compass/, | ||
@@ -53,0 +53,0 @@ |
Sorry, the diff of this file is not supported yet
15151
8
159
2