File tree Expand file tree Collapse file tree 6 files changed +123
-0
lines changed
Expand file tree Collapse file tree 6 files changed +123
-0
lines changed Original file line number Diff line number Diff line change 1+ import 'dotenv/config' ;
2+ import {
3+ coverageCoreConfigNx ,
4+ eslintCoreConfigNx ,
5+ jsDocsCoreConfig ,
6+ jsDocsExclusionPatterns ,
7+ jsPackagesCoreConfig ,
8+ loadEnv ,
9+ typescriptPluginConfig ,
10+ } from '../../code-pushup.preset.js' ;
11+ import type { CoreConfig } from '../../packages/models/src/index.js' ;
12+ import { mergeConfigs } from '../../packages/utils/src/index.js' ;
13+
14+ const projectName = process . env . CP_PROJECT_NAME || 'test-nx-utils' ;
15+
16+ const config : CoreConfig = {
17+ ...( await loadEnv ( ) ) ,
18+ persist : {
19+ filename : `${ projectName } -report` ,
20+ outputDir : `testing/${ projectName } /.code-pushup` ,
21+ } ,
22+ plugins : [ ] ,
23+ } ;
24+
25+ export default mergeConfigs (
26+ config ,
27+ await eslintCoreConfigNx ( projectName ) ,
28+ await typescriptPluginConfig ( {
29+ tsconfig : `testing/${ projectName } /tsconfig.lib.json` ,
30+ } ) ,
31+ jsDocsCoreConfig ( [
32+ `testing/${ projectName } /src/**/*.ts` ,
33+ ...jsDocsExclusionPatterns ,
34+ ] ) ,
35+ ) ;
Original file line number Diff line number Diff line change 44 "sourceRoot" : " testing/test-nx-utils/src" ,
55 "projectType" : " library" ,
66 "targets" : {
7+ "code-pushup" : {
8+ "dependsOn" : [" code-pushup-coverage" ]
9+ },
10+ "code-pushup-coverage" : {
11+ "dependsOn" : [" unit-test" ]
12+ },
713 "build" : {},
814 "lint" : {},
915 "unit-test" : {
Original file line number Diff line number Diff line change 1+ import 'dotenv/config' ;
2+ import {
3+ coverageCoreConfigNx ,
4+ eslintCoreConfigNx ,
5+ jsDocsCoreConfig ,
6+ jsDocsExclusionPatterns ,
7+ jsPackagesCoreConfig ,
8+ loadEnv ,
9+ typescriptPluginConfig ,
10+ } from '../../code-pushup.preset.js' ;
11+ import type { CoreConfig } from '../../packages/models/src/index.js' ;
12+ import { mergeConfigs } from '../../packages/utils/src/index.js' ;
13+
14+ const projectName = process . env . CP_PROJECT_NAME || 'test-setup' ;
15+
16+ const config : CoreConfig = {
17+ ...( await loadEnv ( ) ) ,
18+ persist : {
19+ filename : `${ projectName } -report` ,
20+ outputDir : `testing/${ projectName } /.code-pushup` ,
21+ } ,
22+ plugins : [ ] ,
23+ } ;
24+
25+ export default mergeConfigs (
26+ config ,
27+ await eslintCoreConfigNx ( projectName ) ,
28+ await typescriptPluginConfig ( {
29+ tsconfig : `testing/${ projectName } /tsconfig.lib.json` ,
30+ } ) ,
31+ jsDocsCoreConfig ( [
32+ `testing/${ projectName } /src/**/*.ts` ,
33+ ...jsDocsExclusionPatterns ,
34+ ] ) ,
35+ ) ;
Original file line number Diff line number Diff line change 44 "sourceRoot" : " testing/test-setup/src" ,
55 "projectType" : " library" ,
66 "targets" : {
7+ "code-pushup" : {
8+ "dependsOn" : [" code-pushup-coverage" ]
9+ },
10+ "code-pushup-coverage" : {
11+ "dependsOn" : [" unit-test" ]
12+ },
713 "build" : {},
814 "lint" : {},
915 "unit-test" : {
Original file line number Diff line number Diff line change 1+ import 'dotenv/config' ;
2+ import {
3+ coverageCoreConfigNx ,
4+ eslintCoreConfigNx ,
5+ jsDocsCoreConfig ,
6+ jsDocsExclusionPatterns ,
7+ jsPackagesCoreConfig ,
8+ loadEnv ,
9+ typescriptPluginConfig ,
10+ } from '../../code-pushup.preset.js' ;
11+ import type { CoreConfig } from '../../packages/models/src/index.js' ;
12+ import { mergeConfigs } from '../../packages/utils/src/index.js' ;
13+
14+ const projectName = process . env . CP_PROJECT_NAME || 'test-utils' ;
15+
16+ const config : CoreConfig = {
17+ ...( await loadEnv ( ) ) ,
18+ persist : {
19+ filename : `${ projectName } -report` ,
20+ outputDir : `testing/${ projectName } /.code-pushup` ,
21+ } ,
22+ plugins : [ ] ,
23+ } ;
24+
25+ export default mergeConfigs (
26+ config ,
27+ await eslintCoreConfigNx ( projectName ) ,
28+ await typescriptPluginConfig ( {
29+ tsconfig : `testing/${ projectName } /tsconfig.lib.json` ,
30+ } ) ,
31+ jsDocsCoreConfig ( [
32+ `testing/${ projectName } /src/**/*.ts` ,
33+ ...jsDocsExclusionPatterns ,
34+ ] ) ,
35+ ) ;
Original file line number Diff line number Diff line change 44 "sourceRoot" : " testing/test-utils/src" ,
55 "projectType" : " library" ,
66 "targets" : {
7+ "code-pushup" : {
8+ "dependsOn" : [" code-pushup-coverage" ]
9+ },
10+ "code-pushup-coverage" : {
11+ "dependsOn" : [" unit-test" ]
12+ },
713 "build" : {},
814 "lint" : {},
915 "unit-test" : {
You can’t perform that action at this time.
0 commit comments