1.9 KiB
1.9 KiB
| description |
|---|
| Check project prerequisites, offer to install missing tools, and configure git hooks. |
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Outline
- Read the
README.mdto understand the project's requirements. - Check if the following tools are installed and report their status:
- Just task runner — run
just --version - Java JDK 25 — run
java --version - Maven (or
mvnwwrapper) — run./mvnw --versionfrometl/ - Node.js 22+ — run
node --version - pnpm — run
pnpm --version - Python 3.x — run
python3 --versionorpython --version - uv (Python package manager) — run
uv --version - pre-commit — run
pre-commit --version - commitizen — run
cz version - Podman (or Docker) — run
podman --versionordocker --version - docker-compose — run
docker-compose --version
- Just task runner — run
- Present a summary table to the user showing each tool, its required version, and whether it is installed (with detected version) or missing.
- For any missing tools, suggest installation commands but do NOT install them without the user's approval.
- After the user has confirmed prerequisites are met, run the setup:
- Run
just setupto install commitizen and pre-commit globally and configure git hooks. - If
justis not available, run the equivalent commands manually:pnpm install -g commitizenpnpm install -g pre-commitpre-commit installpre-commit install --hook-type commit-msgpre-commit install --hook-type pre-push
- Run
- Verify hooks are installed:
- Check that
.git/hooks/pre-commitexists - Check that
.git/hooks/commit-msgexists (required for commitizen conventional commit validation) - Check that
.git/hooks/pre-pushexists
- Check that
- Report the setup result to the user.