Skip to content
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

feat: Collect gzip info in bundler plugins #145

Merged
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/old-cameras-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@codecov/bundler-plugin-core": patch
"@codecov/webpack-plugin": patch
"@codecov/rollup-plugin": patch
"@codecov/vite-plugin": patch
"@codecov/nuxt-plugin": patch
"@codecov/remix-vite-plugin": patch
"@codecov/sveltekit-plugin": patch
---

Adjust asset type to contain gzipSize, add new function to collect gzip values
11 changes: 11 additions & 0 deletions .changeset/stupid-points-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@codecov/bundler-plugin-core": patch
"@codecov/remix-vite-plugin": patch
"@codecov/sveltekit-plugin": patch
"@codecov/webpack-plugin": patch
"@codecov/rollup-plugin": patch
"@codecov/nuxt-plugin": patch
"@codecov/vite-plugin": patch
---

Set version from passed output arg, and collect gzip information in plugins
11 changes: 11 additions & 0 deletions .changeset/wise-insects-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@codecov/bundler-plugin-core": patch
"@codecov/remix-vite-plugin": patch
"@codecov/sveltekit-plugin": patch
"@codecov/webpack-plugin": patch
"@codecov/rollup-plugin": patch
"@codecov/nuxt-plugin": patch
"@codecov/vite-plugin": patch
---

Update meta-framework plugins to collect version generated in output arg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`Generating nuxt stats 3 {"format":"amd","expected":"amd"} matches the s
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -38,7 +38,7 @@ exports[`Generating nuxt stats 3 {"format":"amd","expected":"amd"} matches the s
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -59,7 +59,7 @@ exports[`Generating nuxt stats 3 {"format":"cjs","expected":"cjs"} matches the s
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -80,7 +80,7 @@ exports[`Generating nuxt stats 3 {"format":"cjs","expected":"cjs"} matches the s
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -101,7 +101,7 @@ exports[`Generating nuxt stats 3 {"format":"es","expected":"esm"} matches the sn
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -122,7 +122,7 @@ exports[`Generating nuxt stats 3 {"format":"es","expected":"esm"} matches the sn
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -143,7 +143,7 @@ exports[`Generating nuxt stats 3 {"format":"esm","expected":"esm"} matches the s
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -164,7 +164,7 @@ exports[`Generating nuxt stats 3 {"format":"esm","expected":"esm"} matches the s
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -185,7 +185,7 @@ exports[`Generating nuxt stats 3 {"format":"module","expected":"esm"} matches th
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -206,7 +206,7 @@ exports[`Generating nuxt stats 3 {"format":"module","expected":"esm"} matches th
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -227,7 +227,7 @@ exports[`Generating nuxt stats 3 {"format":"iife","expected":"iife"} matches the
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -248,7 +248,7 @@ exports[`Generating nuxt stats 3 {"format":"iife","expected":"iife"} matches the
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -269,7 +269,7 @@ exports[`Generating nuxt stats 3 {"format":"umd","expected":"umd"} matches the s
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -290,7 +290,7 @@ exports[`Generating nuxt stats 3 {"format":"umd","expected":"umd"} matches the s
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -311,7 +311,7 @@ exports[`Generating nuxt stats 3 {"format":"system","expected":"system"} matches
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -332,7 +332,7 @@ exports[`Generating nuxt stats 3 {"format":"system","expected":"system"} matches
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -353,7 +353,7 @@ exports[`Generating nuxt stats 3 {"format":"systemjs","expected":"system"} match
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;

Expand All @@ -374,6 +374,6 @@ exports[`Generating nuxt stats 3 {"format":"systemjs","expected":"system"} match
"name": StringMatching "@codecov/nuxt-plugin",
"version": "0.0.1-beta.10",
},
"version": "1",
"version": "2",
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ describe("Generating nuxt stats", () => {
name: expect.any(String),
normalized: expect.any(String),
size: expect.any(Number),
gzipSize: expect.anything(),
},
]),
chunks: expect.arrayContaining([
Expand Down Expand Up @@ -123,6 +124,7 @@ describe("Generating nuxt stats", () => {
name: expect.any(String),
normalized: expect.any(String),
size: expect.any(Number),
gzipSize: expect.anything(),
},
]),
chunks: expect.arrayContaining([
Expand Down
Loading
Loading