Skip to content

Update ignore and export rules for project files#125

Merged
theaminulai merged 1 commit intodevelopmentfrom
Update-ignore-and-export-rules-for-project-files
Jan 24, 2026
Merged

Update ignore and export rules for project files#125
theaminulai merged 1 commit intodevelopmentfrom
Update-ignore-and-export-rules-for-project-files

Conversation

@theaminulai
Copy link
Owner

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.

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.
Copilot AI review requested due to automatic review settings January 24, 2026 12:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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’s archive.exclude list to omit dev-only directories (e.g., dev-docs, dev-note, docs, src) and common config/docs files from Composer-generated archives.
  • Reworked .gitattributes to explicitly mark the same dev/config/docs directories and files as export-ignore for git archive ZIP exports.
  • Simplified and reorganized .distignore to 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.

@theaminulai theaminulai merged commit d3bda09 into development Jan 24, 2026
9 of 10 checks passed
github-actions bot added a commit that referenced this pull request Jan 24, 2026
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