Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node mon in loopback

install nodemon: npm i --save-dev nodemon
open package.json in section scripts add new line: "dev" : "nodemon server/server.js --watch common --watch server"
run your server with command: npm run dev

 in package.josn file add this one
"nodemonConfig": {
  "verbose": true,
  "watch": [ "src/" ],
  "ignore": [ "dist/*" ],
  "ext": "ts",
  "exec": "npm start"
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #mon #loopback
ADD COMMENT
Topic
Name
3+5 =