From e3ac6a6cd2754de356cb30df47a947b6414f63ca Mon Sep 17 00:00:00 2001 From: Nicolas Joubert Date: Wed, 14 Oct 2026 15:22:16 +0200 Subject: [PATCH] #154 - Add a .gitattributes to exclude the development files from the 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) --- .gitattributes | 10 ++++++++++ CHANGELOG.md | 1 + package.json | 25 ------------------------- 3 files changed, 11 insertions(+), 25 deletions(-) create mode 100644 .gitattributes delete mode 100644 package.json diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3be3ece --- /dev/null +++ b/.gitattributes @@ -0,0 +1,10 @@ +/.docker export-ignore +/.gitattributes export-ignore +/.github export-ignore +/.gitignore export-ignore +/.php-cs-fixer.dist.php export-ignore +/Makefile export-ignore +/phpstan.neon export-ignore +/phpunit.xml.dist export-ignore +/rector.php export-ignore +/tests export-ignore diff --git a/CHANGELOG.md b/CHANGELOG.md index efcd588..cbb642e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ Latest ------ ## Changes +* [#154](https://github.com/cleverage/ui-process-bundle/issues/154) Add a `.gitattributes`: the development files (`.docker/`, `.github/`, `tests/`, quality tools and PHPUnit configurations, `Makefile`) are no longer part of the archive installed by Composer (`dist`), remove the unused `package.json` (Webpack Encore leftover of the Symfony skeleton: no `webpack.config.js`, no `assets/`). * [#149](https://github.com/cleverage/ui-process-bundle/issues/149) Clean up composer.json: remove the unused `symfony/dotenv`, `symfony/runtime`, `ext-ctype` and `ext-iconv` requirements (applications relying on the bundle to install `symfony/dotenv` / `symfony/runtime` must require them, as the Symfony skeleton does); replace `doctrine/common` by `doctrine/collections` (only `ArrayCollection` is used); require `twig/twig`, `symfony/twig-bundle`, `psr/log`, `doctrine/persistence`, `doctrine/migrations` and `symfony/event-dispatcher-contracts`, used directly but only installed transitively; add `twig/extra-bundle` and `symfony/property-access` (used by the tests) to the dev requirements. * [#150](https://github.com/cleverage/ui-process-bundle/issues/150) Require `symfony/monolog-bundle` and `monolog/monolog`, used directly by the bundle (log handlers, `monolog` configuration prepended, `monolog.logger` tags) but only installed through `cleverage/process-bundle`, which may stop requiring MonologBundle (cleverage/process-bundle#269). diff --git a/package.json b/package.json deleted file mode 100644 index 1617b46..0000000 --- a/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "devDependencies": { - "@symfony/stimulus-bridge": "^2.0.0", - "@symfony/webpack-encore": "^1.0.0", - "core-js": "^3.0.0", - "regenerator-runtime": "^0.13.2", - "sass": "^1.34.1", - "stimulus": "^2.0.0", - "webpack-notifier": "^1.6.0" - }, - "license": "UNLICENSED", - "private": true, - "scripts": { - "dev-server": "encore dev-server", - "dev": "encore dev", - "watch": "encore dev --watch", - "build": "encore production --progress" - }, - "dependencies": { - "@popperjs/core": "^2.9.2", - "bootstrap": "^5.0.1", - "font-awesome": "^4.7.0", - "sass-loader": "11" - } -}