ChrisWren / grunt-nodemon

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

How to use grunt-nodemon? You do not explain it properly. #48

Closed wzup closed 10 years ago

wzup commented 10 years ago

It is not clear how to use grunt-nodemon. The docs says:

Minimal Usage
The minimal usage of grunt-nodemon runs with a script specified:
nodemon: {
  dev: {
    script: 'index.js'
  }
}

But where to write it? In which file? In package.json? I wrote it in package.json but it doesn't work. And you do not explain what exactly you mean.

    "scripts": {
        "test": "grunt test",
        "start": "node index.js",
        "nodemon": {
            "dev": {
                "script": "index.js"
            }
        }
    },

Please, explain this. And also how to call the task. npm nodemon? nodemon grunt-nodemon? npm script.js grunt-nodemon? How?

wzup commented 10 years ago

So, I found how to start this grunt-nodemon task however it doesn't work, it doesn't reload a server on file save.

ChrisWren commented 10 years ago

Sorry for the late response. I assume the reader of the README has read the Getting Started guide. Start there before trying to set this task up.