I learned a lot about calling Kotlin/JS from JavaScript while implementing this same for using KFSM.
https://github.com/open-jumpco/kfsm-webjs
I would prefer Kotlin/JS all the way but that isn't the reality because there are so many JS tools involved in building JavaScript for the browsers.
Here is my Kotlin/JS version for comparison. https://github.com/open-jumpco/kfsm-web
g
gbaldeck
02/20/2020, 4:57 PM
All those tools are taken care of for you with the Kotlin/Js Gradle plugin
gbaldeck
02/20/2020, 4:57 PM
Unless you need SASS or something like that, then you need to configure webpack
gbaldeck
02/20/2020, 4:58 PM
which is definitely still possible with the kotlin/js gradle plugin, its just the documentation for all this is still not there yet. Its improved over the last year, but it needs a dedicated group to really get it up to speed
c
corneil
02/20/2020, 5:31 PM
If love how far it has come and being able to do more without leaving Kotlin/JS, the typescript tooling is also getting better.
Soon we'll have WebAssembly and some powerful frameworks will follow.