diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts index bfa9a55..13e9c58 100644 --- a/ui/build.gradle.kts +++ b/ui/build.gradle.kts @@ -1,3 +1,26 @@ +import com.github.gradle.node.pnpm.task.PnpmTask + +plugins { + id("com.github.node-gradle.node") version "7.1.0" +} + +node { + version = "20.18.1" + workDir = file("${projectDir}/node") + download = true + pnpmVersion = "9.15.0" +} + +tasks.register("build-packages") { + dependsOn("pnpmInstall") + args = listOf("build-packages") +} + +tasks.register("build") { + dependsOn("build-packages") + args = listOf("build") +} + tasks.register("cleanDist") { delete("${projectDir}\\dist") }