forked from Minecraft/Stonks
Build frontend before kotlin
parent
b5a16e7b4b
commit
dbe58f135b
|
@ -76,6 +76,16 @@ tasks.withType<Jar> {
|
|||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
manifest { attributes["Main-Class"] = "xyz.etztech.stonks.AppKt" }
|
||||
configurations["compileClasspath"].forEach { file: File -> from(zipTree(file.absoluteFile)) }
|
||||
doFirst {
|
||||
val proc = Runtime.getRuntime().exec("npm.cmd run --prefix ./spa build")
|
||||
|
||||
// Read the output from the command
|
||||
println("NPM RUN BUILD - STD INPUT")
|
||||
proc.getInputStream().bufferedReader().forEachLine { println(it) }
|
||||
|
||||
println("NPM RUN BUILD - STD ERROR")
|
||||
proc.getErrorStream().bufferedReader().forEachLine { println(it) }
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
|
|
Loading…
Reference in New Issue