node.js - How to whatch multiple folders with nodemon? -
i need this:
nodemon.json:
[{ "watch": ["src/api-gateway"], "ext": "ts", "ignore": ["src/**/*.spec.ts"], "exec": "ts-node ./src/api-gateway/main.ts" }, { "watch": ["src/services/ping-service"], "ext": "ts", "ignore": ["src/**/*.spec.ts"], "exec": "ts-node ./src/services/ping-service/ping-service.ts" }]
is possible, or if there alternative way it?
use array watch option
"watch": [ "folder1", "folder2", ]
you can @ sample here https://github.com/remy/nodemon/blob/master/doc/sample-nodemon.md
Comments
Post a Comment