1
1
plugins {
2
- id(" org.jetbrains.kotlin.js" ) version " 1.3.70-eap-184"
2
+ kotlin(" js" ) version " 1.6.10"
3
+ kotlin(" plugin.serialization" ) version " 1.6.10"
3
4
}
4
5
5
6
group = " org.example"
6
7
version = " 1.0-SNAPSHOT"
7
8
8
9
repositories {
9
- maven { setUrl(" https://dl.bintray.com/kotlin/kotlin-eap" ) }
10
- maven(" https://kotlin.bintray.com/kotlin-js-wrappers/" )
11
10
mavenCentral()
12
- jcenter()
13
11
}
14
12
15
- dependencies {
16
- implementation(kotlin(" stdlib-js" ))
13
+ kotlin {
14
+ js {
15
+ browser {
16
+ commonWebpackConfig {
17
+ cssSupport.enabled = true
18
+ }
19
+ }
20
+ binaries.executable()
21
+ }
22
+ }
17
23
24
+ dependencies {
18
25
// React, React DOM + Wrappers (chapter 3)
19
- implementation(" org.jetbrains:kotlin-react:16.9.0 -pre.89 -kotlin-1.3.60 " )
20
- implementation(" org.jetbrains:kotlin-react-dom:16.9.0 -pre.89 -kotlin-1.3.60 " )
21
- implementation(npm(" react" , " 16.12.0 " ))
22
- implementation(npm(" react-dom" , " 16.12.0 " ))
26
+ implementation(" org.jetbrains.kotlin-wrappers :kotlin-react:17.0.2 -pre.297 -kotlin-1.6.10 " )
27
+ implementation(" org.jetbrains.kotlin-wrappers :kotlin-react-dom:17.0.2 -pre.297 -kotlin-1.6.10 " )
28
+ implementation(npm(" react" , " 17.0.2 " ))
29
+ implementation(npm(" react-dom" , " 17.0.2 " ))
23
30
24
- // Kotlin Styled (chapter 3)
25
- implementation(" org.jetbrains:kotlin-styled:1.0.0-pre.90-kotlin-1.3.61" )
26
- implementation(npm(" styled-components" ))
27
- implementation(npm(" inline-style-prefixer" ))
31
+ // Kotlin React CSS (chapter 3)
32
+ implementation(" org.jetbrains.kotlin-wrappers:kotlin-react-css:17.0.2-pre.298-kotlin-1.6.10" )
28
33
29
34
// Video Player (chapter 7)
30
- implementation(npm(" react-player " ))
35
+ implementation(npm(" react-youtube-lite " , " 1.5.0 " ))
31
36
32
37
// Share Buttons (chapter 7)
33
- implementation(npm(" react-share" ))
38
+ implementation(npm(" react-share" , " 4.4.0 " ))
34
39
35
- // Coroutines (chapter 8)
36
- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.3" )
40
+ // Coroutines & serialization (chapter 8)
41
+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0" )
42
+ implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2" )
37
43
}
38
44
39
- kotlin.target.browser { }
45
+ // Heroku Deployment (chapter 9)
46
+ tasks.register(" stage" ) {
47
+ dependsOn(" build" )
48
+ }
0 commit comments