Skip to content

Instantly share code, notes, and snippets.

@mhkeller
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhkeller/bdbefd0255795365d975 to your computer and use it in GitHub Desktop.
Save mhkeller/bdbefd0255795365d975 to your computer and use it in GitHub Desktop.
Node build system for Sublime Text 2.

Save this file as Node.sublime-build in your User folder, which you can get to by going to menu tree Sublime Text 2 > Preferences > Browse Packages....

It fixes a file path problem I was having using this solution: http://logicmason.com/2013/adding-a-js-build-system-to-sublime/comment-page-1/

It should automatically set the build system for all .js files but if it doesn't, go to Tools > Build System > Node.

{
"cmd": ["/usr/local/bin/node", "$file", "$file"],
"working_dir": "${project_path:${folder}}",
"selector": "*.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment