jit-grunt
jit-grunt copied to clipboard
Does not support renameTask
I've added jit-grunt
to my gruntfile and it works just fine however, if I rename one of my grunt tasks:
grunt.renameTask('concat_css', 'concatCss');
The build fails:
>> Cannot rename missing "concat_css" task.
I presume renameTask
is not currently supported?
+1
Any updates here?
Sorry, I was busy...
I don't feel the importance to renameTask
, and maybe it is a complex.
PR please.
@shootaroo I don't think anyone here understand how to implement it. Thanks anyway :smile:
Also actual for me, i want to rename 'watch' task to 'delta' and execute it in my custom 'watch', which may contain some another stuff.
Thank you!
A cheap workaround would be to load the task you need to rename by hand:
grunt.loadNpmTasks('grunt-bump');
grunt.task.renameTask('bump', '_bump');
Since it has to be renamed, it has to be loaded every time grunt runs.
One plausible way jit-grunt
could fix that would be to somehow overwrite the renameTask
function to allow renaming of non existing tasks.