-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (51 loc) · 1.41 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
58
plugins {
kotlin("js")
}
val projectGroupId: String by extra
val projectVersion: String by extra
val gradleWrapperVersion: String by extra
val kotlinXhtmlJsVersion: String by extra
group = projectGroupId
version = projectVersion
repositories {
mavenCentral()
jcenter()
maven("https://dl.bintray.com/kotlin/kotlin-dev")
maven("https://dl.bintray.com/kotlin/kotlinx")
maven("https://kotlin.bintray.com/kotlinx")
maven("https://dl.bintray.com/jetbrains/kotlin-native-dependencies")
google()
}
dependencies {
implementation(kotlin("stdlib-js"))
implementation("org.jetbrains.kotlinx:kotlinx-html-js:$kotlinXhtmlJsVersion")
testImplementation(kotlin("test-js"))
}
kotlin {
target {
browser {
// // if you wanna run browser tests:
// testTask {
// useKarma {
// usePhantomJS()
// useChromeHeadless()
// useChromeCanary()
// useChrome()
// useFirefox()
// useIe()
// }
// }
}
}
// // val reactVersion: String by extra
// // if you wanna add for instance react library:
// sourceSets["main"].dependencies {
// implementation(npm("react", reactVersion))
// }
}
tasks {
withType<Wrapper> {
gradleVersion = gradleWrapperVersion
}
}
defaultTasks("build")