Skip to content

Instantly share code, notes, and snippets.

@digilord
Created February 16, 2014 15:43
Show Gist options
  • Save digilord/9036200 to your computer and use it in GitHub Desktop.
Save digilord/9036200 to your computer and use it in GitHub Desktop.
[digilord@Io digilord-bot[brains*]]$ grunt
Running "develop:server" (develop) task
[grunt-develop] > started application "index.js".
Done, without errors.
[digilord@Io digilord-bot[brains*]]$
module.exports = function(grunt) {
grunt.initConfig({
watch: {
js: {
files: [
'index.js',
'brains.js',
'lib/*.js'
],
tasks: ['develop'],
options: { nospawn: true }
}
},
develop: {
server: {
file: 'index.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-develop');
grunt.registerTask('default', ['develop']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment