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

Use inline-array instead of grunt.task.run for registered Grunt tasks #3

Open
henrahmagix opened this issue Nov 23, 2016 · 0 comments

Comments

@henrahmagix
Copy link
Contributor

It gives better grunt -h output.

Like

grunt.registerTask('orderedSwig', [
'clean:swig',
'swig:all'
]);

This

grunt.registerTask('foo', [
    'a',
    'b'
]);
$: grunt -h
> foo  Alias for "a", "b" tasks.

Instead of this

grunt.registerTask('foo', function () {
    grunt.task.run([
        'a',
        'b'
    ]);
});
$: grunt -h
> foo  Custom task.
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

1 participant