mirror of
https://github.com/DaanVandenBosch/phantasmal-world.git
synced 2025-04-05 07:18:29 +08:00
29 lines
634 B
Plaintext
29 lines
634 B
Plaintext
import org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile
|
|
|
|
plugins {
|
|
kotlin("js")
|
|
}
|
|
|
|
kotlin {
|
|
js {
|
|
browser {}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(project(":core"))
|
|
api(project(":observable"))
|
|
implementation(npm("@fortawesome/fontawesome-free", "^5.13.1"))
|
|
|
|
testImplementation(kotlin("test-js"))
|
|
testImplementation(project(":test-utils"))
|
|
|
|
tasks.withType<Kotlin2JsCompile> {
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
"-Xopt-in=kotlin.RequiresOptIn",
|
|
"-Xopt-in=kotlin.contracts.ExperimentalContracts",
|
|
"-Xopt-in=kotlin.time.ExperimentalTime"
|
|
)
|
|
}
|
|
}
|