Skip to content

Recipe for passing parameters to tasks by binding TaskFunctions #2537

Answered by phated
roydukkey asked this question in Ideas
Discussion options

You must be logged in to vote

This is almost exactly what https://github.com/gulpjs/undertaker-task-metadata does. You can create a registry that uses similar logic but takes a config and binds it to each task based on name.

Registries were designed to defer low-level, opinionated behavior, like this, to the consumer.

The caveat is that registries don't work perfectly with task exports. We could definitely use someone looking into that.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by phated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants