node.js - How do I execute typescript watch and running server at the same time? -


i developing project in nodejs. found if need code , test api, run 2 console, 1 execute typescript watch, execute server.

i think it's troublesome. find other developers on github have written scripts in package.json. it's easy call commands. attracts how write scripts , development workflow.

in short, comand of typescript watch tsc -w , comand of running server node app.js. idea merge commands tsc -w & node app.js can't work 2 commands @ same time. how do? thanks.

my idea merge commands tsc -w & node app.js can't work 2 commands @ same time. how do

you have few options. simplest use ts-node : https://github.com/typestrong/ts-node


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -