forked from lawikayoub/kotlin-poc-frontend-react-redux
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
39 lines (33 loc) · 1.32 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
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig.*
plugins {
kotlin("js") version "1.6.10"
}
group = "react-redux-todo-list-sample"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers") }
}
dependencies {
implementation("org.jetbrains.kotlin-wrappers:kotlin-react:17.0.2-pre.290-kotlin-1.6.10")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom:17.0.2-pre.290-kotlin-1.6.10")
implementation("org.jetbrains.kotlin-wrappers:kotlin-redux:4.1.2-pre.290-kotlin-1.6.10")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-redux:7.2.6-pre.290-kotlin-1.6.10")
implementation("org.jetbrains.kotlin-wrappers:kotlin-styled:5.3.3-pre.290-kotlin-1.6.10")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-router-dom:6.2.1-pre.290-kotlin-1.6.10")
implementation("org.jetbrains.kotlin-wrappers:kotlin-ring-ui:4.1.5-pre.290-kotlin-1.6.10")
// for kotlin-ring-ui
implementation(npm("core-js", "^3.16.0"))
}
kotlin {
js(IR) {
binaries.executable()
browser {
commonWebpackConfig {
mode = if(project.hasProperty("prod")) Mode.PRODUCTION else Mode.DEVELOPMENT
}
}
useCommonJs()
}
}