Skip to content

Commit

Permalink
chore: add PNPM setup and build tasks to Gradle configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaKin committed Dec 14, 2024
1 parent a3a6bdc commit e62e137
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ui/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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<PnpmTask>("build-packages") {
dependsOn("pnpmInstall")
args = listOf("build-packages")
}

tasks.register<PnpmTask>("build") {
dependsOn("build-packages")
args = listOf("build")
}

tasks.register<Delete>("cleanDist") {
delete("${projectDir}\\dist")
}
Expand Down

0 comments on commit e62e137

Please sign in to comment.