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.

enter image description here

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

Popular posts from this blog

php - isset function not working properly -

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -