Skip to content

Instantly share code, notes, and snippets.

@cybrown
Created April 12, 2014 12:37
Show Gist options
  • Save cybrown/10533737 to your computer and use it in GitHub Desktop.
Save cybrown/10533737 to your computer and use it in GitHub Desktop.
Gruntfile to reboot nodejs when a file is modified.
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-nodemon');
grunt.initConfig({
nodemon: {
dev: {
options: {
file: 'index.js',
watchedExtensions: ['js'],
watchedFolders: ['src']
}
}
}
});
grunt.registerTask('node', ['nodemon:dev']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment