Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "iojs" instead in NodeJSHelper #366

Merged
merged 1 commit into from
Mar 6, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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