From 64bab332c9c07cf2fb83af41f004e5d18b938d64 Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Wed, 21 Jan 2026 13:58:42 +0800 Subject: [PATCH] Mod justfile Signed-off-by: Asai Neko --- justfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index e17fd7c..5b5551c 100644 --- a/justfile +++ b/justfile @@ -9,7 +9,9 @@ client_cms_dir := join(client_dir, "cms") server_exec_path := join(output_dir, project_name) server_entry := "main.go" -install: install-cms +install: install-cms install-back + +generate: gen-back install-cms: cd {{ client_cms_dir }} && {{ pnpm_cmd }} install @@ -24,6 +26,9 @@ build-client-cms: build-back: {{ go_cmd }} build -o {{ server_exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_entry }} +install-back: + cd {{ project_dir }} && go mod tidy + run-back: cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ server_exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} @@ -36,7 +41,7 @@ gen-back: watch-back: watchexec -r -e go,yaml,tpl -i '.devenv/**' -i '.direnv/**' -i 'client/**' -i 'vendor/**' 'go build -o {{ server_exec_path }} . && cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ server_exec_path }}' -dev: clean install gen-back +dev: clean install generate devenv up --verbose dev-client-cms: install-cms