Update ignore and export rules for project files#125
Merged
theaminulai merged 1 commit intodevelopmentfrom Jan 24, 2026
Merged
Conversation
Refined .distignore, .gitattributes, and composer.json to consistently exclude development, configuration, and documentation files and directories from distributions and exports. This improves package cleanliness and ensures only necessary files are included in releases.
There was a problem hiding this comment.
Pull request overview
This PR aligns Composer, Git attributes, and WordPress distribution ignore rules so that development, configuration, and documentation artifacts are consistently excluded from release packages and exports.
Changes:
- Expanded
composer.json’sarchive.excludelist to omit dev-only directories (e.g.,dev-docs,dev-note,docs,src) and common config/docs files from Composer-generated archives. - Reworked
.gitattributesto explicitly mark the same dev/config/docs directories and files asexport-ignoreforgit archiveZIP exports. - Simplified and reorganized
.distignoreto mirror the same sets of directories and files for WordPress plugin release builds.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
composer.json |
Updates archive.exclude so Composer archives exclude dev directories and project metadata/configuration, keeping plugin release ZIPs clean. |
.gitattributes |
Defines a clear list of dev/config/docs directories and files as export-ignore to align Git exports with Composer and .distignore behavior. |
.distignore |
Normalizes directory and file ignore patterns to match Composer and Git export rules, ensuring WordPress distributions omit non-runtime assets. |
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.
Refined .distignore, .gitattributes, and composer.json to consistently exclude development, configuration, and documentation files and directories from distributions and exports. This improves package cleanliness and ensures only necessary files are included in releases.