-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (44 loc) · 2.17 KB
/
Makefile
File metadata and controls
54 lines (44 loc) · 2.17 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: help setup doctor dev test build lint clean format
# Default variables
APP_NAME := bootstrap
help: ## Show available make targets
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
setup: ## Interactive first-time setup wizard
@bash ./scripts/setup-env.sh
@bash ./scripts/setup-ai-tools.sh
@if [ -d .githooks ]; then \
git config core.hooksPath .githooks; \
chmod +x .githooks/*; \
echo "✅ Git hooks configured."; \
fi
@chmod +x scripts/*.sh 2>/dev/null || true
@echo ""
@echo "────────────────────────────────────────"
@echo " Next steps:"
@echo " gh auth login — Authenticate GitHub CLI"
@echo " claude — Start Claude CLI"
@echo " gemini — Start Gemini CLI"
@echo "────────────────────────────────────────"
@echo ""
@echo "✅ Setup complete. Run 'make' to see all available commands."
doctor: ## Check environment health and status
@bash ./scripts/doctor.sh
dev: ## Start the development server
@echo "Dev target not implemented yet — update after choosing your tech stack"
test: ## Run the test suite
@echo "Test target not implemented yet — update after choosing your tech stack"
build: ## Create a production build
@echo "Build target not implemented yet — update after choosing your tech stack"
lint: ## Run code formatting & linting
@echo "🔍 Linting shell scripts..."
@shellcheck scripts/*.sh templates/scripts/*.sh || (echo "❌ Shellcheck failed. Fix errors above." && exit 1)
@echo "🔍 Checking file formatting..."
@npx -y prettier --check "**/*.{md,json,yml}" || (echo "❌ Formatting check failed. Run 'make format' to fix." && exit 1)
@echo "✅ All lint checks passed."
format: ## Format all files
@echo "🧹 Formatting files..."
@npx -y prettier --write "**/*.{md,json,yml}"
@echo "✅ Formatting complete."
clean: ## Remove build artifacts
@echo "Clean target not implemented yet — update after choosing your tech stack"