feat(just): migrate client commands to pnpm

Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
2026-01-20 14:21:40 +08:00
parent 7e37b92f24
commit ea28436628

View File

@@ -5,24 +5,24 @@ output_dir := join(project_dir, ".outputs")
client_dir := join(project_dir, "client")
exec_path := join(output_dir, project_name)
go_cmd := `realpath $(which go)`
bun_cmd := `realpath $(which bun)`
pnpm_cmd := `realpath $(which pnpm)`
default: install clean build-back build-client run-back
backend: clean build-back run-back
install:
cd {{ client_dir }} && {{ bun_cmd }} install
cd {{ client_dir }} && {{ pnpm_cmd }} install
clean:
mkdir -p .outputs
find .outputs -mindepth 1 ! -path .outputs/config.yaml -exec rm -rf {} +
client:
cd {{ client_dir }} && {{ bun_cmd }} dev
cd {{ client_dir }} && {{ pnpm_cmd }} dev
build-client:
cd {{ client_dir }} && {{ bun_cmd }} run build --outDir {{ join(output_dir, "static") }}
cd {{ client_dir }} && {{ pnpm_cmd }} run build --outDir {{ join(output_dir, "static") }}
build-back:
{{ go_cmd }} build -o {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_enrty }}