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

Function option for start, serial, and parallel #292

Open
timhall opened this issue Aug 1, 2017 · 1 comment
Open

Function option for start, serial, and parallel #292

timhall opened this issue Aug 1, 2017 · 1 comment
Labels

Comments

@timhall
Copy link

timhall commented Aug 1, 2017

Allowing function as argument to start, serial, and parallel would allow tasks to be composed without having to export everything including tasks that are not meant to be called directly.

function * build(task) {
  yield task.parallel([js, css]);
}

// "internal" functions 
function * js(task) {}
function * css(task) {}

module.exports = {
  build
};
@lukeed
Copy link
Owner

lukeed commented Aug 1, 2017

Thanks! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants