Skip to content

Feature/v2 Absorb Elayne Cli#1

Merged
jasperf merged 3 commits intomainfrom
feature/v2-absorb-elayne-cli
May 8, 2026
Merged

Feature/v2 Absorb Elayne Cli#1
jasperf merged 3 commits intomainfrom
feature/v2-absorb-elayne-cli

Conversation

@jasperf
Copy link
Copy Markdown
Contributor

@jasperf jasperf commented May 8, 2026

This PR delivers version 2.0.0 of pt-cli, absorbing the scaffolding functionality from elayne-cli to provide a unified tool for both pattern compliance checking and pattern/structure generation. The update adds four new CLI commands for creating patterns, layouts, and styles, accompanied by 21 ready-to-use template files, 7 layout definitions, 10 CSS pattern styles, and 10 snippet templates. With 59 files changed and over 3,600 lines added, this release transforms pt-cli from a validation-only tool into a complete pattern workflow solution. The changes maintain backward compatibility while establishing pt-cli as the single entry point for the entire pattern development lifecycle.

Scaffolding Commands and Architecture:

  • Adds PatternCreateCommand, PatternListCommand, LayoutCreateCommand, and StyleCreateCommand to src/Commands/Scaffold/ for generating WordPress FSE block theme structures
  • Updates bin/pt-cli entry point to register the new scaffold command group alongside the existing check command
  • Modifies composer.json to reflect the expanded functionality and v2.0.0 version

Template and Layout System:

  • Introduces 21 template files in templates/ covering common patterns (blog-post-columns, hero-cover, stats-bar-fullwidth) and WooCommerce-specific layouts (woo-cart, woo-checkout, woo-product-grid)
  • Adds 7 layout definitions in layouts/ (full-width, hero-image-left/right, landing-page, sidebar-left/right, three-column, two-column) for consistent page structures

Pattern Styles and Snippets:

  • Adds 10 CSS files in css/ providing styling for specific patterns (cta-fullwidth, feature-grid-3col, generic, hero-cover, stats-bar-fullwidth, team-grid, testimonials-grid, woo-filters-sidebar)
  • Introduces 10 snippet templates in snippets/ for common block patterns and valid attribute structures (eyebrow-heading-body, overlay-grid-cover-card, responsive-grid-min-width, valid-button-attr-order, etc.)

Documentation and Version Management:

  • Updates README.md with new scaffolding command usage, examples, and workflow integration
  • Updates CHANGELOG.md with complete v2.0.0 release notes documenting the absorbed elayne-cli functionality and new capabilities

Files Changed:

jasperf added 3 commits May 8, 2026 09:21
Adds pattern:create, layout:create, style:create, and pattern:list commands
from imagewize/elayne-cli. Asset directories (templates/, layouts/, css/,
snippets/) copied verbatim. Namespaces migrated from
Imagewize\ElaynePatternCli\Commands to Imagewize\PtCli\Commands\Scaffold.
Path references updated for the deeper src/Commands/Scaffold/ location.
Binary version bumped to 2.0.0. composer.json description updated.
…ommands

- Update README.md with new scaffolding commands, templates, layouts, snippets
- Add Commands Reference section
- Document Scaffolding Workflow and Compliance Workflow
- List all 23 pattern templates, 8 layouts, 5 style variations, 13 snippets
- Update CHANGELOG.md with detailed v2.0.0 release notes
- Move from [Unreleased] to [2.0.0] - 2026-05-08
- Document all added scaffolding functionality absorbed from elayne-cli
- Note package description change and default command change
@jasperf jasperf merged commit a52a30b into main May 8, 2026
@jasperf jasperf deleted the feature/v2-absorb-elayne-cli branch May 8, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant