First merge from develop to main (WIP) #7

Merged
sugar merged 199 commits from develop into main 2026-01-27 17:47:07 +00:00
Showing only changes of commit 43f95ba4af - Show all commits

View File

@@ -7,7 +7,10 @@ exec_path := join(output_dir, project_name)
go_cmd := `realpath $(which go)` go_cmd := `realpath $(which go)`
bun_cmd := `realpath $(which bun)` bun_cmd := `realpath $(which bun)`
default: clean build run default: install clean build run
install:
cd {{ client_dir }} && {{ bun_cmd }} install
clean: clean:
find .outputs -mindepth 1 ! -name config.yaml -exec rm -rf {} + find .outputs -mindepth 1 ! -name config.yaml -exec rm -rf {} +
@@ -15,6 +18,7 @@ clean:
build: build:
mkdir -p {{ output_dir }} mkdir -p {{ output_dir }}
{{ 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 }}
cd {{ client_dir }} && {{ bun_cmd }} run build --outDir {{ join(output_dir, "static") }}
run: run:
cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }}