Skip to content

1.0.8

Latest

Choose a tag to compare

@doxigo doxigo released this 10 Jun 08:22

Automatic Template Reference Updates

Screenshot of drupal-radix-cli add component - Enhanced Component Addition: When adding components using the `add` command, the CLI now automatically scans for *.html.twig template files in the /templates directory - Smart Reference Replacement: Automatically replaces `radix:COMPONENTNAME` references with `THEMENAME:COMPONENTNAME` to match your current theme - Comprehensive Scanning: Recursively searches through all subdirectories in the templates folder - User Feedback: Displays a list of all updated template files after successful component addition

New Command Flag

  • --no-template Flag: Added optional flag to skip automatic template updates when adding components
  • Flexible Workflow: Allows users to add components without modifying existing templates when needed

Documentation Updates

  • Updated README.md with comprehensive documentation for the new features
  • Added usage examples for the --no-template flag
  • Documented the automatic template update behavior

🔧 Command Usage

# Default behavior (with template updates)
npx drupal-radix-cli add button

# Skip template updates
npx drupal-radix-cli add button --no-template