sublimetext3 - How to compile TypeScript and run the result .js file in one build in sublime Text 3? -
i've installed typescript plugin on sublime text 3. after plugin installed, has build system added menu.
you can use "command + b" build .ts file.
what want compile .ts .js , run result js file using "node xxx.js" in 1 "command + b" command.
how configure sublime text 3 build system it?
assuming both tsc , node in system path, following configuration should work:
{ "cmd": ["tsc $file && node $file_base_name.js"], "shell": true, "selector": "*.ts" } see build systems – configuration more on going on here.

Comments
Post a Comment