Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Sending arguments to hubbed "basic" tasks #42

@davidgovea

Description

@davidgovea

In a child project, I have a "Basic task" that accepts an argument. From within the child project, I can run:

grunt task:argument

From the "parent" project, I would like to issue a command like:

grunt hub:child:task:argument

but this ends up running the [task, argument] tasks on the child project -> "Task 'argument' not found"

I have found a workaround:

grunt hub:child:'task\:argument'

which ends up running task:argument on the child, but this feels kinda hacky.

Since the 'child' gruntfile is never loaded by grunt-hub, it does not seem feasible to check whether the task exists beforehand - so what is the best option here? A character other than ":"? Perhaps even just documenting this workaround?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions