feat(nx-plugin): add convert-to-inverred generator
Preconditions:
- #771
User story
As a existing user of code-pushup in an Nx monorepo I want to be able to convert my configuration to a deferred setup.
Acceptance criteria
Convert existing CodePushup project(s) using @code-pushup/nx-plugin:autorun executor to use @code-pushup/nx-plugin.
nx generate convert-to-inferred
By default, Nx will search for convert-to-inferred in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @code-pushup/nx-plugin:convert-to-inferred
Show what will be generated without writing to disk:
nx g convert-to-inferred --dry-run
The project to convert from using the @code-pushup/nx-plugint:autorun executor to use @code-pushup/nx-plugin. If not provided, all projects using the @code-pushup/nx-plugin executor will be converted.
- [ ] running the commend will refactor all projects in the monorepo to use inferred tasks for code-pushup
- [ ] it will also refactor to existing options inside a given target
- [ ] add docs
- [ ] add tests
Implementation details
No response