Closed jgauna closed 10 years ago
You could do something like:
grunt.registerTask('pre-commit', function(arg) {
grunt.task.run([
'clean',
'jshint',
'exec:commit:' + arg
]);
})
By no means a elegant solution, but that's worked for me in the past.
Hi,
I'm trying to pass arguments and it works OK but if I define a block of tasks like:
The arguments won't work.
I'm running it like this:
and it's showing undefined. Do you know how to do this?
Thanks in advance.