chore: docker compose dev
TS Lint / Oxlint (push) Successful in 40s
TS Lint / TypeScript (push) Successful in 46s
TS Lint / ESLint (push) Successful in 46s

This commit is contained in:
2026-06-30 23:20:58 +02:00
parent c92f337006
commit deba8a73f9
4 changed files with 70 additions and 7 deletions
+41 -6
View File
@@ -7,18 +7,24 @@ ifeq (,$(shell which uv))
UV ?= python3 -m uv
endif
UV ?= uv
RUFF ?= $(UV) run --active ruff
TY ?= $(UV) run --active ty
ifeq (,$(shell which bun))
NPM ?= npm
endif
UV ?= uv
RUFF ?= $(UV) run --active ruff
TY ?= $(UV) run --active ty
UNITTEST ?= $(UV) run --active -m unittest
COVERAGE ?= $(UV) run --active coverage
OPEN ?= xdg-open
NPM ?= bun
ifeq (,$(shell which podman))
DOCKER ?= docker
endif
DOCKER ?= podman
OPEN ?= xdg-open
# DOCS
.PHONY: help
@@ -60,6 +66,15 @@ format: ruff-fix ruff-format npm-run-lint-fix ## format project
.PHONY: lint
lint: ruff ruff-format-check ty npm-run-lint npm-run-type-check ## lint project
.PHONY: start
start: docker-compose-up
.PHONY: stop
stop: docker-compose-down
.PHONY: logs
logs: docker-compose-logs
# TOOLS
.PHONY: uv-sync
@@ -102,6 +117,26 @@ npm-update: ## npm update
npm-run-%: node_modules ## npm run (script)
$(NPM) run $*
.PHONY: docker-compose-up
docker-compose-up: ## docker compose up
$(DOCKER) compose up -d
.PHONY: docker-compose-up-%
docker-compose-up-%: ## docker compose up (container)
$(DOCKER) compose up -d $*
.PHONY: docker-compose-down
docker-compose-down: ## docker compose down
$(DOCKER) compose down --remove-orphans
.PHONY: docker-compose-down-%
docker-compose-down-%: ## docker compose down (container)
$(DOCKER) compose down --remove-orphans $*
.PHONY: docker-compose-logs
docker-compose-logs: ## docker compose logs
$(DOCKER) compose logs -f || true
.PHONY: release-%
release-%: .venv ## release major/minor/patch
$(UV) version --bump=$*