-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) Β· 954 Bytes
/
Makefile
File metadata and controls
34 lines (27 loc) Β· 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: ai-checks format lint test secrets build help
help:
@echo "Available targets:"
@echo " ai-checks - Run format, lint, test, and secrets in sequence"
@echo " format - Format code with Prettier"
@echo " lint - Lint code with ESLint"
@echo " test - Run tests with Vitest"
@echo " secrets - Scan for secrets with Gitleaks"
@echo " build - Build distribution bundle"
ai-checks: format lint test secrets
@echo "β
All checks passed"
format:
@echo "π¨ Running formatter..."
@npm run format
lint:
@echo "π Running linter..."
@npm run lint
test:
@echo "π§ͺ Running tests..."
@npm test
secrets:
@echo "π Scanning for secrets..."
@command -v gitleaks >/dev/null 2>&1 || { echo "β gitleaks not installed. Install: brew install gitleaks"; exit 1; }
@gitleaks detect --no-git --source . --verbose --report-path gitleaks-report.json
build:
@echo "π¦ Building distribution..."
@npm run build