[Gradle, JS] Fix DSL for Gradle JS wizard
This commit is contained in:
+10
-1
@@ -182,7 +182,16 @@ abstract class AbstractKotlinDslGradleKotlinJSFrameworkSupportProvider(
|
|||||||
) {
|
) {
|
||||||
super.addSupport(projectId, module, rootModel, modifiableModelsProvider, buildScriptData)
|
super.addSupport(projectId, module, rootModel, modifiableModelsProvider, buildScriptData)
|
||||||
|
|
||||||
buildScriptData.addOther("kotlin.target.$jsSubTargetName { }")
|
buildScriptData.addOther(
|
||||||
|
"""
|
||||||
|
kotlin {
|
||||||
|
target {
|
||||||
|
$jsSubTargetName { }
|
||||||
|
produceExecutable()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
""".trimIndent()
|
||||||
|
)
|
||||||
val artifactId = MAVEN_JS_STDLIB_ID.removePrefix("kotlin-")
|
val artifactId = MAVEN_JS_STDLIB_ID.removePrefix("kotlin-")
|
||||||
buildScriptData.addDependencyNotation(composeDependency(buildScriptData, artifactId))
|
buildScriptData.addDependencyNotation(composeDependency(buildScriptData, artifactId))
|
||||||
}
|
}
|
||||||
|
|||||||
+4
@@ -156,6 +156,10 @@ constructor(
|
|||||||
"Only one producing type supported. Try to set $producingType but previously ${this.producingType} found"
|
"Only one producing type supported. Try to set $producingType but previously ${this.producingType} found"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.producingType != null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.producingType = producingType
|
this.producingType = producingType
|
||||||
|
|
||||||
whenBrowserConfigured {
|
whenBrowserConfigured {
|
||||||
|
|||||||
Reference in New Issue
Block a user