Mod justfile to auto swag init when go files changed
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2
justfile
2
justfile
@@ -39,7 +39,7 @@ gen-back:
|
|||||||
cd {{ project_dir }} && go generate .
|
cd {{ project_dir }} && go generate .
|
||||||
|
|
||||||
watch-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 }}'
|
watchexec -r -e go,yaml,tpl -i '.devenv/**' -i '.direnv/**' -i 'client/**' -i 'vendor/**' 'swag init && go build -o {{ server_exec_path }} . && cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ server_exec_path }}'
|
||||||
|
|
||||||
dev: clean install generate
|
dev: clean install generate
|
||||||
devenv up --verbose
|
devenv up --verbose
|
||||||
|
|||||||
Reference in New Issue
Block a user