Created
April 12, 2014 12:37
-
-
Save cybrown/10533737 to your computer and use it in GitHub Desktop.
Gruntfile to reboot nodejs when a file is modified.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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