chore(repo): clean root and move docs

- Move docs to docs/; keep areas for prompts only
- Relocate Makefile to scripts/Makefile; update docs to use it
- Move ci.Dockerfile to docker/ci.Dockerfile; update compose
- Move commitlint config to .config and update hook
- Remove root AGENTS.md (use area AGENTS.md)
This commit is contained in:
2025-09-10 18:00:50 -05:00
parent d381070c75
commit a00b6a8782
15 changed files with 61 additions and 45 deletions

39
scripts/Makefile Normal file
View File

@@ -0,0 +1,39 @@
SHELL := /usr/bin/env bash
.PHONY: all check quick format lint build test security ci-image hooks-setup prompts prompts-check
all: check
check:
./scripts/ci all
quick:
./scripts/ci format && ./scripts/ci lint
format:
./scripts/ci format
lint:
./scripts/ci lint
build:
./scripts/ci build
test:
./scripts/ci test
security:
./scripts/ci security
ci-image:
docker build -f docker/ci.Dockerfile -t local/ci:latest .
hooks-setup:
./scripts/setup-hooks
prompts:
./scripts/prompts all
prompts-check:
./scripts/prompts lint

View File

@@ -6,5 +6,4 @@ MSG_FILE="${1:-.git/COMMIT_EDITMSG}"
# Run commitlint inside the CI container against the commit message file
docker compose -f docker/ci.compose.yml run --rm \
-e IN_CI_CONTAINER=1 \
ci bash -lc "commitlint --edit ${MSG_FILE}"
ci bash -lc "commitlint --config .config/commitlint.config.cjs --edit ${MSG_FILE}"