-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
59 lines (51 loc) · 1.21 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
buildscript {
ext {
kotlin_version = '1.1.60'
kotlin_frontend_version = '0.0.23'
}
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:$kotlin_frontend_version"
}
}
apply plugin: 'kotlin2js'
apply plugin: 'org.jetbrains.kotlin.frontend'
repositories {
jcenter()
maven { url 'https://kotlin.bintray.com/kotlin-js-wrappers' }
}
ext {
kotlinx_html_version = '0.6.6'
kotlin_react_version = '16.0.0-pre.8-kotlin-1.1.51'
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version"
compile "org.jetbrains:kotlin-react-dom:$kotlin_react_version"
}
kotlin {
experimental {
coroutines 'enable'
}
}
compileKotlin2Js {
kotlinOptions {
moduleKind = 'commonjs'
}
}
kotlinFrontend {
npm {
dependency "react"
dependency "react-dom"
}
webpackBundle {
bundleName = 'tictactoe'
contentPath = file('src/main/web')
}
}