-
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
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
Add install size badge to README #3710
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDK about adding this badge, though, but at a minimum it needs to be served up from shields.io please.
How about https://badgen.net which is typically much faster? |
As long as all the badges are from the same place so they are consistent is the main goal. The secondary goal is to understanding the tracking policy of the site if you can link to that for badgen.net 👍 |
I would suggest, though, before we change all existing badge (here and across every Express.js project so they are consistent), can you open a proposal for discussion at https://github.com/expressjs/discussions ? |
Sure thing 👍 |
Thanks! So with the discussion for the different badge service over in it's own issue, the topic of the PR is back on hand: (1) should this badge be added to the Express.js README? |
I have a feeling those questions are not meant for me to answer (correct me if I'm wrong) 😅 But you might find it interesting to see that Webpack has adopted this badge and it is visible for pretty much all webpack org packages as seen here: https://github.com/webpack/webpack#readme |
You may be able to help with (2), though you're welcome to answer any of them :) another doing something isn't reason enough by itself, of course, so what webpack is doing isn't exactly relevant 🤣 |
IMO: (1) No |
Webpack also looks very badge liberal while express is very badge conservative. |
My personal preferences: (1) No, I'm generally against any badges at all, unless they provide some very vital information Sorry, not trying to be negative 🙈 I just personally don't see the value, doesn't mean that there is value for other though 🙌 |
Do you have tests that check for size? Why do you think this won't be a problem in the future?
People don't typically complain about something they are not measuring. No one use to complain about npm package versions being < v1.0.0 but then the badge started showing orange instead of blue and it helped make that a normal thing. You're right, "install size" by itself is not enough info to decide to use a package or not but no single badge is enough. What I am aiming to do is make this information visible that was once not visible. Also, it creates a form of accountability. Lastly, you might be thinking...express will never get bloated and we never introduce bugs. Well take a look at this issue where TypeScript doubled in size (it happened more than once) microsoft/TypeScript#23339 (comment) Edit: One more thing...did you know that express@4.16.0 is 50% larger than the previous version? It's your README so you decide what goes in it but there's my answer to (2) above 😉 |
In my personal actual experience, the I've seen a lot repo with On the other hand, Overall, build status more like for developing, and install size more like user land concern, relatively speaking. +1 for (1). |
I'm very much +1 on removing the build status - passing. I mean, the checks have to pass in order to be able to merge to master, so it's never going to be anything but passing 😄 edit: wow, those TypeScript "bugs" are super interesting. Would it be easy to add installation size as a required check? That would be super cool, like if it increases more than a percent or two it has to be manually approved somehow 🤔 😎 |
I can get on board for a test which checks a PR install size against an install from the current major. The problem with a test like that is that it is fickle because some features might require that size change. Is anyone doing this kind of a test with success? The problem I see with a badge is that it is more for show than function. That is why I could see a test being reasonable where a badge is not necessary. |
Also, I did not know about the size increase, but if you look at the change log it makes sense: https://github.com/expressjs/express/releases/tag/4.16.0 I imagine that was just the dependency updates and changes. |
BTW, I notice that TypeScript issue from That's not micro-bundle, that's huge-bundle. I checked it's releases, it support JSX since 0.3.0, and TypeScript in 0.4.0. Now I have a new look at webpack. 😄 |
Yeah
I am actually working on a PR to give better insight into which dependency is bloated. The only problem is I don't know Angular 🤷♂️ If you know someone who does, here's the PR: anvaka/npmgraph.an#27
I think this is possible with size-limit by setting options |
The test proposals may want to be moved to another issue so they don't get lost in the badge discussion. As for the badge points brought up, I can see what you're getting at -- build status, coverage is not like 100% relevant to the end users like an install size would be. Never really thought about it in that way before. Along those lines, perhaps this is a useful badge, but with the caveat that we should divide up our badges into build data and end user, perhaps moving the build health badges down to the section about building and stuff and leave the top of the readme for these end user kind of badges? If I were to think of the difference, i would think: End user badges: version, downloads, engines, etc. Thoughts fellows? |
I'm thinking same thing on badgen-service:
The only concern is will it make the full page looks garish? 🤔 BTW, agree with @LinusU , if alls PR need to pass tests & building before merge into master, then the CI badge on homepage means very little. |
This comment was marked as spam.
This comment was marked as spam.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, the readme has been rearranged, badges updated to badgen, and i think it's good to go
Thanks! The merge conflicts have been resolved 👍 |
This adds a new badge to the top of the
README.md
file to display the install size forexpress
and it's dependencies.