Kotlin / dukat

Converter of <any kind of declarations> to Kotlin external declarations
552 stars 44 forks source link

Plugin system for Dukat? #412

Open joffrey-bion opened 3 years ago

joffrey-bion commented 3 years ago

I believe it would be nice to have a plugin system for Dukat generation.

One of the most important piece that is currently missing is generating RBuilder extensions (react wrappers) for react component libraries. But react is a separate domain from Dukat's pure TS->Kotlin conversion, so this functionality shouldn't really live inside Dukat itself.

However, if such generation were automatable, building it as a Dukat plugin would make sense, because it could make use of the type-awareness and internal representations of Dukat. It would be much simpler to do this rather than parse/reflect on the generated Kotlin code in a totally separate tool.

What do you think?

penn5 commented 3 years ago

Sounds cool, but Dukat can't even correctly compile things yet, so I think you may be waiting a few years.