Closed tschaub closed 9 years ago
I opened https://github.com/gruntjs/grunt/issues/1238 in case grunt is willing to add this feature.
hi
Same issue here. Is there a way to launch the two tasks within a watch ?
watch: {
options : {
interrupt: true
},
js: {
files: [...],
tasks: ['newer:jscs', 'newer:jshint']
}
}
Does not work for me
Thanks
It doesn't seems to be related to grunt-newer
plugin, it looks like something to be looked up in grunt-contrib-watch
docs.
Yeah just asking...
watch: {
options : {
interrupt: true
},
jscs: {
files: [...],
tasks: ['newer:jscs']
},
jshint: {
files: ['Same files'],
tasks: ['newer:jshint']
}
}
Works but is a little bit verbose
Grunt doesn't provide an easy way to access the list of tasks associated with an alias. Instead of an unhandled error, the task should fail.
See #59.