cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

feature: adds parameter to generate an index file #50

Closed nicokoenig closed 4 years ago

nicokoenig commented 5 years ago

The index file exports all generated files. This is useful when working with NX and libs.

mojoaxel commented 5 years ago

The new option indexFile should maybe be documented somewhere!? Maybe in the Readme?

nicokoenig commented 5 years ago

npx ng-openapi-gen --help will list the new parameter 👍

luisfpg commented 4 years ago

Thanks for the PR. After merging, I did some fixes. Cannot just export everything because there are the other indexes and now models support namespaces as well, which means the exported type is aliased.