-
Notifications
You must be signed in to change notification settings - Fork 3
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
Share core functionality with size-plugin? #1
Comments
That would be super neat! I'm all for that. I mostly used the For this the default One bit in Let me know if I can be of help for the core functionality. |
Would love that history functionality 😃 |
Just an update from me, I still want this but haven't had time to hack on anything. |
@developit @luwes I gave it a try size-plugin-core, please review PRs |
Might be nice to expose a method that lets folks populate |
@developit / @luwes I have updated the code. e.g const sizesBefore = await getPreviousSizes(outputPath) ;
const sizes = await getSizes(assets);
const files = await getDiff(sizesBefore,sizes); // calculate the diff
const output = await printSizes(files); // template output message
await uploadSizes(files); // upload stats
return output; |
Hi @luwes!
I'm wondering if we should figure out a way to share the core size calculation and display logic between the two plugins so they can receive the same updates (in particular, GoogleChromeLabs/size-plugin#15). Thoughts?
The text was updated successfully, but these errors were encountered: