initial commit
This commit is contained in:
commit
88c14b627e
224 files changed
+17204
No files matched your search
@@ -0,0 +1,74 @@
|
||||
.DEFAULT_GOAL := help
|
||||
|
||||
SHELL := $(shell command -v bash)
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
|
||||
.PHONY: help install generate gen fmt fmt-check lint test check verify check-generated docs-check
|
||||
|
||||
help: ## Show the main project commands
|
||||
@awk 'BEGIN {FS = ":.*## "} /^[a-zA-Z0-9_-]+:.*## / {printf "%-18s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||
|
||||
install: ## Install project dependencies
|
||||
@status=0; for part in api frontend ml; do \
|
||||
printf '\n==> %s install\n' "$$part"; \
|
||||
$(MAKE) -C "$$part" install || status=1; \
|
||||
done; \
|
||||
printf '\n==> backend deps\n'; \
|
||||
$(MAKE) -C backend deps || status=1; \
|
||||
exit "$$status"
|
||||
|
||||
generate: ## Generate shared contracts, Go and TypeScript code, and Python models
|
||||
$(MAKE) -C api bundle
|
||||
API_PREPARED=1 $(MAKE) -C backend generate
|
||||
API_PREPARED=1 $(MAKE) -C frontend generate
|
||||
API_PREPARED=1 $(MAKE) -C ml generate
|
||||
|
||||
gen: generate ## Alias for generate
|
||||
|
||||
fmt: ## Format all project parts
|
||||
@status=0; for part in api backend frontend ml; do \
|
||||
printf '\n==> %s fmt\n' "$$part"; \
|
||||
$(MAKE) -C "$$part" fmt || status=1; \
|
||||
done; exit "$$status"
|
||||
|
||||
fmt-check: ## Check formatting without changing files
|
||||
@status=0; for part in api backend frontend ml; do \
|
||||
printf '\n==> %s fmt-check\n' "$$part"; \
|
||||
$(MAKE) -C "$$part" fmt-check || status=1; \
|
||||
done; exit "$$status"
|
||||
|
||||
lint: ## Run configured linters
|
||||
@status=0; for part in api backend frontend ml; do \
|
||||
printf '\n==> %s lint\n' "$$part"; \
|
||||
$(MAKE) -C "$$part" lint || status=1; \
|
||||
done; exit "$$status"
|
||||
|
||||
test: ## Run unit and component tests
|
||||
@status=0; for part in backend frontend ml; do \
|
||||
printf '\n==> %s test\n' "$$part"; \
|
||||
$(MAKE) -C "$$part" test || status=1; \
|
||||
done; exit "$$status"
|
||||
|
||||
check: ## Run local checks for code, docs, deployment, and observability
|
||||
@status=0; for part in api backend frontend ml deploy observability; do \
|
||||
printf '\n==> %s check\n' "$$part"; \
|
||||
$(MAKE) -C "$$part" check || status=1; \
|
||||
done; \
|
||||
printf '\n==> docs-check\n'; \
|
||||
$(MAKE) docs-check || status=1; \
|
||||
exit "$$status"
|
||||
|
||||
verify: ## Run full checks, generated drift, and an isolated technical smoke
|
||||
$(MAKE) generate
|
||||
$(MAKE) check-generated
|
||||
$(MAKE) check
|
||||
$(MAKE) -C api check-toolchain
|
||||
$(MAKE) -C backend test-race
|
||||
$(MAKE) -C backend test-int
|
||||
$(MAKE) -C deploy smoke
|
||||
|
||||
check-generated: ## Fail when generated files differ from committed output
|
||||
@python3 scripts/check-generated.py
|
||||
|
||||
docs-check: ## Check documentation structure and local links
|
||||
@python3 scripts/docs-check.py
|
||||
Reference in new issue
Block a user