forked from kotlin-hands-on/web-app-react-kotlin-js-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (41 loc) · 1.33 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
plugins {
kotlin("js") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
kotlin {
js {
browser {
commonWebpackConfig {
cssSupport.enabled = true
}
}
binaries.executable()
}
}
dependencies {
//React, React DOM + Wrappers (chapter 3)
implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:1.0.0-pre.354"))
implementation("org.jetbrains.kotlin-wrappers:kotlin-react")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom")
//Kotlin React Emotion (CSS) (chapter 3)
implementation("org.jetbrains.kotlin-wrappers:kotlin-emotion")
//Video Player (chapter 7)
implementation(npm("react-player", "2.10.1"))
//Share Buttons (chapter 7)
implementation(npm("react-share", "4.4.0"))
//Coroutines & serialization (chapter 8)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
}
// Heroku Deployment (chapter 9)
tasks.register("stage") {
dependsOn("build")
}
rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
versions.webpackCli.version = "4.10.0"
}