Skip to content

Instantly share code, notes, and snippets.

@Zhang
Created September 19, 2014 22:51
Show Gist options
  • Save Zhang/af73b9b068c21b13c213 to your computer and use it in GitHub Desktop.
Save Zhang/af73b9b068c21b13c213 to your computer and use it in GitHub Desktop.
nathan!
grunt.initConfig({
nodemon: {
web: nodemonConf('cluster-web.js'),
objodb: nodemonConf('lib/objodb/objodbServer.js'),
topology: nodemonConf('lib/topology.js'),
scheduler: nodemonConf('lib/scheduler.js'),
propertyComputeWorker: nodemonConf('lib/propertyComputeWorker.js'),
emailQueueListener: nodemonConf('lib/emailQueueListener.js'),
fayeServer: nodemonConf('lib/fayeServer.js')
},
concurrent: {
nodemon: {
tasks: [
'nodemon:web',
'nodemon:objodb',
'nodemon:topology',
'nodemon:scheduler',
'nodemon:propertyComputeWorker',
'nodemon:emailQueueListener',
'nodemon:fayeServer'
],
options: {
logConcurrentOutput: true
}
}
},
@Zhang
Copy link
Author

Zhang commented Sep 19, 2014

function nodemonConf(file) {
return {
options: {
file: file,
watchedFiles: ['.js', 'lib/__/.js', 'scripts/init//*.js'],
watchedFolders: ['lib', 'test'],
nodeArgs: gcArgs,
ignoredFiles: ['test/
', 'scripts/', '.git/']
}
};
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment