chore: add setup-hooks target to Makefile
Add convenient 'make setup-hooks' command for configuring git hooks. This makes onboarding easier for new contributors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
7
Makefile
7
Makefile
@@ -271,6 +271,13 @@ install: ## Initial project setup
|
|||||||
@echo " 2. Run 'make dev' to start development environment"
|
@echo " 2. Run 'make dev' to start development environment"
|
||||||
@echo " 3. Run 'make migrate' to set up database"
|
@echo " 3. Run 'make migrate' to set up database"
|
||||||
|
|
||||||
|
setup-hooks: ## Configure git hooks for code quality
|
||||||
|
@git config core.hooksPath .githooks
|
||||||
|
@chmod +x .githooks/*
|
||||||
|
@echo "✅ Git hooks configured!"
|
||||||
|
@echo " - pre-commit: Auto-formats code with Laravel Pint"
|
||||||
|
@echo " - pre-push: Optionally runs tests before pushing"
|
||||||
|
|
||||||
mailpit: ## Open Mailpit web UI
|
mailpit: ## Open Mailpit web UI
|
||||||
@open http://localhost:8025 || xdg-open http://localhost:8025 || echo "Open http://localhost:8025 in your browser"
|
@open http://localhost:8025 || xdg-open http://localhost:8025 || echo "Open http://localhost:8025 in your browser"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user