devel: install node deps in build script

This commit is contained in:
2026-01-05 13:07:54 +01:00
parent 09a9e47348
commit eb00b8c19d

View File

@@ -33,8 +33,11 @@ bundle-server:
dotnet build -tl -c Release -o {{dist_path}}
[working-directory: 'src/Client']
bundle-client:
fable -e .jsx -o build --test:MSBuildCracker --run {{vite_prod}}
install-client:
bun install --frozen-lockfile
[working-directory: 'src/Client']
bundle-client: install-client
# Build debug bundle (server + client)
[parallel]
@@ -63,8 +66,8 @@ run-server:
# Run client only in watch mode
[working-directory: 'src/Client']
run-client:
fable watch -e .jsx -o build --run {{vite}}
run-client: install-client
fable watch --cwd {{client_path}} -e .jsx -o build --run {{vite}}
# Format code with Fantomas
format:
@@ -79,5 +82,5 @@ test-server:
dotnet run {{test_path}}/Server
[working-directory: 'src/Client']
test-client:
fable -e .jsx -o build --run {{vite}}
test-client: install-client
fable --cwd {{test_path}}/Client -e .jsx -o build --run {{vite}}