-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
🌊 NxNx related issuesNx related issues🤓 UXUX improvement for CLI usersUX improvement for CLI users🧩 nx-plugin
Milestone
Description
User story
As a user of Nx I want to have convenient configuration of my code-pushup related target.
A custom executor for the code-pushup CLI would reduce configuration and setup cost.
Acceptance criteria
- feat(nx-plugin): add executor to nx-plugin #737
- forward
stdout
andstderr
from CLI process in executor - feat(nx-plugin): add general executor logic #740
- create a
zod
schemaenvSchema
to parse environment variables
- create a
-
bundle package in multiple formats - https://nx.dev/recipes/tips-n-tricks/compile-multiple-formats - generate a
schema.json
from azod
schema inschema.ts
(optional)
Dual Build
Problems regarding the dual build:
- @poppinss/cliui also doesn't support CJS for some time.
Possible workaround for @poppinss/cliui would be a dynamic import - non-CJS-compatible runtime dependencies are lighthouse and lighthouse-logger
- big refactoring as turning all functions async that touch one of the incompatible tools
Conclusion use the CLI in a separate process instead and duplicate some of the logic.
Implementation details
https://github.com/code-pushup/cli/tree/add-executor-to-nx-plugin
Related
Metadata
Metadata
Assignees
Labels
🌊 NxNx related issuesNx related issues🤓 UXUX improvement for CLI usersUX improvement for CLI users🧩 nx-plugin