-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement JS target (experimental) #437
Conversation
Thanks for the PR @krzema12! A couple of notes / questions:
|
Long-term, I'm totally for it as well, but for now our KMP port is yet immature and using it already for the JVM could introduce some regressions. That's why I propose to depend on
I just remember from my early days of experimenting with KMP that publication to Maven Central required some fancy hacks, but indeed looking at kaml's build logic, it doesn't mention anything Java-specific - indeed it may just work! It would be a matter of trying it out in practice.
See the Gradle log:
It comes from this place in kotest. I'm not sure yet if it's better to somehow rewrite the tests in kaml or improve kotest. Given the above and our limited bandwidth, maybe it's fine with you to just consider merging this PR in the current form, getting some exposure for the new target and applying fixes as needed? Just be sure to review the changes in the common Kotlin code as they affect the JVM target as well. |
|
@russellbanks cool, I guess we could revive your PR #431! |
#431 is merged, thanks for your patience! I'm happy to merge this once the merge conflict is resolved - could you please also add a note to the readme that makes it super clear that JS support is very experimental, untested, likely to break / change etc.? |
@charleskorn cool, I've just updated the PR, please review! |
This change provides a working JS version of kaml (tested through a separate demo consumer Gradle module).
However, it's not yet ready to be shipped because:
DescribeSpec
seems to be unsupported by the JS target