[Gradle, JS] Remove redundant delegation
This commit is contained in:
-9
@@ -60,29 +60,20 @@ open class KotlinBrowserJs @Inject constructor(target: KotlinJsTarget) :
|
||||
|
||||
override fun runTask(body: KotlinWebpack.() -> Unit) {
|
||||
commonRunConfigurations.add(body)
|
||||
irBrowser?.runTask(body)
|
||||
}
|
||||
|
||||
@ExperimentalDistributionDsl
|
||||
override fun distribution(body: Distribution.() -> Unit) {
|
||||
distribution.body()
|
||||
target.irTarget?.browser?.distribution(body)
|
||||
}
|
||||
|
||||
override fun webpackTask(body: KotlinWebpack.() -> Unit) {
|
||||
commonWebpackConfigurations.add(body)
|
||||
irBrowser?.webpackTask(body)
|
||||
}
|
||||
|
||||
@ExperimentalDceDsl
|
||||
override fun dceTask(body: KotlinJsDce.() -> Unit) {
|
||||
dceConfigurations.add(body)
|
||||
irBrowser?.dceTask(body)
|
||||
}
|
||||
|
||||
override fun testTask(body: KotlinJsTest.() -> Unit) {
|
||||
super<KotlinJsSubTarget>.testTask(body)
|
||||
irBrowser?.testTask(body)
|
||||
}
|
||||
|
||||
override fun configureMain(compilation: KotlinJsCompilation) {
|
||||
|
||||
-2
@@ -31,12 +31,10 @@ open class KotlinNodeJs @Inject constructor(target: KotlinJsTarget) :
|
||||
|
||||
override fun runTask(body: NodeJsExec.() -> Unit) {
|
||||
(project.tasks.getByName(runTaskName) as NodeJsExec).body()
|
||||
irNodejs?.runTask(body)
|
||||
}
|
||||
|
||||
override fun testTask(body: KotlinJsTest.() -> Unit) {
|
||||
super<KotlinJsSubTarget>.testTask(body)
|
||||
irNodejs?.testTask(body)
|
||||
}
|
||||
|
||||
override fun configureDefaultTestFramework(testTask: KotlinJsTest) {
|
||||
|
||||
Reference in New Issue
Block a user