dependability
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -25,3 +25,3 @@ var async = require('async'), | ||
async.forEach(allFiles, function(file, cb){ | ||
var processFile = function(file, cb){ | ||
fs.readFile(file, function(err, data) { | ||
@@ -54,4 +54,10 @@ if(err) { | ||
graph.add(file, path); | ||
if (allFiles.indexOf(path) < 0) { | ||
processFile(path, ecb); | ||
} else { | ||
ecb(); | ||
} | ||
} else { | ||
ecb(err); | ||
} | ||
ecb(err); | ||
}); | ||
@@ -62,3 +68,3 @@ }, function(err) { | ||
} | ||
cb(err); | ||
cb(err); | ||
}); | ||
@@ -68,4 +74,5 @@ | ||
}); | ||
}; | ||
}, function(err){ | ||
async.forEach(allFiles, processFile, function(err){ | ||
if(err) { | ||
@@ -72,0 +79,0 @@ callback(err); |
{ | ||
"name": "dependability", | ||
"description": "Dependable ordering of JS & CSS files during build and dynamically during development.", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"homepage": "https://github.com/opentok/dependability", | ||
@@ -6,0 +6,0 @@ "author": { |
10670
205