gruntjs / gruntjs/grunt

Method for passing arguments in alias tasks

Open
#719 3 comments 0 reactions 0 assignees View on GitHub
Component: tasks needs discussion Type: Enhancement
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Instead of this being dumb:

``` js
grunt.registerTask('foo', ['bar', 'baz'])
```

Maybe it can be made smarter re. arguments passing:

``` js
grunt.registerTask('foo', ['bar:$1:$2', 'baz:$*']) // etc
```

Or something. Man, doing this on an iPhone sucks.

Contributor guide

Open the contributing guide

Research direction

The issue names the registerTask API but no files or tests. Start by locating its implementation and current alias-task argument handling, then define the forwarding syntax and semantics before changing anything. Done means positional and all-argument forwarding behavior is specified and verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.