-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (41 loc) · 993 Bytes
/
build.gradle
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
plugins {
id 'org.jetbrains.kotlin.js' version '1.4.0'
id "com.diffplug.spotless" version "5.1.1"
}
group = 'io.github.starlight220'
version = '0.0'
repositories {
jcenter()
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-js'
implementation 'org.jetbrains.kotlinx:kotlinx-html:0.7.2'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2"
}
kotlin {
js(IR) {
browser {
binaries.executable()
webpackTask {
cssSupport.enabled = true
}
runTask {
cssSupport.enabled = true
}
testTask {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport.enabled = true
}
}
}
}
}
spotless {
kotlin {
ktlint()
indentWithSpaces(2)
}
}