aws-cdk-kotlin-dsl icon indicating copy to clipboard operation
aws-cdk-kotlin-dsl copied to clipboard

How did you generate source?

Open thesurlydev opened this issue 6 years ago • 5 comments

I'm curious what the source was for the code generation and how you did the code generation?

thesurlydev avatar Apr 09 '19 22:04 thesurlydev

Great question :-)

It was generated based on Jsii converted java CDK. Meanwhile I'm thinking if it would be better to do codegen based on TypeScript ones.

I do have a plan to update the code generator, currently writing unit test and integration test. Will public once it's done.

willings avatar Apr 10 '19 00:04 willings

Thanks for reply. If you're not already using it, KotlinPoet is good for code generation.

I look forward to seeing more.

On Tue, Apr 9, 2019 at 5:12 PM yjzhang [email protected] wrote:

Great question :-)

It was generated based on Jsii converted java CDK. Meanwhile I'm thinking if it would be better to do codegen based on TypeScript ones.

I do have a plan to update the code generator, currently writing unit test and integration test. Will public once it's done.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aws-cdk-dsl/aws-cdk-kotlin-dsl/issues/2#issuecomment-481485616, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB4y64KWztyilBQA_Pi5SMt3FlR1tzSks5vfSx-gaJpZM4clxx_ .

-- -Shane

thesurlydev avatar Apr 10 '19 00:04 thesurlydev

Any update on this @willings? It would be great to contribute to this.

rcaught avatar Jul 19 '19 05:07 rcaught

@rcaught Being dog-tired recently.. But finally got two weeks holiday! Apologize for the delay.. I also saw the news on CDK's GA, so my current plan is to continue prototyping:

  • Support both Java and JS (Kotlin-to-js), since CDK is more a JS thing
  • Support AWS code build integration to generate yaml at build time.

I'll share with folks once it's finished..

willings avatar Jul 19 '19 05:07 willings

@willings, no need to apologise. Stuff like this is really what AWS should be doing IMO, so anything you produce is just a bonus to us Kotlin users. Keen to help out if possible!

rcaught avatar Jul 19 '19 06:07 rcaught