Skip to content

Commit 1f97896

Browse files
committed
wip
1 parent c8e0836 commit 1f97896

File tree

726 files changed

+18557
-13216
lines changed

Some content is hidden

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

726 files changed

+18557
-13216
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 116 deletions
This file was deleted.

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
- 'nx.json'
7474
- '.nvmrc'
7575
- '.prettierrc'
76-
- 'esbuild.config.js'
7776
- '.github/ISSUE_TEMPLATE/**'
7877
- '.husky/**'
7978
- 'commitlint.config.mjs'

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.11.0
1+
22.10.0

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Add files here to ignore them from prettier formatting
22
/dist
33
/coverage
4-
/.nx/cache
4+
/.nx
55
__snapshots__

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 20.11.0
1+
nodejs 22.10.0

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
## 0.57.0 (2024-12-17)
2+
3+
### 🚀 Features
4+
5+
- **ci:** detect persist config from print-config ([ad8bd284](https://github.com/code-pushup/cli/commit/ad8bd284))
6+
- **ci:** remove obsolete output option ([0b9d679e](https://github.com/code-pushup/cli/commit/0b9d679e))
7+
- **ci:** implement run many command resolution for each monorepo tool ([094797d9](https://github.com/code-pushup/cli/commit/094797d9))
8+
- **ci:** add parallel option ([85e51864](https://github.com/code-pushup/cli/commit/85e51864))
9+
- **ci:** filter nx run-many by projects from nx show projects as fallback ([97a603cc](https://github.com/code-pushup/cli/commit/97a603cc))
10+
- **ci:** sort nx projects alphabetically ([6a6c2f3d](https://github.com/code-pushup/cli/commit/6a6c2f3d))
11+
- **ci:** copy merged-report-diff.md from project to root ([e1305295](https://github.com/code-pushup/cli/commit/e1305295))
12+
- **ci:** implement bulk collecting reports for parallel monorepo runs ([e0b4d97f](https://github.com/code-pushup/cli/commit/e0b4d97f))
13+
- **core:** enhance config validation ([836b242d](https://github.com/code-pushup/cli/commit/836b242d))
14+
- **utils:** implement type guard for nullable object props ([c3fc549e](https://github.com/code-pushup/cli/commit/c3fc549e))
15+
16+
### 🩹 Fixes
17+
18+
- prevent "ExperimentalWarning: Importing JSON" logged to stderr ([8ce9e635](https://github.com/code-pushup/cli/commit/8ce9e635))
19+
- update progress bar gradually as plugin run complete ([7a592ebd](https://github.com/code-pushup/cli/commit/7a592ebd))
20+
- lint import extensions and fix missing .js extensions ([9d6eacf4](https://github.com/code-pushup/cli/commit/9d6eacf4))
21+
- **ci:** handle non-JSON prefix/suffix lines from print-config ([43ffcf2d](https://github.com/code-pushup/cli/commit/43ffcf2d))
22+
- **ci:** ensure valid output directory for reports and merged diff ([5e36323d](https://github.com/code-pushup/cli/commit/5e36323d))
23+
- **ci:** resolve outputDir correctly by running workspace commands in project dir ([94b25f88](https://github.com/code-pushup/cli/commit/94b25f88))
24+
- **ci:** only copy merged-report-diff.md when paths are different ([f8ac4007](https://github.com/code-pushup/cli/commit/f8ac4007))
25+
- **nx-plugin:** use wildcard path imports to prevent CJS runtime errors ([31bed82a](https://github.com/code-pushup/cli/commit/31bed82a))
26+
- **plugin-eslint:** avoid directory imports ([688a4859](https://github.com/code-pushup/cli/commit/688a4859))
27+
- **plugin-eslint:** consider defaultOptions to ensure rule slugs from runner match ([13de4b57](https://github.com/code-pushup/cli/commit/13de4b57))
28+
- **plugin-eslint:** handle mismatched slugs for legacy configs ([e324f39d](https://github.com/code-pushup/cli/commit/e324f39d))
29+
- **plugin-eslint:** parse rule names containing slashes correctly ([f1163d0a](https://github.com/code-pushup/cli/commit/f1163d0a))
30+
31+
### ❤️ Thank You
32+
33+
- Hanna Skryl @hanna-skryl
34+
- Matěj Chalk
35+
- Vojtech Masek @vmasek
36+
37+
## 0.56.0 (2024-11-29)
38+
39+
### 🚀 Features
40+
41+
- **ci:** add nxProjectsFilter option, forwards custom filters to Nx CLI ([93a6a428](https://github.com/code-pushup/cli/commit/93a6a428))
42+
- **plugin-eslint:** support new config format in nx helpers ([effd5d26](https://github.com/code-pushup/cli/commit/effd5d26))
43+
44+
### ❤️ Thank You
45+
46+
- Matěj Chalk
47+
148
## 0.55.0 (2024-11-25)
249

350
### 🚀 Features

code-pushup.config.ts

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,9 @@ import {
55
eslintCoreConfigNx,
66
jsPackagesCoreConfig,
77
lighthouseCoreConfig,
8-
} from './code-pushup.preset';
9-
import {
10-
fileSizePlugin,
11-
fileSizeRecommendedRefs,
12-
packageJsonDocumentationGroupRef,
13-
packageJsonPerformanceGroupRef,
14-
packageJsonPlugin,
15-
} from './dist/examples/plugins';
16-
import { mergeConfigs } from './dist/packages/utils';
17-
import type { CoreConfig } from './packages/models/src';
8+
} from './code-pushup.preset.js';
9+
import type { CoreConfig } from './packages/models/src/index.js';
10+
import { mergeConfigs } from './packages/utils/src/index.js';
1811

1912
// load upload configuration from environment
2013
const envSchema = z.object({
@@ -35,31 +28,7 @@ const config: CoreConfig = {
3528
},
3629
}),
3730

38-
plugins: [
39-
fileSizePlugin({
40-
directory: './dist/packages',
41-
pattern: /\.js$/,
42-
budget: 174_080, // 170 kB
43-
}),
44-
45-
packageJsonPlugin({
46-
directory: './dist/packages',
47-
license: 'MIT',
48-
type: 'module',
49-
}),
50-
],
51-
52-
categories: [
53-
{
54-
slug: 'custom-checks',
55-
title: 'Custom checks',
56-
refs: [
57-
...fileSizeRecommendedRefs,
58-
packageJsonPerformanceGroupRef,
59-
packageJsonDocumentationGroupRef,
60-
],
61-
},
62-
],
31+
plugins: [],
6332
};
6433

6534
export default mergeConfigs(

code-pushup.preset.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1+
import type {
2+
CategoryConfig,
3+
CoreConfig,
4+
} from './packages/models/src/index.js';
15
import coveragePlugin, {
26
getNxCoveragePaths,
3-
} from './dist/packages/plugin-coverage';
7+
} from './packages/plugin-coverage/src/index.js';
48
import eslintPlugin, {
59
eslintConfigFromAllNxProjects,
610
eslintConfigFromNxProject,
7-
} from './dist/packages/plugin-eslint';
8-
import jsPackagesPlugin from './dist/packages/plugin-js-packages';
11+
} from './packages/plugin-eslint/src/index.js';
12+
import jsPackagesPlugin from './packages/plugin-js-packages/src/index.js';
913
import lighthousePlugin, {
1014
lighthouseGroupRef,
11-
} from './dist/packages/plugin-lighthouse';
12-
import type { CategoryConfig, CoreConfig } from './packages/models/src';
15+
} from './packages/plugin-lighthouse/src/index.js';
1316

1417
export const jsPackagesCategories: CategoryConfig[] = [
1518
{

0 commit comments

Comments
 (0)