Pourquoi n'est-ce pas grunt-contrib-montre livereload de travail?

J'ai du mal à obtenir Grunt "live reload" capacité (tel que mis en œuvre dans grunt-contrib-montre) pour travailler dans mon application. J'ai finalement peu la balle, et essayé de faire un exemple minimal. J'espère que quelqu'un peut facilement remarquer ce qu'il manque.

Structure De Fichier:

├── Gruntfile.js
├── package.json
├── index.html

package.json

{
  "name": "livereloadTest",
  "version": "0.1.0",
  "devDependencies": {
    "grunt": "~0.4.2",
    "grunt-contrib-watch": "~0.5.3"
  }
}

Gruntfile.js

module.exports = function(grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        watch: {
            src: {
                files: ['*.html'],
                options: { livereload: true }
            }
        }
    });
    grunt.loadNpmTasks('grunt-contrib-watch');
};

index.html

<!doctype html>
<html>
<head><title>Test</title></head>
<body>

<p>....</p>
<script src="//localhost:35729/livereload.js"></script>

</body>
</html>

Je puis exécutez grunt watch et rien coups. Toutefois, aucune fenêtre de navigateur s'ouvre automatiquement (devrait?).

Quand j'ouvre chrome à http://localhost:35729/, j'obtiens ce json:

{"tinylr":"Welcome","version":"0.0.4"}

et d'essayer un autre chemin sur ce port me donne

{"error":"not_found","reason":"no such route"}

OriginalL'auteur Zach Lysobey | 2014-02-20