Skip to content

Commit e326512

Browse files
author
John Doe
committed
Merge branch 'main' into use-cp-nx-plugin
# Conflicts: # package-lock.json # package.json # packages/nx-plugin/src/executors/cli/executor.unit.test.ts # packages/nx-plugin/src/executors/internal/cli.ts # packages/nx-plugin/src/executors/internal/cli.unit.test.ts # packages/nx-plugin/src/plugin/target/configuration-target.ts # packages/utils/src/index.ts # packages/utils/src/lib/execute-process.ts # project.json
2 parents b8c4659 + d21a99c commit e326512

File tree

219 files changed

+6458
-3523
lines changed

Some content is hidden

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

219 files changed

+6458
-3523
lines changed

.github/actions/code-pushup/src/runner.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ import {
1010
type SourceFileIssue,
1111
runInCI,
1212
} from '@code-pushup/ci';
13-
import { CODE_PUSHUP_UNICODE_LOGO, stringifyError } from '@code-pushup/utils';
13+
import {
14+
CODE_PUSHUP_UNICODE_LOGO,
15+
logger,
16+
stringifyError,
17+
} from '@code-pushup/utils';
1418

1519
type GitHubRefs = {
1620
head: GitBranch;
@@ -126,8 +130,12 @@ function createGitHubApiClient(): ProviderAPIClient {
126130

127131
async function run(): Promise<void> {
128132
try {
133+
if (core.isDebug()) {
134+
logger.setVerbose(true);
135+
}
136+
129137
const options: Options = {
130-
bin: 'npx nx code-pushup --nx-bail --',
138+
bin: 'npx nx code-pushup --nx-bail --',
131139
};
132140

133141
const gitRefs = parseGitRefs();

.github/workflows/git-checks.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Git Checks
2+
3+
on: pull_request
4+
5+
jobs:
6+
block-fixup:
7+
name: Block fixup commits
8+
permissions:
9+
contents: read
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Clone repository
13+
uses: actions/checkout@v4
14+
- name: Block fixup commit merge
15+
uses: 13rac1/[email protected]

CHANGELOG.md

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,115 @@
1+
## 0.90.1 (2025-11-27)
2+
3+
### 🩹 Fixes
4+
5+
- **plugin-js-packages:** pnpm outdated fallback ([d893cb22](https://github.com/code-pushup/cli/commit/d893cb22))
6+
7+
### ❤️ Thank You
8+
9+
- hanna-skryl
10+
11+
## 0.90.0 (2025-11-26)
12+
13+
### 🚀 Features
14+
15+
- **ci:** improve code-pushup command logs ([5eeaf541](https://github.com/code-pushup/cli/commit/5eeaf541))
16+
- **utils:** add noLineBreak and noIndent options to logger methods ([4d07995c](https://github.com/code-pushup/cli/commit/4d07995c))
17+
- **utils:** add silent flag to executeProcess ([4b9a2d3f](https://github.com/code-pushup/cli/commit/4b9a2d3f))
18+
19+
### 🩹 Fixes
20+
21+
- **utils:** log spinner to stdout instead of stderr ([77991974](https://github.com/code-pushup/cli/commit/77991974))
22+
23+
### ❤️ Thank You
24+
25+
- Matěj Chalk
26+
27+
## 0.89.2 (2025-11-21)
28+
29+
### 🩹 Fixes
30+
31+
- resolve incomplete linting across projects ([#1151](https://github.com/code-pushup/cli/pull/1151))
32+
33+
### ❤️ Thank You
34+
35+
- Hanna Skryl @hanna-skryl
36+
37+
## 0.89.1 (2025-11-20)
38+
39+
### 🩹 Fixes
40+
41+
- **plugin-axe:** resolve pnpm install issue ([#1150](https://github.com/code-pushup/cli/pull/1150))
42+
43+
### ❤️ Thank You
44+
45+
- Hanna Skryl @hanna-skryl
46+
47+
## 0.89.0 (2025-11-19)
48+
49+
### 🚀 Features
50+
51+
- **cli:** remove multi-progress-bars and progress argument ([68c04cbe](https://github.com/code-pushup/cli/commit/68c04cbe))
52+
- **core:** log group for each plugin execution ([72a4a06b](https://github.com/code-pushup/cli/commit/72a4a06b))
53+
- **utils:** pass index parameter to asyncSequential callback ([ef3d3b00](https://github.com/code-pushup/cli/commit/ef3d3b00))
54+
- **utils:** return custom data from logger.group method ([aaeed361](https://github.com/code-pushup/cli/commit/aaeed361))
55+
56+
### 🩹 Fixes
57+
58+
- **utils:** prevent duplicate log group prefixes in sub-processes ([6c74e7f8](https://github.com/code-pushup/cli/commit/6c74e7f8))
59+
60+
### ❤️ Thank You
61+
62+
- Matěj Chalk
63+
64+
## 0.88.0 (2025-11-18)
65+
66+
### 🚀 Features
67+
68+
- **cli:** replace @poppinss/cliui sticker for upload hints ([263aea5f](https://github.com/code-pushup/cli/commit/263aea5f))
69+
- **utils:** implement and test ascii table formatting ([7a981817](https://github.com/code-pushup/cli/commit/7a981817))
70+
- **utils:** wrap columns in ascii table ([76730518](https://github.com/code-pushup/cli/commit/76730518))
71+
- **utils:** replace @isaacs/cliui for printing audits to stdout ([00293a9e](https://github.com/code-pushup/cli/commit/00293a9e))
72+
- **utils:** replace @poppinss/cliui table for printing categories ([522fd663](https://github.com/code-pushup/cli/commit/522fd663))
73+
- **utils:** remove @poppinss/cliui dependency ([47f934a2](https://github.com/code-pushup/cli/commit/47f934a2))
74+
75+
### 🩹 Fixes
76+
77+
- **utils:** align table columns with unicode characters ([7d4eb71c](https://github.com/code-pushup/cli/commit/7d4eb71c))
78+
79+
### ❤️ Thank You
80+
81+
- Matěj Chalk
82+
83+
## 0.87.2 (2025-11-14)
84+
85+
### 🩹 Fixes
86+
87+
- **core:** run plugins sequentially ([4ad94d76](https://github.com/code-pushup/cli/commit/4ad94d76))
88+
89+
### ❤️ Thank You
90+
91+
- Matěj Chalk
92+
93+
## 0.87.1 (2025-11-13)
94+
95+
### 🩹 Fixes
96+
97+
- **plugin-axe:** update plugin name references in README ([de026554](https://github.com/code-pushup/cli/commit/de026554))
98+
99+
### ❤️ Thank You
100+
101+
- hanna-skryl
102+
103+
## 0.87.0 (2025-11-12)
104+
105+
### 🚀 Features
106+
107+
- **plugin-axe:** implement core plugin functionality ([#1141](https://github.com/code-pushup/cli/pull/1141))
108+
109+
### ❤️ Thank You
110+
111+
- Hanna Skryl @hanna-skryl
112+
1113
## 0.86.0 (2025-11-10)
2114

3115
### 🚀 Features

code-pushup.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'dotenv/config';
22
import {
3+
axeCoreConfig,
34
coverageCoreConfigNx,
45
eslintCoreConfigNx,
56
jsDocsCoreConfig,
@@ -46,4 +47,7 @@ export default mergeConfigs(
4647
'!**/implementation/**',
4748
'!**/internal/**',
4849
]),
50+
axeCoreConfig(
51+
'https://github.com/code-pushup/cli?tab=readme-ov-file#code-pushup-cli/',
52+
),
4953
);

code-pushup.preset.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import type {
33
CategoryConfig,
44
CoreConfig,
5+
PluginUrls,
56
} from './packages/models/src/index.js';
7+
import axePlugin from './packages/plugin-axe/src/index.js';
68
import coveragePlugin, {
79
getNxCoveragePaths,
810
} from './packages/plugin-coverage/src/index.js';
@@ -20,7 +22,6 @@ import {
2022
} from './packages/plugin-jsdocs/src/lib/constants.js';
2123
import { filterGroupsByOnlyAudits } from './packages/plugin-jsdocs/src/lib/utils.js';
2224
import lighthousePlugin, {
23-
type LighthouseUrls,
2425
lighthouseGroupRef,
2526
mergeLighthouseCategories,
2627
} from './packages/plugin-lighthouse/src/index.js';
@@ -137,7 +138,7 @@ export const jsPackagesCoreConfig = async (): Promise<CoreConfig> => ({
137138
});
138139

139140
export const lighthouseCoreConfig = async (
140-
urls: LighthouseUrls,
141+
urls: PluginUrls,
141142
): Promise<CoreConfig> => {
142143
const lhPlugin = await lighthousePlugin(urls);
143144
return {
@@ -216,3 +217,7 @@ export const coverageCoreConfigNx = async (
216217
categories: coverageCategories,
217218
};
218219
};
220+
221+
export const axeCoreConfig = (urls: PluginUrls): CoreConfig => ({
222+
plugins: [axePlugin(urls)],
223+
});

e2e/ci-e2e/mocks/fixtures/npm-workspaces/packages/cli/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@example/cli",
33
"version": "1.2.3",
44
"scripts": {
5-
"code-pushup": "code-pushup --no-progress"
5+
"code-pushup": "code-pushup"
66
},
77
"dependencies": {
88
"@example/core": "1.2.3"

e2e/ci-e2e/mocks/fixtures/npm-workspaces/packages/core/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@example/core",
33
"version": "1.2.3",
44
"scripts": {
5-
"code-pushup": "code-pushup --no-progress"
5+
"code-pushup": "code-pushup"
66
},
77
"dependencies": {
88
"@example/utils": "1.2.3"

e2e/ci-e2e/mocks/fixtures/npm-workspaces/packages/utils/_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "@example/utils",
33
"version": "1.2.3",
44
"scripts": {
5-
"code-pushup": "code-pushup --no-progress"
5+
"code-pushup": "code-pushup"
66
}
77
}

e2e/ci-e2e/mocks/fixtures/nx-monorepo/apps/api/_project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"projectType": "application",
44
"targets": {
55
"code-pushup": {
6-
"command": "npx @code-pushup/cli --no-progress --config=apps/api/code-pushup.config.js"
6+
"command": "npx @code-pushup/cli --config=apps/api/code-pushup.config.js"
77
}
88
}
99
}

e2e/ci-e2e/mocks/fixtures/nx-monorepo/apps/cms/_project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"projectType": "application",
44
"targets": {
55
"code-pushup": {
6-
"command": "npx @code-pushup/cli --no-progress --config=apps/cms/code-pushup.config.js"
6+
"command": "npx @code-pushup/cli --config=apps/cms/code-pushup.config.js"
77
}
88
}
99
}

0 commit comments

Comments
 (0)