-
Notifications
You must be signed in to change notification settings - Fork 2
/
code-pushup.config.ts
64 lines (63 loc) · 1.7 KB
/
code-pushup.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import nxPerformancePlugin, {
nxPerformanceCategoryRefs,
type OnlyAudit,
} from './tooling/measures/nx-performance/nx-performance.plugin';
import { TaskTimeAuditOption } from './tooling/measures/nx-performance';
import { mergeConfigs } from '@code-pushup/utils';
import {coverageCoreConfigNx, eslintCoreConfigNx, jsPackagesCoreConfig} from './code-pushup.preset';
const onlyAudits: OnlyAudit[] = [
'graph-time-project',
'graph-time-task',
// 'cache-size',
'task-time',
];
const taskGraphTasks = ['cli-e2e:nxv-env-install'];
const taskTimeTasks: TaskTimeAuditOption[] = [
// { task: 'models-e2e:nxv-env-teardown' },
//{ task: 'models-e2e:nxv-env-bootstrap' },
{ task: 'models-e2e:nxv-env-setup' },
// { task: 'models-e2e:e2e' },
{ task: 'models-e2e:nxv-e2e' },
// { task: 'nx-verdaccio-e2e:nxv-e2e' },
/* {
task: 'cli-e2e-original:original-e2e',
options: { exclude: ['nx-verdaccio'] },
},*/
];
const cacheSizeTasks = [
'models-e2e:nxv-env-setup',
'nx-verdaccio-e2e:nxv-env-setup',
];
export default mergeConfigs(
{
plugins: [
nxPerformancePlugin({
taskTimeTasks,
taskGraphTasks,
// ~ 1 minutes 20 seconds
maxTaskTime: 60 * 1000 * 1.3,
cacheSizeTasks,
// ~ 250MB
maxCacheSize: 262_144_000,
onlyAudits,
}),
],
categories: [
{
slug: 'performance',
title: 'Performance',
refs: [
...nxPerformanceCategoryRefs({
taskTimeTasks,
cacheSizeTasks,
taskGraphTasks,
onlyAudits,
}),
],
},
],
},
await jsPackagesCoreConfig(),
await eslintCoreConfigNx(),
await coverageCoreConfigNx(['nx-verdaccio'])
);