-
Notifications
You must be signed in to change notification settings - Fork 340
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
[Internal] Add bundle size impact reporting #146
Conversation
Deploy preview for gestalt ready! Built with commit 6929552 |
Is it possible to use Danger for this? Facebook uses it for the same purpose: facebook/react#12682 (comment) Also, should we possibly be thinking of having a build matrix (dev/prod etc?) Uglify-es will strip all source-maps from the output. |
@chrislloyd yup, i don't see why not - i'll look into this!
Yup, happy to discuss this more. The way i set up the uglify plugin here was so that it would generate extra
I mainly did this to compare min+gzip size, but I think it would be a good idea to at least generate a minified umd build. |
Ah nice. Yeah - excited to see where you go with this :) |
45dd4d1
to
5a1c32d
Compare
Add api key buildkite-agent maybe?? shrug mount tmpfs and store stats there use temp sha apparently we have to pass buildnumber into artifact download buildkite artifact downloads using the exact path
08f5fb6
to
79ff8e9
Compare
@@ -7,6 +7,16 @@ steps: | |||
agents: | |||
queue: elastic-builders | |||
- wait | |||
- name: ":hammer_and_wrench: build" |
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.
moved this here - the build is fast enough
c66affe
to
148b868
Compare
Glad you didn't add moment! |
This PR adds logic to our dangerfile to report on the bundle size impact of a PR. Currently this is only set as a warning, with the idea that whoever is reviewing the diff can easily see the bundle size impact. If no bundle size change was detected, nothing will be outputted.
The flow is:
stats.json
artifact that was uploaded for ^ build.stats.json
artifact for current buildExample of output (tested this by including
![image](https://user-images.githubusercontent.com/6487551/39745594-8b9ae880-525c-11e8-96ca-83fe63e85e77.png)
moment
):