I'm trying to get kotlinjs to work with Firebase c...
# javascript
e
I'm trying to get kotlinjs to work with Firebase cloud functions, but I'm running into an issue when I build my project. The structure of the project calls for a directory called
/functions
that contains
index.js
,
node_modules
,
package.json
and
package-lock.json
. My source is in
/src/main/kotlin
. Every time I build,
index.js
is correctly put into
/functions
but the other files are deleted. My
build.gradle
file is below. Any one have any advice?
Copy code
plugins {
    id 'kotlin2js' version '1.3.31'
}

group 'com.myapp'
version '1.0.0'

repositories {
    mavenCentral()
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-js"
    testImplementation "org.jetbrains.kotlin:kotlin-test-js"
}

compileKotlin2Js.kotlinOptions {
    moduleKind = "commonjs"
    outputFile = "functions/index.js"
    sourceMap = true
}
g
Other files?