From f8be53536b3a9d7f63458be5cf2024256e1c5478 Mon Sep 17 00:00:00 2001 From: peterschmidt85 Date: Fri, 11 Jul 2025 09:36:39 +0200 Subject: [PATCH 1/2] [UI] Add justfile to build frontend --- .justfile | 2 +- frontend/.justfile | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 frontend/.justfile diff --git a/.justfile b/.justfile index f8be9ad08e..6bdb15fefb 100644 --- a/.justfile +++ b/.justfile @@ -14,4 +14,4 @@ set allow-duplicate-recipes import "runner/.justfile" -# TODO: Add frontend/justfile for managing frontend development tasks +import "frontend/.justfile" \ No newline at end of file diff --git a/frontend/.justfile b/frontend/.justfile new file mode 100644 index 0000000000..771a0250c2 --- /dev/null +++ b/frontend/.justfile @@ -0,0 +1,23 @@ +# Justfile for building frontend +# +# Run `just` to see all available commands + +default: + @just --list + +[private] +install-frontend: + #!/usr/bin/env bash + set -e + cd {{source_directory()}} + npm install + +build-frontend: + #!/usr/bin/env bash + set -e + cd {{source_directory()}} + npm run build + cp -r build/ ../src/dstack/_internal/server/statics/ + + + From 2b355e04ea6f33e22eaf985dab9a3929d738890f Mon Sep 17 00:00:00 2001 From: peterschmidt85 Date: Fri, 11 Jul 2025 10:03:21 +0200 Subject: [PATCH 2/2] Fix linter --- .justfile | 2 +- frontend/.justfile | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.justfile b/.justfile index 6bdb15fefb..a4fdb716cc 100644 --- a/.justfile +++ b/.justfile @@ -14,4 +14,4 @@ set allow-duplicate-recipes import "runner/.justfile" -import "frontend/.justfile" \ No newline at end of file +import "frontend/.justfile" diff --git a/frontend/.justfile b/frontend/.justfile index 771a0250c2..30db1c8826 100644 --- a/frontend/.justfile +++ b/frontend/.justfile @@ -18,6 +18,3 @@ build-frontend: cd {{source_directory()}} npm run build cp -r build/ ../src/dstack/_internal/server/statics/ - - -