1 {
"cmd": ["node", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js",
"shell":true,
"encoding": "gbk",
"windows":
{
"cmd": ["taskkill","/F", "/IM", "node.exe","&","node", "$file"]
},
"linux":
{
"cmd": ["killall node; node $file"]
},
"osx":
{
"cmd": ["killall node; node $file"]
}
}
{
// save before running commands
"save_first": true,
// if present, use this command instead of plain "node"
// e.g. "/usr/bin/node" or "C:\bin\node.exe"
"node_command": "D:\\nodejs\\node.exe",
// Same for NPM command
"npm_command": "D:\\nodejs\\npm.cmd",
// as 'NODE_PATH' environment variable for node runtime
"node_path": true,
"expert_mode": false,
"ouput_to_new_tab": false
}