eygraber
05/24/2019, 7:12 PM/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?
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
}
gildor
05/27/2019, 1:00 AM