trumbitta / nx-trumbitta

💡An attempt to start collecting all of my Nx-related Open Source work in a mono-repo.
MIT License
47 stars 11 forks source link

Executor never shows openapi-generator-cli output #67

Closed JulioC closed 2 years ago

JulioC commented 2 years ago

When running generate-api-lib-sources executor, the openapi-generator-cli output is never shown to the user, even when an error happens. This makes it very hard to debug issues with the OpenAPI schema or even with the executor configs.

It would be useful to show the output on error or even consume the verbose flag from executor context.

Note: the storybook plugin for nx has an silent option which hides the build logs output, maybe this could be used instead of the verbose flag

youngchen7 commented 2 years ago

We were running into this as well, and we frequently had to run openapi-generator-cli directly just for debugging purposes.

Here's a PR that logs the command used to invoke openapi-generator-cli, as well as forwards the stdout to the nx logger: https://github.com/trumbitta/nx-trumbitta/pull/71

trumbitta commented 2 years ago

@all-contributors please add @JulioC for ideas

allcontributors[bot] commented 2 years ago

@trumbitta

I've put up a pull request to add @JulioC! :tada: