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

Rewrite #2

Merged
merged 3 commits into from Mar 15, 2016
Merged

Rewrite #2

merged 3 commits into from Mar 15, 2016

Conversation

jedwards1211
Copy link
Contributor

Thanks for this plugin!

This fork has various improvements:

  • Doesn't restart the flow server in the FlowStatusPlugin constructor. This is a very unexpected side effect. If a config script constructs a FlowStatusPlugin but for whatever reason decides not to include it in the exported webpack config, the developer would not want any side effects to occur. (Side effects in constructors are a well-documented antipattern)
  • Uses flowArgs option instead of interfacesPath option -- use can instead pass --lib path/to/interfaces along with any other args they want (I updated the example in the README)
  • Runs flow status even if flow server was started externally
  • Prints flow stop and flow start output so user can see what's going on
  • Avoids rerunning flow status if webpack rebuilds before last flow status finishes
  • Prints Flow output with its nice --color always formatting

* Use `flowArgs` option instead of `interfacesPath` option -- more generic
* Run `flow status` even if flow server was started externally
* Print `flow stop` and `flow start` output so user can see what's going on
* Don't rerun `flow status` if webpack rebuilds before last `flow status` finishes
* Print Flow output with its nice `--color always` formatting
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.

None yet

2 participants