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
Post a Comment