Skip to content

Commit

Permalink
Merge pull request #366 from vroad/PR/fix-3
Browse files Browse the repository at this point in the history
Use "iojs" instead in NodeJSHelper
  • Loading branch information
jgranick committed Mar 6, 2015
2 parents f88a35f + 8ed6ad3 commit f1617e5
Show file tree
Hide file tree
Showing 124 changed files with 2 additions and 10,048 deletions.
36 changes: 2 additions & 34 deletions lime/tools/helpers/NodeJSHelper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,7 @@ class NodeJSHelper {


public static function run (project:HXProject, modulePath:String, args:Array<String> = null):Void {

var suffix = switch (PlatformHelper.hostPlatform) {

case Platform.WINDOWS: "-windows.exe";
case Platform.MAC: "-mac";
case Platform.LINUX: "-linux";
default: return;

}

if (suffix == "-linux") {

if (PlatformHelper.hostArchitecture == Architecture.X86) {

suffix += "32";

} else {

suffix += "64";

}

}

var templatePaths = [ PathHelper.combine (PathHelper.getHaxelib (new Haxelib ("lime")), "templates") ].concat (project.templatePaths);
var node = PathHelper.findTemplate (templatePaths, "bin/node/node" + suffix);

if (PlatformHelper.hostPlatform != Platform.WINDOWS) {

Sys.command ("chmod", [ "+x", node ]);

}


if (args == null) {

args = [];
Expand All @@ -53,7 +21,7 @@ class NodeJSHelper {

args.unshift (Path.withoutDirectory (modulePath));

ProcessHelper.runCommand (Path.directory (modulePath), node, args);
ProcessHelper.runCommand (Path.directory (modulePath), "iojs", args);

}

Expand Down
20 changes: 0 additions & 20 deletions templates/bin/node/http-server/LICENSE

This file was deleted.

106 changes: 0 additions & 106 deletions templates/bin/node/http-server/http-server

This file was deleted.

64 changes: 0 additions & 64 deletions templates/bin/node/http-server/http-server.js

This file was deleted.

1 change: 0 additions & 1 deletion templates/bin/node/http-server/node_modules/.bin/ecstatic

This file was deleted.

1 change: 0 additions & 1 deletion templates/bin/node/http-server/node_modules/.bin/opener

This file was deleted.

22 changes: 0 additions & 22 deletions templates/bin/node/http-server/node_modules/colors/MIT-LICENSE.txt

This file was deleted.

Loading

0 comments on commit f1617e5

Please sign in to comment.