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

add a disable handler, so that developers can disable a registered task #37

Closed
palazzem opened this issue Aug 6, 2016 · 0 comments
Closed
Assignees
Milestone

Comments

@palazzem
Copy link
Collaborator

palazzem commented Aug 6, 2016

This works together with palazzem/wheelie-recipe#11

Without implementing a really complicated API, a recipe is just a list of tasks. Anyway, a developer may want to disable a registered task that could be a dependency of another task (think about browser-sync task in a watch task). Instead of providing an API that:

  • removes the browser-sync task in the registry
  • updates the watch task so that browser-sync is no more a dependency

we could simply overwrite the browser-sync task with a noop handler that will not do anything except raising an INFO message (i.e.: "The task 'browser-sync' is disabled")

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

No branches or pull requests

1 participant