mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-01-30 04:32:02 +00:00
* docs: fix docs build * docs: conditional pre-commit * fix: included more LLM exclude patterns * fix: iclude docs:build --------- Co-authored-by: Brian <bmadcode@gmail.com>
21 lines
447 B
Bash
Executable File
21 lines
447 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Auto-fix changed files and stage them
|
|
npx --no-install lint-staged
|
|
|
|
# Validate everything
|
|
npm test
|
|
|
|
# Validate docs links only when docs change
|
|
if command -v rg >/dev/null 2>&1; then
|
|
if git diff --cached --name-only | rg -q '^docs/'; then
|
|
npm run docs:validate-links
|
|
npm run docs:build
|
|
fi
|
|
else
|
|
if git diff --cached --name-only | grep -Eq '^docs/'; then
|
|
npm run docs:validate-links
|
|
npm run docs:build
|
|
fi
|
|
fi
|