Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nx-plugin - export createNodes to have dynamic tasks #619

Closed
4 tasks done
BioPhoton opened this issue Apr 11, 2024 · 0 comments · Fixed by #792
Closed
4 tasks done

nx-plugin - export createNodes to have dynamic tasks #619

BioPhoton opened this issue Apr 11, 2024 · 0 comments · Fixed by #792
Assignees
Labels
🧩 nx-plugin 🤓 UX UX improvement for CLI users

Comments

@BioPhoton
Copy link
Collaborator

BioPhoton commented Apr 11, 2024

User story

As a user of the nx-plugin I want to have dynamic targets to avoid setup and configuration cost.
In Nx v17 they released the crystal API and this should be leveraged to generate the dynamic targets.

Acceptance criteria

  • export createNodes to be abel to register the plugins like:
// nx.json
{
  "plugin": ["@code-pushup/nx-plugin"]
}

Add the following targets:

  • target code-pushup if code-pushup.config.ts is present in root - equal to execute npx code-pushup with nx defaults. feat(nx-plugin): implement bin property in options #773
    • consider projectPrefix
  • (nice to have) target code-pushup--configuration if code-pushup.config.ts is NOT present in root - equal to execute npx g @code-pushup/nx-plugin:configuration with nx defaults

Implementation details

@BioPhoton BioPhoton self-assigned this Apr 11, 2024
@BioPhoton BioPhoton changed the title export createNodesexport to have dynamic tasks nx-plugin - export createNodesexport to have dynamic tasks Apr 15, 2024
@BioPhoton BioPhoton added the 🤓 UX UX improvement for CLI users label Apr 15, 2024
@matejchalk matejchalk changed the title nx-plugin - export createNodesexport to have dynamic tasks nx-plugin - export createNodes to have dynamic tasks Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧩 nx-plugin 🤓 UX UX improvement for CLI users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant