diff --git a/app/build.gradle.kts b/app/build.gradle.kts index f4976af..96d2573 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -76,6 +76,16 @@ tasks.withType { 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 {