Skip to content

Add Gitattributes#36

Open
jasperf wants to merge 2 commits into
mainfrom
add-gitattributes
Open

Add Gitattributes#36
jasperf wants to merge 2 commits into
mainfrom
add-gitattributes

Conversation

@jasperf
Copy link
Copy Markdown
Contributor

@jasperf jasperf commented May 26, 2026

This release introduces a .gitattributes configuration file to control which files and directories are excluded from Packagist distribution archives, and bumps the plugin version to 2.7.2. The primary motivation is ensuring the patterns/ directory is retained in distributed packages, as it is required for block pattern registration at runtime. Without this correction, installations via Composer would receive incomplete packages missing the pattern files necessary for mega menu template part workflows. The version increment is reflected consistently across elayne-blocks.php, readme.txt, and CHANGELOG.md.

Distribution and Packaging:

  • Added .gitattributes to define export-ignore rules, excluding development-only files (e.g., node sources, test configs) while explicitly preserving patterns/ in the archive.
  • The patterns/ directory must be present in distributed builds because the plugin registers block patterns from that directory at runtime — omitting it breaks mega menu pattern availability for end users.

Version Management:

  • Bumped plugin version to 2.7.2 across all three required files: the plugin header and ELAYNE_BLOCKS_VERSION constant in elayne-blocks.php, the Stable tag in readme.txt, and the new changelog entry in CHANGELOG.md.
  • The changelog entry documents the .gitattributes addition and the patterns/ distribution fix as the sole changes in this patch release.

Files Changed:

jasperf added 2 commits May 26, 2026 17:52
Excludes dev files (patterns/, .playwright-mcp, phpunit configs,
.editorconfig, .npmrc, test files) from Packagist/git-archive exports.
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