Commit a6d3965
chore: add standalone target with plugin caching (#1062)
**Followup of:**
- #1059
**Precondition:**
- #1061
**This PR includes:**
- ~add helper to load envVars~
- adjusted `nx.json`
- add `defaultTargets` for main and plugin `code-pushup` targets
- add default inputs
- add plugin caching to code-pushup target
- cache js-packages and invalidate daily
- GH adjustments
- added `affected` and `--parallel=3`
- Adjust path helper that that created Nx project graph to use
`readCachedProjectGraph` to avoid problems when running plugins in
parallel
> [!note]
> I cache the `js-packges` plugin target, against our discussion, as
only in this PR I would have saved ~4min
**Followup Todos:**
- move `zod2md.ts` under `tools` and leverage
`"!{projectRoot}/tools/**/*"` in `nx.json#namedInputs.production`
- rename `nx-plugin/mock` to `models/mocks` and adjust inputs
- cleanup e2e targets leverage `nx.json#targetDefaults`
- include only relevant projects in `plugin-eslint` config
- stricter task dependencies to avoid running tracked libs e.g. `nx run
test-nx-utils:unit-test` is executed ATM
- understand why e2e tests fail if
`nx.json#defaultTargets[N].@nx/vite:test` as empty (`{}`) target is
removed
**Followup PRs:**
- #1035
---------
Co-authored-by: John Doe <[email protected]>
Co-authored-by: Matěj Chalk <[email protected]>1 parent 158ee7a commit a6d3965
File tree
15 files changed
+318
-80
lines changed- .github/workflows
- examples/plugins
- packages
- models
- transformers
- plugin-coverage/src/lib/nx
- plugin-eslint/src/lib/nx
15 files changed
+318
-80
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 13 | + | |
22 | 14 | | |
23 | 15 | | |
24 | | - | |
| 16 | + | |
25 | 17 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
30 | 22 | | |
31 | 23 | | |
32 | | - | |
33 | 24 | | |
34 | 25 | | |
35 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments