Skip to content

Commit 655a94f

Browse files
committed
Merge remote-tracking branch 'origin/main' into use-cp-nx-plugin
2 parents ba4e1d5 + 7b6e72c commit 655a94f

File tree

385 files changed

+14603
-1698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

385 files changed

+14603
-1698
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Code Coverage
1+
name: Coverage
22

33
on:
44
push:
@@ -35,7 +35,7 @@ jobs:
3535
strategy:
3636
fail-fast: false
3737
matrix: ${{ fromJson(needs.list-packages.outputs.matrix) }}
38-
name: Collect code coverage
38+
name: Collect coverage
3939
runs-on: ubuntu-latest
4040
steps:
4141
- name: Checkout the repository

CHANGELOG.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,146 @@
1+
## 0.112.0 (2026-01-29)
2+
3+
### 🚀 Features
4+
5+
- **plugin-typescript:** support multiple tsconfigs ([#1229](https://github.com/code-pushup/cli/pull/1229))
6+
7+
### ❤️ Thank You
8+
9+
- Hanna Skryl @hanna-skryl
10+
11+
## 0.111.1 (2026-01-27)
12+
13+
### 🩹 Fixes
14+
15+
- add exit handler to profiler ([#1221](https://github.com/code-pushup/cli/pull/1221))
16+
17+
### ❤️ Thank You
18+
19+
- Michael Hladky @BioPhoton
20+
21+
## 0.111.0 (2026-01-27)
22+
23+
### 🚀 Features
24+
25+
- **utils:** add NodeJS profiler ([#1219](https://github.com/code-pushup/cli/pull/1219))
26+
27+
### ❤️ Thank You
28+
29+
- Michael Hladky @BioPhoton
30+
31+
## 0.110.0 (2026-01-26)
32+
33+
### 🚀 Features
34+
35+
- **utils:** add WriteAheadLog classes ([#1210](https://github.com/code-pushup/cli/pull/1210))
36+
37+
### ❤️ Thank You
38+
39+
- Michael Hladky @BioPhoton
40+
41+
## 0.109.0 (2026-01-26)
42+
43+
### 🚀 Features
44+
45+
- **models:** add URL source type for issues ([ef5a5be1](https://github.com/code-pushup/cli/commit/ef5a5be1))
46+
- **plugin-axe:** add source field to issues ([fe6f94ea](https://github.com/code-pushup/cli/commit/fe6f94ea))
47+
- **utils:** add type guards and URL source formatting ([cde6309e](https://github.com/code-pushup/cli/commit/cde6309e))
48+
49+
### ❤️ Thank You
50+
51+
- hanna-skryl
52+
53+
## 0.108.2 (2026-01-26)
54+
55+
### 🩹 Fixes
56+
57+
- add missing vitest.d.ts to test tsconfigs ([c9c47f36](https://github.com/code-pushup/cli/commit/c9c47f36))
58+
- **zod2md-jsdocs:** exclude tests from build ([69707ff8](https://github.com/code-pushup/cli/commit/69707ff8))
59+
60+
### ❤️ Thank You
61+
62+
- hanna-skryl
63+
64+
## 0.108.1 (2026-01-20)
65+
66+
### 🩹 Fixes
67+
68+
- **utils:** unique names for parallel plugin execution ([#1222](https://github.com/code-pushup/cli/pull/1222))
69+
70+
### ❤️ Thank You
71+
72+
- Nicolas Beaussart @beaussan
73+
74+
## 0.108.0 (2026-01-16)
75+
76+
### 🚀 Features
77+
78+
- add profiler class and measure API ([#1216](https://github.com/code-pushup/cli/pull/1216))
79+
80+
### ❤️ Thank You
81+
82+
- Michael Hladky @BioPhoton
83+
84+
## 0.107.0 (2026-01-16)
85+
86+
### 🚀 Features
87+
88+
- **plugin-axe:** add authentication support via setup script ([#1198](https://github.com/code-pushup/cli/pull/1198))
89+
90+
### ❤️ Thank You
91+
92+
- Hanna Skryl @hanna-skryl
93+
94+
## 0.106.0 (2026-01-15)
95+
96+
### 🚀 Features
97+
98+
- multi-URL aware helpers for cross-plugin composition ([6bfad3ce](https://github.com/code-pushup/cli/commit/6bfad3ce))
99+
100+
### ❤️ Thank You
101+
102+
- hanna-skryl
103+
104+
## 0.105.0 (2026-01-14)
105+
106+
### 🚀 Features
107+
108+
- add trace event utils ([#1215](https://github.com/code-pushup/cli/pull/1215))
109+
110+
### ❤️ Thank You
111+
112+
- Michael Hladky @BioPhoton
113+
114+
## 0.104.0 (2026-01-14)
115+
116+
### 🚀 Features
117+
118+
- **utils:** measure utils ([#1211](https://github.com/code-pushup/cli/pull/1211))
119+
120+
### ❤️ Thank You
121+
122+
- Michael Hladky @BioPhoton
123+
124+
## 0.103.0 (2026-01-14)
125+
126+
### 🚀 Features
127+
128+
- add process exit handler ([#1212](https://github.com/code-pushup/cli/pull/1212))
129+
130+
### ❤️ Thank You
131+
132+
- Michael Hladky @BioPhoton
133+
134+
## 0.102.0 (2026-01-10)
135+
136+
### 🚀 Features
137+
138+
- **utils:** add performance observer ([#1206](https://github.com/code-pushup/cli/pull/1206))
139+
140+
### ❤️ Thank You
141+
142+
- Michael Hladky @BioPhoton
143+
1144
## 0.101.1 (2026-01-06)
2145

3146
### 🩹 Fixes

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ See how your project measures up. With [portal integration](./packages/cli/READM
2727
![Security](https://api.staging.code-pushup.dev/badges/code-pushup/cli-workspace/security?apiKey=cp_def67c4efe558a9149061d0c62de893e1689ad793071db332790238446173fef)
2828
![Updates](https://api.staging.code-pushup.dev/badges/code-pushup/cli-workspace/updates?apiKey=cp_def67c4efe558a9149061d0c62de893e1689ad793071db332790238446173fef)
2929
![Documentation](https://api.staging.code-pushup.dev/badges/code-pushup/cli-workspace/docs?apiKey=cp_def67c4efe558a9149061d0c62de893e1689ad793071db332790238446173fef)
30-
![Axe Accessibility](https://api.staging.code-pushup.dev/badges/code-pushup/cli-workspace/axe-a11y?apiKey=cp_def67c4efe558a9149061d0c62de893e1689ad793071db332790238446173fef)
3130

3231
---
3332

code-pushup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default mergeConfigs(
2020
await configureEslintPlugin(),
2121
await configureCoveragePlugin(),
2222
await configureJsPackagesPlugin(),
23-
configureTypescriptPlugin(),
23+
await configureTypescriptPlugin(),
2424
configureJsDocsPlugin(),
2525
await configureLighthousePlugin(TARGET_URL),
2626
configureAxePlugin(TARGET_URL),

code-pushup.preset.ts

Lines changed: 50 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/* eslint-disable @nx/enforce-module-boundaries */
22
import { createProjectGraphAsync } from '@nx/devkit';
3-
import type {
4-
CategoryConfig,
5-
CoreConfig,
6-
PluginUrls,
7-
} from './packages/models/src/index.js';
8-
import axePlugin, { axeCategories } from './packages/plugin-axe/src/index.js';
3+
import type { CoreConfig, PluginUrls } from './packages/models/src/index.js';
4+
import axePlugin, {
5+
type AxePluginOptions,
6+
axeGroupRefs,
7+
} from './packages/plugin-axe/src/index.js';
98
import coveragePlugin, {
109
type CoveragePluginConfig,
1110
getNxCoveragePaths,
@@ -16,12 +15,12 @@ import eslintPlugin, {
1615
import jsPackagesPlugin from './packages/plugin-js-packages/src/index.js';
1716
import jsDocsPlugin from './packages/plugin-jsdocs/src/index.js';
1817
import {
19-
lighthouseCategories,
20-
lighthouseGroupRef,
18+
lighthouseGroupRefs,
2119
lighthousePlugin,
2220
} from './packages/plugin-lighthouse/src/index.js';
2321
import typescriptPlugin, {
2422
getCategories,
23+
tsconfigFromAllNxProjects,
2524
} from './packages/plugin-typescript/src/index.js';
2625

2726
export function configureUpload(projectName: string = 'workspace'): CoreConfig {
@@ -152,10 +151,17 @@ export async function configureJsPackagesPlugin(): Promise<CoreConfig> {
152151
};
153152
}
154153

155-
export function configureTypescriptPlugin(projectName?: string): CoreConfig {
154+
export async function configureTypescriptPlugin(
155+
projectName?: string,
156+
): Promise<CoreConfig> {
156157
const tsconfig = projectName
157158
? `packages/${projectName}/tsconfig.lib.json`
158-
: 'tsconfig.code-pushup.json';
159+
: await tsconfigFromAllNxProjects({
160+
exclude: [
161+
'test-fixtures', // Intentionally incomplete tsconfigs
162+
'models', // Uses ts-patch transformer plugin
163+
],
164+
});
159165
return {
160166
plugins: [typescriptPlugin({ tsconfig })],
161167
categories: getCategories(),
@@ -195,38 +201,46 @@ export async function configureLighthousePlugin(
195201
urls: PluginUrls,
196202
): Promise<CoreConfig> {
197203
const lhPlugin = await lighthousePlugin(urls);
198-
const lhCategories: CategoryConfig[] = [
199-
{
200-
slug: 'performance',
201-
title: 'Performance',
202-
refs: [lighthouseGroupRef('performance')],
203-
},
204-
{
205-
slug: 'a11y',
206-
title: 'Accessibility',
207-
refs: [lighthouseGroupRef('accessibility')],
208-
},
209-
{
210-
slug: 'best-practices',
211-
title: 'Best Practices',
212-
refs: [lighthouseGroupRef('best-practices')],
213-
},
214-
{
215-
slug: 'seo',
216-
title: 'SEO',
217-
refs: [lighthouseGroupRef('seo')],
218-
},
219-
];
220204
return {
221205
plugins: [lhPlugin],
222-
categories: lighthouseCategories(lhPlugin, lhCategories),
206+
categories: [
207+
{
208+
slug: 'performance',
209+
title: 'Performance',
210+
refs: lighthouseGroupRefs(lhPlugin, 'performance'),
211+
},
212+
{
213+
slug: 'a11y',
214+
title: 'Accessibility',
215+
refs: lighthouseGroupRefs(lhPlugin, 'accessibility'),
216+
},
217+
{
218+
slug: 'best-practices',
219+
title: 'Best Practices',
220+
refs: lighthouseGroupRefs(lhPlugin, 'best-practices'),
221+
},
222+
{
223+
slug: 'seo',
224+
title: 'SEO',
225+
refs: lighthouseGroupRefs(lhPlugin, 'seo'),
226+
},
227+
],
223228
};
224229
}
225230

226-
export function configureAxePlugin(urls: PluginUrls): CoreConfig {
227-
const axe = axePlugin(urls);
231+
export function configureAxePlugin(
232+
urls: PluginUrls,
233+
options?: AxePluginOptions,
234+
): CoreConfig {
235+
const axe = axePlugin(urls, options);
228236
return {
229237
plugins: [axe],
230-
categories: axeCategories(axe),
238+
categories: [
239+
{
240+
slug: 'axe-a11y',
241+
title: 'Axe Accessibility',
242+
refs: axeGroupRefs(axe),
243+
},
244+
],
231245
};
232246
}

e2e/ci-e2e/tests/basic.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { readFile, rename } from 'node:fs/promises';
22
import path from 'node:path';
33
import type { SimpleGit } from 'simple-git';
4-
import { afterEach } from 'vitest';
54
import {
65
type GitRefs,
76
type Options,

e2e/ci-e2e/tests/npm-workspaces.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { readFile, rename } from 'node:fs/promises';
22
import path from 'node:path';
33
import type { SimpleGit } from 'simple-git';
4-
import { afterEach } from 'vitest';
54
import {
65
type GitRefs,
76
type Options,

e2e/ci-e2e/tests/nx-monorepo.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { readFile, rename, writeFile } from 'node:fs/promises';
22
import path from 'node:path';
33
import type { SimpleGit } from 'simple-git';
4-
import { afterEach } from 'vitest';
54
import {
65
type GitRefs,
76
type Options,

e2e/ci-e2e/tsconfig.test.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"vitest.e2e.config.ts",
99
"tests/**/*.e2e.test.ts",
1010
"tests/**/*.d.ts",
11-
"mocks/**/*.ts"
11+
"mocks/**/*.ts",
12+
"../../testing/test-setup/src/vitest.d.ts"
1213
]
1314
}

e2e/cli-e2e/tests/collect.e2e.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { cp } from 'node:fs/promises';
22
import path from 'node:path';
3-
import { afterEach, beforeAll, describe, expect, it } from 'vitest';
43
import { nxTargetProject } from '@code-pushup/test-nx-utils';
54
import {
65
E2E_ENVIRONMENTS_DIR,

0 commit comments

Comments
 (0)