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

Feature: Output of Yarn should be visible in real-time #10

Closed
PatrykMilewski opened this issue Aug 3, 2020 · 3 comments
Closed

Feature: Output of Yarn should be visible in real-time #10

PatrykMilewski opened this issue Aug 3, 2020 · 3 comments
Labels
enhancement New feature or request released

Comments

@PatrykMilewski
Copy link

Hello!

Yet another feature request :)

I would like to see in real-time the output of Yarn, since currently for projects, that takes long time to be installed, it looks like the tool failed and waits forever to finish.

Some of the output logs:

invoke yarn
// this log ^ line is printed and then after yarn finishes, all of its output is printed as whole

[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.

Done
✨  Done in 112.14s.

As you can see, invoke yarn took 112.14s. which means, for 112 seconds only "invoke yarn" was visible in output and user didn't know anything about further progress

@antongolub
Copy link
Owner

I see. Only a little tweak for invoke helper is required. A couple of spawn event subscriptions are exactly what's needed. https://nodejs.org/api/child_process.html#child_process_child_process

Should I implement this feature or maybe you'd like to make a pull request?

@antongolub antongolub added the enhancement New feature or request label Aug 3, 2020
@PatrykMilewski
Copy link
Author

@antongolub Sure, looks simple, but I'm out of free time until next week, so it has to wait a little bit

antongolub added a commit that referenced this issue Aug 6, 2020
## [1.4.1](v1.4.0...v1.4.1) (2020-08-06)

### Bug Fixes

* exit with non-zero if anything fails ([#11](#11)) ([3e7eb93](3e7eb93)), closes [#10](#10)
@antongolub
Copy link
Owner

🎉 This issue has been resolved in version 1.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

2 participants