Closed kyleaclark closed 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' ]);
This is completed. Pul request 13 was merged in, but there was an issue with the pull request prematurely being closed.
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' ]);