cli
cli copied to clipboard
Implement create nodes V2 API for the `nx-plugin` project
User story
As a maintainer of the project as well as user of the plugin I want to be able to upgrade to latest Nx. This is not given ATM as the plugin only implements createNodes. To unlick a update to Nx 20 we have to implement the createNodes V2 API.
Acceptance criteria
The plugin needs the following changes/additions:
- [x] the old API is still accessible and working in older Nx versions
- [x] the V2 API is implemented in a way where the V1 version is still able to reuse code
- [ ] Target caching is implemented in the V2 API
- [ ] Docs are updates
- [x] Tests for the new API
- [x] unit
- [x] integration
- [x] e2e
Implementation details
This can be used as implementation reference:
- https://github.com/push-based/nx-verdaccio/blob/main/projects/nx-verdaccio/src/plugin/nx-verdaccio.plugin.ts