-
Notifications
You must be signed in to change notification settings - Fork 79
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
NPM lib size list? #54
Comments
I think that would be cool👌 |
Doing this by hand is tedious. Automation is key.Here's a plan that could work: {
"npmdeps": ["mobx", "mobx-react", "mobx-state-tree"]
} We then write a script that will go into each folder, grab those deps, look up their versions in the lock files, and then use package-size to properly identify their sizes in a JSON file. A second script can go around and look at those JSON files in each folder and then add links to https://bundlephobia.com/ in the readme while also listing the known sizes. The process is automated, so any updates to libraries would get reflected when the script is re-run (that is critical). The result would be a table in the readme with all the size costs, and a link to verify such!!! |
Bundlephobia has min and minzip badges, you could save some time and just use those. Raw markdown: This displays the bundle size of the latest stable version on npm, you can add a locked version number ( |
very cool! I might work on this script this weekend. Thanks so much @solkimicreb |
I haven't started on this script, but labeling it for pickup by Hacktoberfest. |
Perhaps this awesome table on the main readme should list the NPM costs?
I'm not sure that's a fair thing to list? Just thinking it will help kill all that dead space, heh.
The text was updated successfully, but these errors were encountered: