Skip to content

nodemon

Michael Kramer edited this page Feb 21, 2018 · 1 revision

Nodemon

Package Library: http://nodemon.io/

This package will auto restart your project when files change.

How to execute

nf run -- nodemon index.js web

Nodemon config

nodemon.json

{
  "verbose": false,
  "ignore": [
    ".git/*",
    "node_modules/*",
    "migrations/*",
    "dist/*",
    "server/web/public/css/main.css",
    "server/web/public/images/*",
    "test/*",
    ".gitlab/*",
    "flow/*",
    "flow-typed/*",
    "npm-debug*"
  ],
  "events": {
    "restart": [
      "printf '\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'"
    ]
  },
  "env": {
    "NODEMON": "1"
  },
  "delay": "100",
  "ext": "scss js pug"
}
Clone this wiki locally