sensortoy/www/libs/bluebird/tools/jshint.js
Martin Donnelly 939a7aff4c init
2016-05-20 17:10:40 +01:00

21 lines
490 B
JavaScript

var utils = require("./utils.js");
var path = require("path");
module.exports = function() {
var wd = path.join(__dirname, "..");
return utils.run("node_modules/jshint/bin/jshint", [
"--verbose",
"--reporter",
"node_modules/jshint-stylish/stylish.js",
"src/"
], wd);
};
function log(value) {
process.stdout.write(value.stdout);
process.stderr.write(value.stderr);
}
if (require.main === module) {
module.exports().then(log, log);
}