Add cleaning output dir for client and backend build/dev

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-20 15:40:45 +08:00
parent 4cda783fed
commit 5c540db325

View File

@@ -19,12 +19,12 @@ clean:
find .outputs -mindepth 1 ! -path .outputs/config.yaml -exec rm -rf {} + find .outputs -mindepth 1 ! -path .outputs/config.yaml -exec rm -rf {} +
client: client:
cd {{ client_dir }} && {{ pnpm_cmd }} dev cd {{ client_dir }} && {{ pnpm_cmd }} run dev
build-client: build-client: clean
cd {{ client_dir }} && {{ pnpm_cmd }} run build --outDir {{ join(output_dir, "static") }} cd {{ client_dir }} && {{ pnpm_cmd }} run build --outDir {{ join(output_dir, "static") }}
build-back: build-back: clean
{{ go_cmd }} build -o {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_enrty }} {{ go_cmd }} build -o {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_enrty }}
run-back: run-back:
@@ -39,5 +39,5 @@ watch-back: clean
dev: clean install dev: clean install
devenv up --verbose devenv up --verbose
dev-back: dev-back: clean
devenv up backend postgres redis meilisearch --verbose devenv up backend postgres redis meilisearch --verbose