diff --git a/docs/source/docs/contributing/building-photon.md b/docs/source/docs/contributing/building-photon.md index 2810914163..f8199643ad 100644 --- a/docs/source/docs/contributing/building-photon.md +++ b/docs/source/docs/contributing/building-photon.md @@ -12,7 +12,11 @@ This section contains the build instructions from the source code available at [ **Node JS:** - The UI is written in Node JS. To compile the UI, Node 22.15.0 is required. To install Node JS follow the instructions for your platform [on the official Node JS website](https://nodejs.org/en/download/). + The UI is written in Node JS. To compile the UI, Node 22 or later is required. To install Node JS, follow the instructions for your platform [on the official Node JS website](https://nodejs.org/en/download/). + +**pnpm:** + + [pnpm](https://pnpm.io/) is the package manager used to download dependencies for the UI. To install pnpm, follow [the instructions on the official pnpm website](https://pnpm.io/installation). ## Compiling Instructions @@ -197,7 +201,7 @@ Similarly, a local instance of PhotonVision can be debugged in the same way usin Set up a VSCode configuration in {code}`launch.json` -``` +```json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. diff --git a/photon-server/build.gradle b/photon-server/build.gradle index 884beb0b0f..a733035e8a 100644 --- a/photon-server/build.gradle +++ b/photon-server/build.gradle @@ -44,8 +44,13 @@ tasks.register('copyClientUIToResources', Copy) { into "${projectDir}/src/main/resources/web/" } -tasks.register("buildAndCopyUI") { - dependsOn "pnpm_run_build" +tasks.register('buildClient', PnpmTask) { + args = ["build"] + dependsOn "pnpmInstall" +} + +tasks.register('buildAndCopyUI') { + dependsOn "buildClient" finalizedBy "copyClientUIToResources" }