ChrisWren / grunt-nodemon

Grunt task to run nodemon
MIT License
345 stars 37 forks source link

folder watch #47

Closed lvegerano closed 10 years ago

lvegerano commented 10 years ago

Not sure if Im doing something wrong, but Im using a basic config: nodemon: { dev: { script: 'server.js', watch: ['mymodules/.js'] } } Still restarts the server on any root folder changes [nodemon] v1.2.1 [nodemon] to restart at any time, enter rs [nodemon] watching: *._ [nodemon] starting node server.js

ChrisWren commented 10 years ago

Need to nest watch in options.

nodemon: {
  dev: {
    script: 'server.js',
    options: {
      watch: ['my_modules/.js']
    }
  }
}
lvegerano commented 10 years ago

opps!!! thanks and sorry for the dumb mistake

ChrisWren commented 10 years ago

No problem, should clarify this better in the docs since it is a common issue

On Thursday, July 31, 2014, blak422 notifications@github.com wrote:

opps!!! thanks and sorry for the dumb mistake

— Reply to this email directly or view it on GitHub https://github.com/ChrisWren/grunt-nodemon/issues/47#issuecomment-50803473 .