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
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
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
stdoutandstderrfrom CLI process in executorzodschemaenvSchemato parse environment variablesbundle package in multiple formats - https://nx.dev/recipes/tips-n-tricks/compile-multiple-formatsschema.jsonfrom azodschema inschema.ts(optional)Dual Build
Problems regarding the dual build:
Possible workaround for @poppinss/cliui would be a dynamic import
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