diff --git a/justfile b/justfile index c3ba7ed..d014079 100644 --- a/justfile +++ b/justfile @@ -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 }}