forked from ch8n/Ch8n-flix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (43 loc) · 1.39 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
plugins {
id("org.jetbrains.kotlin.js") version "1.5.0"
}
group = "io.github.ch8n"
version = "1.0-SNAPSHOT"
repositories {
maven("https://dl.bintray.com/kotlin/kotlin-eap")
maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers")
maven("https://kotlin.bintray.com/kotlin-js-wrappers/")
mavenCentral()
jcenter()
}
kotlin {
js {
browser {
commonWebpackConfig {
cssSupport.enabled = true
}
}
binaries.executable()
}
}
dependencies {
//React, React DOM + Wrappers (chapter 3)
implementation("org.jetbrains:kotlin-react:17.0.2-pre.154-kotlin-1.5.0")
implementation("org.jetbrains:kotlin-react-dom:17.0.2-pre.154-kotlin-1.5.0")
implementation(npm("react", "17.0.2"))
implementation(npm("react-dom", "17.0.2"))
//Kotlin Styled (chapter 3)
implementation("org.jetbrains:kotlin-styled:5.2.3-pre.154-kotlin-1.5.0")
implementation(npm("styled-components", "~5.2.3"))
//Video Player (chapter 7)
implementation(npm("react-youtube-lite", "1.0.1"))
//Share Buttons (chapter 7)
implementation(npm("react-share", "~4.2.1"))
//Coroutines (chapter 8)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0-RC")
implementation(npm("dotenv", "10.0.0"))
}
// Heroku Deployment (chapter 9)
tasks.register("stage") {
dependsOn("build")
}