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

refactor(watcher): Make watcher injectable to support 3rd-party watchers #3254

Merged
merged 1 commit into from
Jan 22, 2019

Conversation

kyliau
Copy link
Collaborator

@kyliau kyliau commented Jan 19, 2019

Over the years, there has been several suggestions to make the default
watcher in Karma (that uses chokidar) dependency injectable so that
Karma could work well with third-party watchers.

Prior issues:

  1. Extract watcher into an injected dependency #1468
  2. feat(watcher): add a watcher for ibazel #2895

Candidate third-party watchers include:

  1. Watcher for Broccoli
  2. Watcher for Bazel
  3. Watcher for Blaze (used internally at Google)

This commit makes the change to allow other Karma plugins to specify the
'watcher' value in the di system and Karma would use the supplied
watcher instead.

Over the years, there has been several suggestions to make the default
watcher in Karma (that uses chokidar) dependency injectable so that
Karma could work well with third-party watchers.

Prior issues:
1. karma-runner#1468
2. karma-runner#2895

Candidate third-party watchers include:
1. Watcher for Broccoli
2. Watcher for Bazel
3. Watcher for Blaze (used internally at Google)

This commit makes the change to allow other Karma plugins to specify the
'watcher' value in the di system and Karma would use the supplied
watcher instead.
@kyliau kyliau requested a review from johnjbarton January 19, 2019 00:59
@johnjbarton johnjbarton merged commit d59cf35 into karma-runner:master Jan 22, 2019
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

Successfully merging this pull request may close these issues.

2 participants