From 1dc6243b75bb7fc1e08f9120b06357b93f8a9cff Mon Sep 17 00:00:00 2001 From: Alex Whitman Date: Sat, 17 Aug 2013 10:31:55 +0100 Subject: [PATCH] Fix up linting warnings - Mix of tabs and spaces - Trailing whitepsace - Missing semi-colons --- lib/index.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/index.js b/lib/index.js index 47aac10..2b7750c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -60,20 +60,20 @@ exports.compile = function(args, next) { * 5. bundle it all together */ - on.success(function() { - console.log("building node.js"); - this.node.make(this); - }), + on.success(function() { + console.log("building node.js"); + this.node.make(this); + }), - /** - * 6. copy the executable - */ + /** + * 6. copy the executable + */ - on.success(function() { - console.log("copying binary to output directory to %s", args.output); + on.success(function() { + console.log("copying binary to output directory to %s", args.output); - mkdirp(path.dirname(args.output), this); - }), + mkdirp(path.dirname(args.output), this); + }), /** */ @@ -87,8 +87,8 @@ exports.compile = function(args, next) { next - ) -} + ); +}; /** */ @@ -100,7 +100,7 @@ function downloadNode(version, next) { try { - mkdirp.sync(path.dirname(tmpPath)) + mkdirp.sync(path.dirname(tmpPath)); //an error will usually occur when the dir already exists. } catch(e) { } @@ -164,7 +164,7 @@ function downloadNode(version, next) { make: function(next) { var proc = exec(sprintf("cd %s; ./configure; make; ", srcDr)); proc.stdout._events = {}; //remove stdout & stdin capture - proc.stdin._events = {}; + proc.stdin._events = {}; proc.stdout.on("data", function(chunk) { process.stdout.write(chunk); }); @@ -207,7 +207,7 @@ function monkeyPatchNodejs(node, next) { //nexe already injected? if(~content.indexOf('nexe')) return this(); - fs.writeFile(nodejsPath, + fs.writeFile(nodejsPath, content.replace(/\(function\(process\) \{/,'(function(process){ \n process._eval = \'require("nexe");\'; '), "utf8", this); @@ -241,4 +241,4 @@ function monkeyPatchNodejs(node, next) { next ); -} \ No newline at end of file +}