Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Aug 18, 2024
1 parent b05387f commit 26a64a9
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions photon-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "application"
id 'com.github.johnrengelman.shadow' version '8.1.1'
id "com.github.node-gradle.node" version "7.0.2"
id "com.github.node-gradle.node" version "7.0.1"
id "org.hidetake.ssh" version "2.11.2"
id 'edu.wpi.first.WpilibTools' version '1.3.0'
}
Expand Down Expand Up @@ -32,23 +32,17 @@ shadowJar {
}

node {
download = true
version = "18.20.4"
nodeProjectDir = file("${projectDir}/../photon-client")
}

tasks.register('buildUI', PnpmTask) {
args = ["run", "build"]
}

tasks.register('copyUIToResources', Copy) {
tasks.register('copyClientUIToResources', Copy) {
from "${projectDir}/../photon-client/dist/"
into "${projectDir}/src/main/resources/web/"
}

tasks.register("buildAndCopyUI") {
dependsOn "buildUI"
finalizedBy "copyUIToResources"
dependsOn "npm_run_build"
finalizedBy "copyClientUIToResources"
}

run {
Expand Down

0 comments on commit 26a64a9

Please sign in to comment.