Skip to content
This repository was archived by the owner on Jul 13, 2021. It is now read-only.

Commit 619143e

Browse files
author
Sergey Mashkov
committed
Upgrade to 0.0.22 and enable DCE
1 parent bfda161 commit 619143e

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ subprojects { p ->
1313

1414
dependencies {
1515
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16-
classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.21"
16+
classpath "org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.22"
1717
}
1818
}
1919
}

frontend/build.gradle

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ group = 'org.jetbrains.elemental'
22
version = '0.0.1-SNAPSHOT'
33

44
apply plugin: 'kotlin2js'
5+
apply plugin: 'kotlin-dce-js'
56
apply plugin: 'org.jetbrains.kotlin.frontend'
67

78
repositories {
@@ -54,22 +55,15 @@ compileKotlin2Js {
5455
}
5556

5657
sourceSets {
57-
main.kotlin.srcDirs += "src"
58-
main.resources.srcDirs += "resources"
59-
main.output.resourcesDir = "build/js/resources"
60-
test.kotlin.srcDirs += "test"
61-
test.resources.srcDirs += "testResources"
62-
}
63-
64-
task copyResources(type: Copy) {
65-
from sourceSets.main.resources.srcDirs
66-
// into sourceSets.main.output.resourcesDir
67-
into file(buildDir.path + "/js")
68-
}
69-
70-
afterEvaluate {
71-
tasks.getByName("webpack-bundle") { dependsOn(copyResources) }
72-
tasks.getByName("webpack-run") { dependsOn(copyResources) }
58+
main {
59+
kotlin.srcDirs += "src"
60+
resources.srcDirs += "resources"
61+
output.resourcesDir = "build/js/resources"
62+
}
63+
test {
64+
kotlin.srcDirs += "test"
65+
resources.srcDirs += "testResources"
66+
}
7367
}
7468

7569
kotlin {

0 commit comments

Comments
 (0)