facebookarchive / draft-js

A React framework for building text editors.
https://draftjs.org/
MIT License
22.56k stars 2.64k forks source link

Documentation for `bundle-size-stats` #1900

Open flarnie opened 5 years ago

flarnie commented 5 years ago

Do you want to request a feature or report a bug? This is a documentation request.

What is the current behavior?

Goals:

For context see the two PRs which introduced the bundle-size-stats tracking: https://github.com/facebook/draft-js/pull/1644 and https://github.com/facebook/draft-js/pull/1654

Please comment on this issue if you are working on it, and I will check in here roughly weekly to review/answer questions. Thanks! ✨

Tagging @altano who added this cool feature and can maybe give context on this.

flarnie commented 5 years ago

I may look for an internal contributor from FB to work on this, going to give it one more week and see if folks in open source are interested.

altano commented 5 years ago

Sounds good. I definitely won’t get to it this week but if it languishes beyond that I might beat others to doing it. Just let me know if someone tackles it :)


From: Flarnie Marchan notifications@github.com Sent: Sunday, October 21, 2018 5:15 PM To: facebook/draft-js Cc: Alan; Mention Subject: Re: [facebook/draft-js] Documentation for bundle-size-stats (#1900)

I may look for an internal contributor from FB to work on this, going to give it one more week and see if folks in open source are interested.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/facebook/draft-js/issues/1900#issuecomment-431716344, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAAD8V9vq9DyYPu46VwHn3QTP9S4Q97_ks5unQ4NgaJpZM4XbVMO.

cojennin commented 5 years ago

In PR #1654, @altano mentions that The size stats will get overwritten everytime somebody builds and checks in, but that is desirable...git will keep track of the bundle size over time

If updating the JSON files in draft-js/meta/bundle-size-stats/ becomes optional, will folks who create PR's on the draftjs repo have to make sure they update the JSON files before creating their PR?

sneha122 commented 4 years ago

Hey can i work on this issue??

altano commented 4 years ago

Hey can i work on this issue??

That would be awesome, @sneha122. I'm available to answer questions should you have any.

altano commented 4 years ago

If updating the JSON files in draft-js/meta/bundle-size-stats/ becomes optional, will folks who create PR's on the draftjs repo have to make sure they update the JSON files before creating their PR?

I'm not super familiar with git but is there a git commit hook that could be leveraged to make this seamless for contributors? Maybe looking at how other open source projects do size tracking could be helpful, e.g. seeing how bundlesize can show bundle stats on Github pull requests: https://github.com/siddharthkp/bundlesize

sohamsshah commented 3 years ago

@altano Can i work on this issue? I would be glad to take up an opportunity to be a part of this!

altano commented 3 years ago

I believe the issue is still open and no one is working on it. @sneha122 can you confirm?

MageshSundarG commented 3 years ago

Can I work on this issue? I'm interested in working on the issue. Assign Me!

altano commented 3 years ago

@MageshSundarG go for it: no one has done the work yet.

ramHruday commented 2 years ago

@altano I have raised a PR #3094 for this, do let me know if it's good. Instead of adding a doc file in the meta folder, I have found a plugin that generates an HTML page like the website mentioned by @flarnie.

Also, can u give me more context on the command param which should decide the stats generation? For now I just added a script yarn build --stats to determine to build the stattistics.html

altano commented 2 years ago

Hey @ramHruday, I'm not authorized to merge so I pinged some folks who can hopefully help review and merge.

Thanks for contributing!

nawed2611 commented 2 years ago

Hey! Is this issue still open to work on?

altano commented 2 years ago

I believe @ramHruday did the work and is awaiting a review in #3094. Perhaps you could help review it? There's a bit of a PR backlog =\