Skip to content

Commit 9e6702a

Browse files
committed
docs: adjust nx targets 2
1 parent fdcd289 commit 9e6702a

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

packages/cli/docs/nx-caching.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,7 @@ export default {
5555
"executor": "nx:run-commands",
5656
"options": {
5757
"command": "npx @code-pushup/cli collect",
58-
"config": "{projectRoot}/code-pushup.config.ts",
59-
"cache": {
60-
"write": true
61-
},
62-
"persist": {
63-
"skipReports": true,
64-
"outputDir": "{projectRoot}/.code-pushup"
65-
},
66-
"upload": {
67-
"project": "{projectName}"
68-
}
58+
"args": ["--config={projectRoot}/code-pushup.config.ts", "--cache.write=true", "--persist.skipReports=true", "--persist.outputDir={projectRoot}/.code-pushup", "--upload.project={projectName}"]
6959
},
7060
"dependsOn": ["unit-test", "int-test"]
7161
},
@@ -75,18 +65,9 @@ export default {
7565
"executor": "nx:run-commands",
7666
"options": {
7767
"command": "npx @code-pushup/cli",
78-
"config": "{projectRoot}/code-pushup.config.ts",
79-
"cache": {
80-
"read": true
81-
},
82-
"persist": {
83-
"outputDir": ".code-pushup"
84-
},
85-
"upload": {
86-
"project": "{projectName}"
87-
}
68+
"args": ["--config={projectRoot}/code-pushup.config.ts", "--cache.read=true", "--persist.outputDir={projectRoot}/.code-pushup", "--upload.project={projectName}"]
8869
},
89-
"dependsOn": ["code-pushup:coverage"]
70+
"dependsOn": ["code-pushup-coverage"]
9071
}
9172
}
9273
}

0 commit comments

Comments
 (0)