meltmedia / generator-express-static

A yeoman generator for the express-static site builder.
MIT License
2 stars 0 forks source link

File Watcher #10

Closed kyleaclark closed 10 years ago

kyleaclark commented 10 years ago

Implement file watcher (such as https://npmjs.org/package/grunt-nodemon) so developer does not have to manually reload node app. Example below works with partials:

/* package.json */

"devDependencies": { "grunt-nodemon": "~0.1.2" }

/* Gruntfile.js */

grunt.loadNpmTasks('grunt-nodemon');

nodemon: { dev: { options: { file: 'app.js', nodeArgs: ['--debug'], ignoredFiles: ['node_modules/**'], env: { PORT: '3000' } } } }

grunt.registerTask('watch', [ 'nodemon:dev' ]);

jacobheun commented 10 years ago

This is completed. Pul request 13 was merged in, but there was an issue with the pull request prematurely being closed.