Compare commits

..

5 Commits

Author SHA1 Message Date
580402a5c2 feat(devenv)!: integrate all services and tasks
Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-28 09:07:19 +00:00
d46af028dc chore(client): specify dev server host
Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-28 09:07:19 +00:00
cdcd05ea52 feat(.zed/settings): set tab size for nix and ts files
Signed-off-by: Noa Virellia <noa@requiem.garden>
2025-12-28 09:07:19 +00:00
3f05dbe1e6 Rename client-dev to client
Signed-off-by: Asai Neko <sugar@sne.moe>
2025-12-28 16:33:46 +08:00
7d76b85055 Expend justfile functions
Signed-off-by: Asai Neko <sugar@sne.moe>
2025-12-28 16:23:24 +08:00

View File

@@ -7,7 +7,9 @@ exec_path := join(output_dir, project_name)
go_cmd := `realpath $(which go)`
bun_cmd := `realpath $(which bun)`
default: install clean build run
default: install clean build-back build-client run-back
backend: install clean build-back run-back
install:
cd {{ client_dir }} && {{ bun_cmd }} install
@@ -17,14 +19,19 @@ clean:
mkdir -p {{ output_dir }}
cp {{ join(project_dir, "config.default.yaml") }} {{ join(output_dir, "config.yaml") }}
build:
{{ go_cmd }} build -o {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_enrty }}
client:
cd {{ client_dir }} && {{ bun_cmd }} dev
build-client:
cd {{ client_dir }} && {{ bun_cmd }} run build --outDir {{ join(output_dir, "static") }}
run:
build-back:
{{ go_cmd }} build -o {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_enrty }}
run-back:
cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }}
test:
test-back:
cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} GO_ENV=test go test -C .. ./...
dev: