-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
57 lines (47 loc) · 1.43 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
plugins {
kotlin("js")
id("org.jlleitschuh.gradle.ktlint")
}
group = "eu.yeger"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven(url = "https://dl.bintray.com/kotlin/kotlinx")
maven(url = "https://dl.bintray.com/kotlin/kotlin-js-wrappers")
maven(url = "https://dl.bintray.com/deryeger/maven")
}
dependencies {
val kotlinxHtmlJsVersion: String by project
implementation("org.jetbrains.kotlinx:kotlinx-html-js:$kotlinxHtmlJsVersion")
val kotlinReactVersion: String by project
implementation("org.jetbrains:kotlin-react:$kotlinReactVersion")
implementation("org.jetbrains:kotlin-react-dom:$kotlinReactVersion")
val kotlinStyledVersion: String by project
implementation("org.jetbrains:kotlin-styled:$kotlinStyledVersion")
val cykAlgorithmVersion: String by project
implementation("eu.yeger:cyk-algorithm:$cykAlgorithmVersion")
testImplementation(kotlin("test-js"))
}
kotlin {
js {
browser {
binaries.executable()
webpackTask {
cssSupport.enabled = true
}
runTask {
cssSupport.enabled = true
}
testTask {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport.enabled = true
}
}
}
}
}
tasks {
getByName("compileKotlinJs").dependsOn(ktlintFormat)
}