Skip to content

Instantly share code, notes, and snippets.

@husa
Last active December 18, 2015 04:10
Show Gist options
  • Save husa/5723132 to your computer and use it in GitHub Desktop.
Save husa/5723132 to your computer and use it in GitHub Desktop.
Node js Build for Sublime Text 2 To import it to Sublime Text: Tools -> Build System -> New Build System, and paste this code there To use: Tools -> Build System, and select your newly created build
// new build
{
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js"
}
//key bindings for build
[
{ "keys": ["ctrl+b"], "command": "build" },
{ "keys": ["ctrl++alt+b"], "command": "exec", "args": {"kill": true} }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment