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

Run newer on aliases #59

Closed
FagnerMartinsBrack opened this issue Oct 21, 2014 · 1 comment
Closed

Run newer on aliases #59

FagnerMartinsBrack opened this issue Oct 21, 2014 · 1 comment

Comments

@FagnerMartinsBrack
Copy link

Currently the following code does not work:

grunt.registerTask( "validate", [ "jshint", "jscs" ] );
grunt.registerTask( "default", [ "newer:validate" ] );

It throws Object.keys called on non-object
The expected here would be to run newer:jshint and newer:jscs, even though they are not prefixed as newer:jshint and newer:jscs in the alias.

@tschaub
Copy link
Owner

tschaub commented Oct 21, 2014

Thanks for the report @FagnerMartinsBrack. Grunt doesn't provide a straightforward way of getting the task names associated with a particular alias. So I think it might just have to be a known limitation that you can't use the newer prefix with aliases. At least things won't fail in an odd way with #61.

I'm happy to revisit this if someone points out a (nice) way to get task names associated with an alias.

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

2 participants