gulp-comments
Advanced tools
Comparing version 1.1.0 to 1.2.0
12
index.js
@@ -25,5 +25,15 @@ var gutil = require('gulp-util'); | ||
file.contents = new Buffer(contents); | ||
// Only export non-empty files | ||
if (contents.trim().length > 0) { | ||
return callback(null, file); | ||
} | ||
else { | ||
callback(); | ||
} | ||
} | ||
callback(null, file); | ||
else { | ||
callback(null, file); | ||
} | ||
}); | ||
}; |
{ | ||
"name": "gulp-comments", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Exports all jsdocs-style comments from either .js or .ts files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3473
35