Skip to content

#154 - Add a .gitattributes to exclude the development files from the Composer archive, remove the unused package.json - #155

Merged
njoubert-cleverage merged 1 commit into
mainfrom
154
Oct 14, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
154

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #154: same change as cleverage/process-bundle#270 (PR cleverage/process-bundle#285).

Changes

  • .gitattributes with export-ignore for .docker/, .github/, tests/, .gitattributes, .gitignore, .php-cs-fixer.dist.php, Makefile, phpstan.neon, phpunit.xml.dist, rector.php.
    Archive installed by Composer (git archive), root entries: 22 → 12 (src/, config/, templates/, translations/, public/, docs/, composer.json, README.md, UPGRADE.md, LICENSE, CHANGELOG.md, CONTRIBUTING.md); tests/ alone was 103 entries. docs/ is kept, as in process-bundle, so that the documentation stays readable from vendor/.
  • Remove package.json: Webpack Encore / Stimulus / Bootstrap / Sass dependencies, leftover of the Symfony skeleton the bundle was created from. No webpack.config.js, no assets/ directory, no template loads an Encore entry or an importmap, and nothing refers to it (CI, Dependabot, Makefile, docs).
  • Checked, not changed: templates/components/BootstrapModal.html.twig sets data-controller="bootstrap-modal", a Stimulus controller the bundle does not ship. The modal works without it (opened with data-bs-toggle="modal", Bootstrap JS loaded by EasyAdmin). Kept, as an application may provide such a controller (it is the example of the Symfony UX TwigComponent documentation); to remove in a separate change if we prefer.
  • CHANGELOG (Latest).

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None: no runtime file removed. A --prefer-dist install no longer contains the tests and the development configuration files (--prefer-source still does).

🤖 Generated with Claude Code

… Composer archive, remove the unused package.json

Same change as cleverage/process-bundle#270: export-ignore .docker/, .github/,
tests/, .gitattributes, .gitignore, .php-cs-fixer.dist.php, Makefile,
phpstan.neon, phpunit.xml.dist and rector.php. docs/ is kept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit e9b6d06 into main Oct 14, 2026
24 checks passed
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.

Add a .gitattributes to exclude the development files from the Composer archive, remove the unused package.json

1 participant