Add justfile to project

NOTE: only go build added

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-19 16:22:17 +08:00
parent b81a43019a
commit 55e7d3520a
5 changed files with 30 additions and 1 deletions

10
justfile Normal file
View File

@@ -0,0 +1,10 @@
project_name := "nixcn-cms"
server_enrty := "main.go"
output_dir := ".outputs"
client_dir := "./client"
go_cmd := `realpath $(which go)`
bun_cmd := `realpath $(which bun)`
build:
mkdir -p {{ output_dir }}
{{ go_cmd }} build -o {{ output_dir }}/{{ project_name }}{{ if os() == "windows" { "exe" } else { "" } }} {{ server_enrty }}