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

request: return a promise from .build #28

Closed
jonschlinkert opened this issue Jun 9, 2017 · 1 comment
Closed

request: return a promise from .build #28

jonschlinkert opened this issue Jun 9, 2017 · 1 comment

Comments

@jonschlinkert
Copy link
Collaborator

jonschlinkert commented Jun 9, 2017

I think this would make .build nicer to use when composing tasks with prompts.

app.task('confirm', function() {
  return new Confirm({name: 'foo', message: 'Want to run "foo"?'});
    .run()
    .then(function(answer) {
      return app.build(answer ? 'foo' : 'bar');
    });
});
@jonschlinkert
Copy link
Collaborator Author

ping

@doowb doowb mentioned this issue Sep 12, 2017
4 tasks
@doowb doowb closed this as completed Jan 26, 2018
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

2 participants