Jonathan Ellis
06/02/2022, 6:32 PMBig Chungus
06/02/2022, 6:40 PMBig Chungus
06/02/2022, 6:41 PMJonathan Ellis
06/02/2022, 6:42 PMephemient
06/02/2022, 7:16 PMAbe Sol
12/09/2024, 1:37 PM// TemplateProgram.kt
fun main() = p1
// p1.kt
val p1 = application { ... }
// p2.kt
val p2 == application { ... }
This way I can have multiple programs in the same project and I only need to change the main method to choose which one runs. It only takes a few seconds to recompile when ./gradlew jsRun -t
is active.ephemient
12/09/2024, 1:40 PM:foo:jsRun
:bar:jsRun
etc. work as expectedAbe Sol
12/09/2024, 1:41 PMephemient
12/09/2024, 1:41 PMAbe Sol
12/09/2024, 1:43 PMAbe Sol
12/09/2024, 1:44 PMAbe Sol
12/09/2024, 2:28 PMephemient
12/09/2024, 2:30 PM