Build frontend before kotlin

main
Kevin Belisle 2021-07-09 00:49:45 -04:00
parent b5a16e7b4b
commit dbe58f135b
1 changed files with 10 additions and 0 deletions

View File

@ -76,6 +76,16 @@ tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest { attributes["Main-Class"] = "xyz.etztech.stonks.AppKt" } manifest { attributes["Main-Class"] = "xyz.etztech.stonks.AppKt" }
configurations["compileClasspath"].forEach { file: File -> from(zipTree(file.absoluteFile)) } 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 { application {