forked from nixcn/nixcn-cms
Add justfile to project
NOTE: only go build added Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
10
justfile
Normal file
10
justfile
Normal 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 }}
|
||||
Reference in New Issue
Block a user