Sublime Text 3 nodejs build
The build file should like the following below:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
{ "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.js", "shell":true, "encoding": "cp936", "windows": { "cmd": "taskkill /F /IM node.exe /T & node $file" }, "linux": { "cmd": ["killall node; node", "$file"] } } |
If you want to test the command line in ST3, just type “dir”(“” should contain) in “windows” -> “cmd”, then you may know how it worked.