First merge from develop to main (WIP) #7
9
justfile
9
justfile
@@ -9,7 +9,9 @@ client_cms_dir := join(client_dir, "cms")
|
||||
server_exec_path := join(output_dir, project_name)
|
||||
server_entry := "main.go"
|
||||
|
||||
install: install-cms
|
||||
install: install-cms install-back
|
||||
|
||||
generate: gen-back
|
||||
|
||||
install-cms:
|
||||
cd {{ client_cms_dir }} && {{ pnpm_cmd }} install
|
||||
@@ -24,6 +26,9 @@ build-client-cms:
|
||||
build-back:
|
||||
{{ go_cmd }} build -o {{ server_exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_entry }}
|
||||
|
||||
install-back:
|
||||
cd {{ project_dir }} && go mod tidy
|
||||
|
||||
run-back:
|
||||
cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ server_exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }}
|
||||
|
||||
@@ -36,7 +41,7 @@ gen-back:
|
||||
watch-back:
|
||||
watchexec -r -e go,yaml,tpl -i '.devenv/**' -i '.direnv/**' -i 'client/**' -i 'vendor/**' 'go build -o {{ server_exec_path }} . && cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ server_exec_path }}'
|
||||
|
||||
dev: clean install gen-back
|
||||
dev: clean install generate
|
||||
devenv up --verbose
|
||||
|
||||
dev-client-cms: install-cms
|
||||
|
||||
Reference in New Issue
Block a user