mirror of
https://github.com/maplibre/martin.git
synced 2024-12-23 23:11:40 +03:00
31 lines
584 B
Makefile
31 lines
584 B
Makefile
#!/usr/bin/env just --justfile
|
|
|
|
set shell := ["bash", "-c"]
|
|
|
|
dockercompose := `if docker-compose --version &> /dev/null; then echo "docker-compose"; else echo "docker compose"; fi`
|
|
|
|
@_default:
|
|
just --list --unsorted
|
|
|
|
clean:
|
|
rm -rf frontend/node_modules
|
|
|
|
up:
|
|
{{dockercompose}} up
|
|
|
|
up-build:
|
|
{{dockercompose}} up --build
|
|
|
|
build:
|
|
{{dockercompose}} build
|
|
|
|
up-backend:
|
|
{{dockercompose}} up db tiles --detach
|
|
|
|
frontend *ARGS:
|
|
{{dockercompose}} up frontend {{ARGS}}
|
|
|
|
[no-exit-message]
|
|
frontend-sh:
|
|
{{dockercompose}} run --interactive --entrypoint sh frontend
|