-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
extra color for bolded text in the output #1123
Comments
@e-cloud thanks for the issue. this would make for a great first issue. your contributions are welcome here! |
I would like to take this up, if no one is working on it. |
@olingern i managed to change the format from bold to color,ie, the content gets colored but its no more bold. still haven't dived deep enough to retain the format to bold n assign it a color. If you are able to do this, please go ahead. If not, do tell and i shall send a PR. |
@akshbn Not sure when #1463 will merge, so here's an example of coloring output, if you'd still like to take a look. It specifically uses a package, chalk, to color strings. It is bound on |
@olingern thanks man! will check it out. |
I wanted to pick back up on this since #1463 was merged, and I wanted to understand the reasoning behind bolding before changing the color, since it's closely related to tree output that I worked with. In the latest stable release, there's a condition that evaluates to remove bold, if the package's version differs from its original. Why display both? Why not filter to only display (below) "[email protected]" ? pinging @kittens as it looks like this landed in this commit. |
I think it does not display second level dependencies anymore, looks like got broken |
If no one is working on it, I'll try to create a pull request and submit when finished. |
👍 @ClaudiaRaquelGuedes let us know if you needed any help :) |
@samccone Hi :) I was wondering if there was a way to install older versions of dependencies so that I could test updating and seeing if the behaviour persists. Thanks in advance. 👍 |
I'm afraid no automatic approach. You have to change the version number manually, then update it to new number for tests. |
Hi again, I have been working on the issue but it seems a bit hard to recreate it. As said before, second level dependencies are no longer shown and the text doesn't appear with color or bold when I update the versions. Is this related to npm in some way or was the issue merged previously? Thanks in advance. |
emmm, yes, the latest behavior is different to a large extent. Original request is invalid now. But, could we implement a logic to make the target dependencies bold and colored? |
Hello, @ClaudiaRaquelGuedes and I have solved this issue, as you can see in this image. The text's now bolded and in cyan, as suggested. If you see no problems with the solution, we'll create a pull request. |
@samccone , @bestander , @BYK I was wondering if maybe you can review the changes? Is the issue fixed as expected? Thanks in advance. |
@ClaudiaRaquelGuedes, we are waiting for you to send us a PR. Update: sorry for snark, the PR is there! |
I'll review it now :) |
Do you want to request a feature or report a bug?
feature
What is the current behavior?
the installed/changed dependencies in the output are bolded without color escaped
What is the expected behavior?
give some color to the bolded text, perhaps cyan :).
Please mention your node.js, yarn and operating system version.
node v6.8.0
yarn v0.15.1
ubuntu 16.04
The text was updated successfully, but these errors were encountered: