ChrisWren / grunt-nodemon

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

watch option is ignored #41

Closed maberer closed 10 years ago

maberer commented 10 years ago

It seems, that the watch option configured in "grunt-nodemon" is not given to nodemon (it always starts by watching the default root).

Other options have not been tested. Can this be confirmed?

ChrisWren commented 10 years ago

Can you post your Gruntfile?

maberer commented 10 years ago

I removed everything except nodemon.

module.exports = (grunt) ->

grunt.initConfig            
    nodemon:
        dev:
            script: 'server/index.js'
            watch: ['./server']

grunt.loadNpmTasks 'grunt-nodemon'

# Default task.
grunt.registerTask 'default', ['nodemon']
ChrisWren commented 10 years ago

watch should be under options:

grunt.initConfig            
    nodemon:
        dev:
            script: 'server/index.js'
            options:
               watch: ['./server']
maberer commented 10 years ago

ohhh sorry I missed that...

Thanks a lot!

seemsindie commented 10 years ago

Thanks