Comparing version 0.1.1 to 0.1.2
@@ -16,7 +16,7 @@ // Generated by CoffeeScript 1.6.3 | ||
return { | ||
regexp: /^\s*(?:include|extends)\s+(.*)/ | ||
regexp: /^\s*(?:include|extends)\s+(.+)/ | ||
}; | ||
case 'styl': | ||
return { | ||
regexp: /^\s*@import\s+['"](.*)['"]/, | ||
regexp: /^\s*@import\s+['"]?([^'"]+)['"]?/, | ||
exclusion: 'nib' | ||
@@ -26,3 +26,3 @@ }; | ||
return { | ||
regexp: /^\s*@import\s+['"](.*)['"]/ | ||
regexp: /^\s*@import\s+['"]([^'"]+)['"]/ | ||
}; | ||
@@ -32,3 +32,3 @@ case 'scss': | ||
return { | ||
regexp: /^\s*@import\s+['"](.*)['"]/, | ||
regexp: /^\s*@import\s+['"]?([^'"]+)['"]?/, | ||
prefix: '_', | ||
@@ -47,3 +47,3 @@ exclusion: /^compass/, | ||
parent = sysPath.dirname(path); | ||
deps = data.split('\n').map(function(line) { | ||
deps = data.toString().split('\n').map(function(line) { | ||
return line.match(regexp); | ||
@@ -67,3 +67,3 @@ }).filter(function(match) { | ||
if (("." + extension) !== sysPath.extname(path)) { | ||
return path + ("." + extension); | ||
return "" + path + "." + extension; | ||
} else { | ||
@@ -73,3 +73,3 @@ return path; | ||
}).map(function(path) { | ||
if (path.charAt(0) === '/') { | ||
if (path[0] === '/') { | ||
return sysPath.join(rootPath, path.slice(1)); | ||
@@ -86,3 +86,3 @@ } else { | ||
file = sysPath.basename(path); | ||
if ((prefix != null) && 0 !== file.indexOf(prefix)) { | ||
if (0 !== file.indexOf(prefix)) { | ||
return prefixed.push(sysPath.join(dir, "" + prefix + file)); | ||
@@ -89,0 +89,0 @@ } |
{ | ||
"name": "progeny", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Recursively finds dependencies of style and template source files", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
9272