Comparing version 0.0.2 to 0.0.3
@@ -67,5 +67,5 @@ /*! | ||
Scanner.prototype.parsepath = function (dir, recurse) { | ||
return function (filename) { | ||
var filepath = path.normalize(path.resolve(dir, filename)); | ||
Scanner.prototype.parsefilepath = function (dir, filename) { | ||
return function (filepath) { | ||
filepath = path.normalize(path.resolve(dir, filepath)); | ||
@@ -77,7 +77,2 @@ // Exclude dot files and others | ||
if (!fs.existsSync(filepath)) { | ||
utils.log.warn('The path', filepath, 'doesn\'t exists'); | ||
return; | ||
} | ||
if (utils.file.isDir(filepath) && recurse) { | ||
@@ -92,2 +87,14 @@ this.parsedir(filepath); | ||
Scanner.prototype.parsepath = function (dir, recurse) { | ||
return function (filename) { | ||
var files = utils.file.expand(filename); | ||
var filepath = path.normalize(path.resolve(dir, filename)); | ||
if (files && files.length) { | ||
files.forEach(this.parsefilepath(dir, filename), this); | ||
} else { | ||
utils.log.warn('The path', filepath, 'doesn\'t exists'); | ||
} | ||
}; | ||
}; | ||
Scanner.prototype.isValidExt = function (filepath) { | ||
@@ -94,0 +101,0 @@ var isValid = true; |
{ | ||
"name": "commentjs", | ||
"description": "Simple API Documentation Generator", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": "Denis Ciccale (@tdecs)", | ||
@@ -6,0 +6,0 @@ "homepage": "http://github.com/dciccale/comment.js", |
163013
3519