chore: updated broken-link-checker package and tweaked logging.

This commit is contained in:
Ward Bell 2016-06-01 00:12:51 -07:00
parent 613d53e152
commit b2262c2bc9
2 changed files with 7 additions and 4 deletions

View File

@ -691,7 +691,7 @@ function linkChecker(options) {
var handlers = {
robots: function(robots, customData){},
html: function(tree, robots, response, pageUrl, customData){
//gutil.log('Scanning ' + pageUrl);docs/ts/latest/api/core/
// gutil.log('Scanning ' + pageUrl);
},
junk: function(result, customData){},
@ -708,8 +708,8 @@ function linkChecker(options) {
}
var msg = '\n [' + result.html.location.line + ', ' + result.brokenReason + '] ' + result.url.resolved;
fs.appendFileSync(outputFile, msg);
//gutil.log(msg);
//gutil.log(result);
// gutil.log(msg);
// gutil.log(result);
},
page: function(error, pageUrl, customData){},
@ -737,8 +737,11 @@ function linkChecker(options) {
var startTime = new Date().getTime();
try {
gutil.log('link checker started');
siteChecker.enqueue(siteUrl, customData);
} catch (err) {
gutil.log('link checker died');
console.error('link checker died', err);
deferred.reject(err);
}
return deferred.promise;

View File

@ -27,7 +27,7 @@
"devDependencies": {
"archiver": "^0.16.0",
"assert-plus": "^0.1.5",
"broken-link-checker": "0.7.0",
"broken-link-checker": "0.7.1",
"browser-sync": "^2.9.3",
"canonical-path": "0.0.2",
"cross-spawn": "^2.1.0",