Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

windows workaround for #23

Only the first stdout message makes it to the build results, so we
buffer all the console.logs and print them at once with
process.stdout.write
  • Loading branch information...
commit 254daa1c52c8844645dc1d49e3b569d74e16152e 1 parent 845bb15
@tomgasson tomgasson authored
Showing with 9 additions and 2 deletions.
  1. +1 −1  JSHint.sublime-build
  2. +8 −1 reporter.js
View
2  JSHint.sublime-build
@@ -3,7 +3,7 @@
"cmd": ["jshint", "$file", "--reporter", "$packages/JSHint/reporter.js"],
- "file_regex": "file:\\s(.+)\\]",
+ "file_regex": "file:(.+)\\]",
"line_regex": "(\\d+),(\\d+)",
"osx": {
View
9 reporter.js
@@ -21,7 +21,12 @@ module.exports = {
return stayNumberWang;
}
-
+ var buffer = '';
+ console.log = function(){
+ var args = Array.prototype.slice.call(arguments);
+ buffer += args.join('');
+ buffer += '\n';
+ }
console.log('[JSHint file:', file + ']');
results.forEach(function (result) {
@@ -70,5 +75,7 @@ module.exports = {
});
}
}
+ process.stdout.write(buffer);
+ setTimeout('',3000);
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.