Add cleaning output dir for client and backend build/dev
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
8
justfile
8
justfile
@@ -19,12 +19,12 @@ clean:
|
||||
find .outputs -mindepth 1 ! -path .outputs/config.yaml -exec rm -rf {} +
|
||||
|
||||
client:
|
||||
cd {{ client_dir }} && {{ pnpm_cmd }} dev
|
||||
cd {{ client_dir }} && {{ pnpm_cmd }} run dev
|
||||
|
||||
build-client:
|
||||
build-client: clean
|
||||
cd {{ client_dir }} && {{ pnpm_cmd }} run build --outDir {{ join(output_dir, "static") }}
|
||||
|
||||
build-back:
|
||||
build-back: clean
|
||||
{{ go_cmd }} build -o {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_enrty }}
|
||||
|
||||
run-back:
|
||||
@@ -39,5 +39,5 @@ watch-back: clean
|
||||
dev: clean install
|
||||
devenv up --verbose
|
||||
|
||||
dev-back:
|
||||
dev-back: clean
|
||||
devenv up backend postgres redis meilisearch --verbose
|
||||
|
||||
Reference in New Issue
Block a user