Tomasz Krakowiak
10/29/2021, 10:18 AMtapchicoma
10/29/2021, 11:06 AM./gradlew help --task nodeDevelopmentRun
?Alexander.Likhachev
10/29/2021, 2:31 PMtasks.named<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsExec>("nodeDevelopmentRun") {
nodeArgs = mutableListOf("--my-brand-new-argument")
}
Tomasz Krakowiak
10/30/2021, 5:59 PMval config: String? by project
if (config != null) {
println(".config: $config")
tasks.withType(NodeJsExec::class).all {
println("config: $config")
args("--config", config)
}
}
As Alexander mentioned, task type is org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsExec and nowhere in this type hierarchy I could find any @Option
, nor in indication in docs that would imply that passing args as command line argument is anyhow supported.