1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Moves all testing into gulpfile.

This commit is contained in:
Yury Delendik 2016-05-02 09:58:29 -05:00
parent 4dc00b003d
commit fe6001363d
3 changed files with 146 additions and 97 deletions

View file

@ -455,13 +455,13 @@ function validateFiles(paths, options) {
};
// Finds all files.
var foundFiles = [];
for (var name in paths) {
if (!paths.hasOwnProperty(name)) {
continue;
}
var path = paths[name];
var stats = fs.statSync(path);
var foundFiles = [];
if (stats.isFile()) {
foundFiles.push({path: path, name: name});
} else if (stats.isDirectory()) {