Skip to content

Update .gitattributes to exclude non-production files from exports - #49

Merged
remyperona merged 1 commit into
developfrom
update/gitattributes-export-ignore
Aug 17, 2026
Merged

remyperona merged 1 commit into
developfrom
update/gitattributes-export-ignore

Conversation

@remyperona

Copy link
Copy Markdown
Contributor

Summary

Updates the .gitattributes export-ignore rules so distribution archives (git archive / Composer dist installs) contain only production files.

  • Added export-ignore for newly introduced dev/test files: .wp-env.json, CLAUDE.md, package.json, package-lock.json, phpcs.xml.dist, phpstan.neon.dist, phpstan-baseline.neon
  • Removed stale bin and vendor entries — no longer tracked after production code moved under src/ (Move production files under src/ directory #44); vendor/ is gitignored
  • Kept: Tests, .editorconfig, .gitattributes, .gitignore, .github, composer.lock, LICENSE, README.md

Verification

git check-attr export-ignore confirms production files (composer.json, wpmedia-phpunit, everything under src/) remain in the archive, while all dev/test files are excluded.

🤖 Generated with Claude Code

Add export-ignore for newly introduced dev/test files (.wp-env.json,
CLAUDE.md, package.json, package-lock.json, phpcs.xml.dist,
phpstan.neon.dist, phpstan-baseline.neon) and drop stale bin/vendor
entries that no longer exist after the move to src/.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@remyperona remyperona self-assigned this Aug 17, 2026
@remyperona
remyperona merged commit 90e5221 into develop Aug 17, 2026
9 checks passed
@remyperona
remyperona deleted the update/gitattributes-export-ignore branch August 17, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant