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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -