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:
39
scripts/Makefile
Normal file
39
scripts/Makefile
Normal 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
|
||||
|
@@ -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}"
|
||||
|
Reference in New Issue
Block a user