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

Make Umzug an EventEmitter, add four events. #76

Merged
merged 1 commit into from
Apr 29, 2016

Conversation

crrobinson14
Copy link
Contributor

The attached PR adds EventEmitter functionality to Umzug. Unit tests and documentation for four useful events are included.

Rationale: My application has some logging and consistency-checking requirements for each migration that go beyond what can be conveniently done via the logging option. This leads to a lot of boilerplate code in migrations, to the point where almost 50% of a typical migration is this boilerplate. This makes migrations a bit ugly to read, and it's more lifting for new team members.

Using the event emitter pattern could let us eliminate this boilerplate by giving us more programmatic/event-driven insight into the individual migrations Umzug was running.

@jukkah
Copy link
Contributor

jukkah commented Apr 29, 2016

LGTM 👍

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