Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default tseslint.config(
{
ignores: [
'**/*.mock.*',
'**/code-pushup.config.ts',
'**/code-pushup*.config.ts',
'**/mocks/fixtures/**',
'**/__snapshots__/**',
'**/dist',
Expand Down
8,489 changes: 5,939 additions & 2,550 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"dependencies": {
"@code-pushup/cli": "^0.92.1",
"@code-pushup/core": "^0.92.1",
"@code-pushup/models": "^0.92.1",
"@code-pushup/portal-client": "^0.16.0",
"@code-pushup/utils": "^0.92.1",
"@poppinss/cliui": "^6.4.1",
Expand Down
5,272 changes: 5,272 additions & 0 deletions packages/plugin-bundle-stats/.eslint/eslint-report.json

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions packages/plugin-bundle-stats/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Contributing

## Development

### Generate Build Artifacts

Before running the plugin, you need to generate the bundle stats files from the test fixtures. Each bundler produces different output formats:

```bash
# Navigate to the test fixture
cd packages/plugin-bundle-stats/mocks/fixtures/node-minimal

# Generate artifacts for all bundlers
npm run build

# Or generate artifacts for specific bundlers
npm run build:esbuild # → dist/esbuild/stats.json
npm run build:esbuild-sonda # → dist/esbuild-sonda/sonda-report.json
npm run build:webpack # → dist/webpack/stats.json
npm run build:rsbuild # → dist/rsbuild/stats.json
npm run build:vite # → dist/vite/stats.json
```

### Running the Plugin

Once the artifacts are generated, you can run the Code PushUp plugin to analyze them:

```bash
# Run plugin analysis for each bundler
nx run plugin-bundle-stats:code-pushup-minimal-esbuild
nx run plugin-bundle-stats:code-pushup-minimal-esbuild-sonda
nx run plugin-bundle-stats:code-pushup-minimal-webpack
nx run plugin-bundle-stats:code-pushup-minimal-rsbuild
nx run plugin-bundle-stats:code-pushup-minimal-vite
```
Loading