Skip to content

Provide results of parent tasks when action is run #17

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

Open
pcj opened this issue Apr 6, 2022 · 0 comments
Open

Provide results of parent tasks when action is run #17

pcj opened this issue Apr 6, 2022 · 0 comments

Comments

@pcj
Copy link

pcj commented Apr 6, 2022

It would be nice to support the following:

task("namer", [], function() {
   return "world!";
});

task("greet", ["namer"], function(named: any) {
   console.log("Hello,", named);
});

So, the return value of a parent task is provided to the task.action() function, in the order it appears in the deps array.

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