acacode / acacode/swagger-typescript-api

Generate an index file when using modular mode

Aperta
#523 2 commenti 5 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
4.1k
Fork
436
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I want to use Modular mode, but it doesn't generate an index file to mass-export stuff.
Rather than being able to do `import { Thing, ThingDto } from 'api';`, I'm forced to use multiple import statements, `import { Thing } from 'api/Thing'; import { ThingDto } from 'api/data-contracts';`

Is it possible to have this generate an `index.ts` file? If not a cli argument, then is it possible to have the modular templates generate a single extra file, such that each module can write to it once?

Thanks.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.