Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support renameTask #39

Open
ColinEberhardt opened this issue Oct 1, 2015 · 6 comments
Open

Does not support renameTask #39

ColinEberhardt opened this issue Oct 1, 2015 · 6 comments

Comments

@ColinEberhardt
Copy link

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?

@cmacdonnacha
Copy link

+1

@havenchyk
Copy link

Any updates here?

@shootaroo
Copy link
Owner

Sorry, I was busy...
I don't feel the importance to renameTask, and maybe it is a complex.

PR please.

@havenchyk
Copy link

@shootaroo I don't think anyone here understand how to implement it. Thanks anyway 😄

@BParnikel
Copy link

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!

@SpazzMarticus
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants