Skip to content

Commit 923f956

Browse files
authored
Fix buildAndCopyUI and update build instructions (#2036)
1 parent ad64bfe commit 923f956

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

docs/source/docs/contributing/building-photon.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ This section contains the build instructions from the source code available at [
1212

1313
**Node JS:**
1414

15-
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/).
15+
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/).
16+
17+
**pnpm:**
18+
19+
[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).
1620

1721
## Compiling Instructions
1822

@@ -197,7 +201,7 @@ Similarly, a local instance of PhotonVision can be debugged in the same way usin
197201

198202
Set up a VSCode configuration in {code}`launch.json`
199203

200-
```
204+
```json
201205
{
202206
// Use IntelliSense to learn about possible attributes.
203207
// Hover to view descriptions of existing attributes.

photon-server/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,13 @@ tasks.register('copyClientUIToResources', Copy) {
4444
into "${projectDir}/src/main/resources/web/"
4545
}
4646

47-
tasks.register("buildAndCopyUI") {
48-
dependsOn "pnpm_run_build"
47+
tasks.register('buildClient', PnpmTask) {
48+
args = ["build"]
49+
dependsOn "pnpmInstall"
50+
}
51+
52+
tasks.register('buildAndCopyUI') {
53+
dependsOn "buildClient"
4954
finalizedBy "copyClientUIToResources"
5055
}
5156

0 commit comments

Comments
 (0)