spierce7
02/15/2020, 5:35 AMkotlin.js.experimental.generateKotlinExternals=true
in my settings.gradle
, I’ve added npm dependencies:
plugins {
kotlin("js")
}
kotlin {
target {
nodejs()
}
sourceSets {
val main by getting {
dependencies {
implementation(Deps.kotlin.stdlib.js)
npm("firebase-admin", "8.6.0")
npm("firebase-functions", "3.3.0")
npm("twilio", "3.39.4")
npm("left-pad", "1.3.0")
}
}
val test by getting {
dependencies {
implementation(Deps.kotlin.test.js)
}
}
}
}
and I’m running the generateExternals
command, but I still can’t see any generated files in the build directory, or any code completion.
Anyone have any ideas? I’ve also tried the 1.3.70 eap, with no results.turansky
02/15/2020, 8:53 AM// invalid dependency declaration
npm("firebase-admin", "8.6.0")
npm("firebase-functions", "3.3.0")
npm("twilio", "3.39.4")
npm("left-pad", "1.3.0")
turansky
02/15/2020, 8:54 AM// valid dependency declaration
implementation(npm("firebase-admin", "8.6.0"))
implementation(npm("firebase-functions", "3.3.0"))
implementation(npm("twilio", "3.39.4"))
implementation(npm("left-pad", "1.3.0"))
spierce7
02/15/2020, 2:18 PM