-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
refactor(gatsby-plugin-manifest): misc code and doc updates #12757
Conversation
One thing I did want to open up for discussion on this is using |
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.
This looks great! I'll take a deeper dive on this in a bit--but could you clarify this?
Finished migrating off of bluebird and onto async/await (order of magnitude speed increase)
Do you have any metrics/benchmarks/etc. for this?
@DSchau haha I just mentioned this chat but I'll put it here for everyone: when I eliminated the final line of code requiring I'm running latest node 10 lts on linux. |
2322fc4
to
f366389
Compare
Rebased after 2 different manifest related PRs and fixed 2 bugs from #12794 |
Added tests and refactored the icon options merge as described here: #12794 (comment). Also, fixed bug that was not letting config merge happen (thank you testing). |
Moved bug fixes to #12907 |
@DSchau Well, bench marking proved I was wrong. 😞 Evidently it was just a strange fluke that I saw execution time drop. That or my bench mark is inaccurate. 🤷♂️ I've added a bench mark for testing the execution time of |
I resolved the conflicts but I wasn't sure of
I used master when merging but feel free to change back what you had on this PR |
You made the right call. |
Thanks for pinging! This PR is pretty hard to review as so many things have changed, you added functionality & changed a lot of tests. It looks like you didn't change behaviour in the tests except omitting data but now it's really hard to actually validate if your changes are not breaking. I'll probably ask some dumb questions in the review to make sure I've understood everything. |
@wardpeet Sorry! I'll keep PRs smaller in the future. yes, there are no new features. I just organized docs and tests. In the test work I found a couple bugs I squashed. Also each commit is generally one change. Maybe reviewing each commit individually might be helpful. I'll be around to answer questions |
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.
I've tested the code with the old tests and it seems to work fine.
I moved to createContentDigest from gatsby instead of our own.
@wardpeet Awesome. I don't think the built-in content digest existed when I wrote that code originally. I think it was still in discussion glad you moved over to that! Thanks! |
Thanks for all your work in this @moonmeister! Published in |
…s#12757) ## Description Code and Docs updates for `gatsby-plugin-manifest` - Finished moving to module imports - Finished migrating off of `bluebird` and onto async/await (order of magnitude speed increase) - Major doc updates - Improve logging output for generation
Description
Code and Docs updates for
gatsby-plugin-manifest
bluebird
and onto async/await (order of magnitude speed increase)