Compare commits
5 Commits
a764ced295
...
580402a5c2
| Author | SHA1 | Date | |
|---|---|---|---|
| 580402a5c2 | |||
| d46af028dc | |||
| cdcd05ea52 | |||
|
3f05dbe1e6
|
|||
|
7d76b85055
|
17
justfile
17
justfile
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user