Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions docs/source/docs/contributing/building-photon.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
9 changes: 7 additions & 2 deletions photon-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
Loading