Skip to content

Commit f8be535

Browse files
[UI] Add justfile to build frontend
1 parent c7143e4 commit f8be535

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ set allow-duplicate-recipes
1414

1515
import "runner/.justfile"
1616

17-
# TODO: Add frontend/justfile for managing frontend development tasks
17+
import "frontend/.justfile"

frontend/.justfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Justfile for building frontend
2+
#
3+
# Run `just` to see all available commands
4+
5+
default:
6+
@just --list
7+
8+
[private]
9+
install-frontend:
10+
#!/usr/bin/env bash
11+
set -e
12+
cd {{source_directory()}}
13+
npm install
14+
15+
build-frontend:
16+
#!/usr/bin/env bash
17+
set -e
18+
cd {{source_directory()}}
19+
npm run build
20+
cp -r build/ ../src/dstack/_internal/server/statics/
21+
22+
23+

0 commit comments

Comments
 (0)