Skip to content

Comments

feat: add developer productivity commands#356

Open
Chemaclass wants to merge 6 commits intomainfrom
feat/developer-commands
Open

feat: add developer productivity commands#356
Chemaclass wants to merge 6 commits intomainfrom
feat/developer-commands

Conversation

@Chemaclass
Copy link
Member

TL;DR

Adds developer productivity commands for IDE integration, automated documentation generation, file watching, and interactive module exploration to improve development workflow.

Summary

  • generate:ide-helper command for PHPStorm meta file generation with autocomplete support
  • docs:generate command for automatic module documentation generation
  • dev:watch command for file watching during development with auto-reload capability
  • explore command for interactive module inspection and navigation
  • IDE helper infrastructure for better autocomplete and type hints
  • Documentation generator for automated API docs
  • File watcher for development workflow improvements

Key Features

IDE Integration:

  • Generate .phpstorm.meta.php for better PHPStorm autocomplete
  • Type hints for facade and factory methods
  • Improved code navigation and refactoring support

Documentation Generation:

  • Auto-generate module documentation from code
  • Extract dependencies, services, and configurations
  • Markdown output for easy integration

Development Workflow:

  • Watch files for changes during development
  • Auto-reload on file modifications
  • Interactive module exploration with search and filtering

Interactive Exploration:

  • Browse all modules in the project
  • Inspect module structure and dependencies
  • Search for specific modules or components

Commands

# Generate IDE helper file
vendor/bin/gacela generate:ide-helper

# Generate documentation
vendor/bin/gacela docs:generate

# Watch files during development
vendor/bin/gacela dev:watch

# Explore modules interactively
vendor/bin/gacela explore

Chemaclass and others added 6 commits February 13, 2026 11:07
Add suite of developer productivity commands for IDE integration,
documentation generation, file watching, and module exploration.

Key features:
- generate:ide-helper command for PHPStorm meta file generation
- docs:generate command for automatic module documentation
- dev:watch command for file watching with auto-reload
- explore command for interactive module inspection
- IdeHelperGenerator for IDE autocomplete support
- DocumentationGenerator for automated docs
- FileWatcher for development workflow
- Enhanced .phpstorm.meta.php for better IDE support

These commands improve developer experience through better IDE
integration, automated documentation, and interactive exploration.
- Add file watcher methods (initializeFileWatcher, detectFileChanges)
- Add IDE helper generation (generateIdeHelperMeta)
- Add documentation generation (generateModuleDocumentation)
- Add development cache clearing (clearDevelopmentCaches)
- Modify commands to work without dependency analyzer (will be added in future PR)
- Fix PHPStan errors in FileWatcher and DocumentationGenerator
- Regenerate Psalm baseline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant