Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
PatternCreateCommand,PatternListCommand,LayoutCreateCommand, andStyleCreateCommandtosrc/Commands/Scaffold/for generating WordPress FSE block theme structuresbin/pt-clientry point to register the new scaffold command group alongside the existing check commandcomposer.jsonto reflect the expanded functionality and v2.0.0 versionTemplate and Layout System:
templates/covering common patterns (blog-post-columns, hero-cover, stats-bar-fullwidth) and WooCommerce-specific layouts (woo-cart, woo-checkout, woo-product-grid)layouts/(full-width, hero-image-left/right, landing-page, sidebar-left/right, three-column, two-column) for consistent page structuresPattern Styles and Snippets:
css/providing styling for specific patterns (cta-fullwidth, feature-grid-3col, generic, hero-cover, stats-bar-fullwidth, team-grid, testimonials-grid, woo-filters-sidebar)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:
README.mdwith new scaffolding command usage, examples, and workflow integrationCHANGELOG.mdwith complete v2.0.0 release notes documenting the absorbed elayne-cli functionality and new capabilitiesFiles Changed:
CHANGELOG.md(Modified)README.md(Modified)bin/pt-cli(Modified)composer.json(Modified)css/cta-fullwidth.css(Added)css/feature-grid-3col.css(Added)css/generic.css(Added)css/hero-cover.css(Added)css/stats-bar-fullwidth.css(Added)css/team-grid.css(Added)css/testimonials-grid.css(Added)css/woo-filters-sidebar.css(Added)layouts/full-width.php(Added)layouts/hero-image-left.php(Added)layouts/hero-image-right.php(Added)layouts/landing-page.php(Added)layouts/sidebar-left.php(Added)layouts/sidebar-right.php(Added)layouts/three-column.php(Added)layouts/two-column.php(Added)snippets/3col-grid-wrapper.txt(Added)snippets/eyebrow-heading-body.txt(Added)snippets/overlay-grid-cover-card.txt(Added)snippets/responsive-grid-min-width.txt(Added)snippets/stat-item.txt(Added)snippets/testimonial-card.txt(Added)snippets/two-button-group.txt(Added)snippets/valid-button-attr-order.txt(Added)snippets/valid-columns-wp66.txt(Added)snippets/valid-cover.txt(Added)snippets/valid-fullwidth-section.txt(Added)snippets/valid-heading-with-preset.txt(Added)src/Commands/Scaffold/LayoutCreateCommand.php(Added)src/Commands/Scaffold/PatternCreateCommand.php(Added)src/Commands/Scaffold/PatternListCommand.php(Added)src/Commands/Scaffold/StyleCreateCommand.php(Added)templates/blog-post-columns.php(Added)templates/cta-fullwidth.php(Added)templates/feature-grid-3col.php(Added)templates/footer-standard.php(Added)templates/header-standard.php(Added)templates/hero-cover.php(Added)templates/pricing-comparison.php(Added)templates/stats-bar-fullwidth.php(Added)templates/team-grid.php(Added)templates/testimonials-grid.php(Added)templates/two-column-text-image.php(Added)templates/woo-cart.php(Added)templates/woo-checkout.php(Added)templates/woo-featured-products.php(Added)templates/woo-filters-sidebar.php(Added)templates/woo-hero.php(Added)templates/woo-newsletter.php(Added)templates/woo-our-story.php(Added)templates/woo-product-grid.php(Added)templates/woo-shop-categories.php(Added)templates/woo-shop-landing.php(Added)templates/woo-testimonials.php(Added)templates/woo-ticker.php(Added)