How can I configure a multiplatform JVM target to use a sibling JS target (maybe through the JsJar task?). My jvm target consists of a Ktor webserver which will serve some static JS generated by the JS target. I guess these could be separated into independent projects, but the JS target really only makes sense when served by the jvm target so I wanted to couple them together
09/03/2019, 9:08 PM
Depends on what you mean by "use". Otherwise that task is indeed the way to go. You can use it to setup a copy task to put the build artefacts where you need them and setup a dependency for the jvm build task.
09/04/2019, 7:12 AM
I'd recommend configuring jsJar to put all static content in some folder within the jar and then expand it into "fat" JVM jar. From ktor, then serve that folder as static resources