Noob question, how to get Gradle to output kotlin....
# javascript
a
Noob question, how to get Gradle to output kotlin.js? EDIT - Don't worry, found a workaround for needing to do this
w
Copy code
task populateNodeModules(type: Copy, dependsOn: [compileKotlin2Js, compileTestKotlin2Js]) {
    from "${compileKotlin2Js.destinationDir}"
    from "${compileTestKotlin2Js.destinationDir}"

    [configurations.compile, configurations.testCompile]*.each {
        from zipTree(it.absolutePath).matching {
            include '*.js'
            include '*.js.map'
        }
    }

    into "${buildDir}/node_modules"
}
a
Thanks very much! (For anyone also searching for a solution - I didn't try very hard to get this to work and didn't manage to do so.)