diff --git a/.justfile b/.justfile index f8be9ad08e..a4fdb716cc 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" diff --git a/frontend/.justfile b/frontend/.justfile new file mode 100644 index 0000000000..30db1c8826 --- /dev/null +++ b/frontend/.justfile @@ -0,0 +1,20 @@ +# 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/