farmOS/composer.project.json

34 lines
962 B
JSON
Raw Normal View History

{
"require": {
"cweagans/composer-patches": "^1.7",
2023-11-01 20:15:46 +01:00
"drupal/core-composer-scaffold": "10.1.6"
},
"require-dev": {
Explode drupal/core-dev require-dev dependency into the minimum packages we need. The drupal/core-dev package is simply a shortcut for including dependencies necessary for running automated tests. See https://github.com/drupal/core-dev/blob/9.4.x/composer.json It is designed specifically for running Drupal core automated tests. We used it as a simple way to get our automated tests running initially, but it includes some dependencies that we do not need. It also pins some package versions, including symfony/finder and symfony/filesystem. This caused an issue for us when we refactored our composer.json files to use composer-merge-plugin. We got around this issue by pinning symfony/finder to ^4. See https://www.drupal.org/project/farm/issues/3239420 See https://github.com/farmOS/farmOS/commit/bd33d0f139b67d291fa9a4bbf743173f323a767c Furthermore, in testing Drush 11, I discovered that a similar conflict started occurring with symfony/filesystem (presumably because Drush depends on that as well now). I eventually managed to get it to work by pinning symfony/filesystem as well, but only if I moved both pins to the root farmOS composer.json (it didn't fix it if they were in composer.project.json). That is what ultimately drove me to dig into this and decide to split up our dependency on drupal/core-dev. By removing the dependency on drupal/core-dev, we no longer have the issue with symfony/finder, so that pinned dependency can be removed. I repeatedly ran tests with as few of the drupal/core-dev dependencies as possible until tests started passing again. So this final list represents the minimum requirements for our tests.
2022-11-27 17:52:00 +01:00
"behat/mink": "^1.10",
2023-01-01 22:17:04 +01:00
"behat/mink-browserkit-driver": "^2.1",
Explode drupal/core-dev require-dev dependency into the minimum packages we need. The drupal/core-dev package is simply a shortcut for including dependencies necessary for running automated tests. See https://github.com/drupal/core-dev/blob/9.4.x/composer.json It is designed specifically for running Drupal core automated tests. We used it as a simple way to get our automated tests running initially, but it includes some dependencies that we do not need. It also pins some package versions, including symfony/finder and symfony/filesystem. This caused an issue for us when we refactored our composer.json files to use composer-merge-plugin. We got around this issue by pinning symfony/finder to ^4. See https://www.drupal.org/project/farm/issues/3239420 See https://github.com/farmOS/farmOS/commit/bd33d0f139b67d291fa9a4bbf743173f323a767c Furthermore, in testing Drush 11, I discovered that a similar conflict started occurring with symfony/filesystem (presumably because Drush depends on that as well now). I eventually managed to get it to work by pinning symfony/filesystem as well, but only if I moved both pins to the root farmOS composer.json (it didn't fix it if they were in composer.project.json). That is what ultimately drove me to dig into this and decide to split up our dependency on drupal/core-dev. By removing the dependency on drupal/core-dev, we no longer have the issue with symfony/finder, so that pinned dependency can be removed. I repeatedly ran tests with as few of the drupal/core-dev dependencies as possible until tests started passing again. So this final list represents the minimum requirements for our tests.
2022-11-27 17:52:00 +01:00
"behat/mink-selenium2-driver": "^1.6",
"drupal/coder": "^8.3",
"mglaman/phpstan-drupal": "^1.1",
Explode drupal/core-dev require-dev dependency into the minimum packages we need. The drupal/core-dev package is simply a shortcut for including dependencies necessary for running automated tests. See https://github.com/drupal/core-dev/blob/9.4.x/composer.json It is designed specifically for running Drupal core automated tests. We used it as a simple way to get our automated tests running initially, but it includes some dependencies that we do not need. It also pins some package versions, including symfony/finder and symfony/filesystem. This caused an issue for us when we refactored our composer.json files to use composer-merge-plugin. We got around this issue by pinning symfony/finder to ^4. See https://www.drupal.org/project/farm/issues/3239420 See https://github.com/farmOS/farmOS/commit/bd33d0f139b67d291fa9a4bbf743173f323a767c Furthermore, in testing Drush 11, I discovered that a similar conflict started occurring with symfony/filesystem (presumably because Drush depends on that as well now). I eventually managed to get it to work by pinning symfony/filesystem as well, but only if I moved both pins to the root farmOS composer.json (it didn't fix it if they were in composer.project.json). That is what ultimately drove me to dig into this and decide to split up our dependency on drupal/core-dev. By removing the dependency on drupal/core-dev, we no longer have the issue with symfony/finder, so that pinned dependency can be removed. I repeatedly ran tests with as few of the drupal/core-dev dependencies as possible until tests started passing again. So this final list represents the minimum requirements for our tests.
2022-11-27 17:52:00 +01:00
"mikey179/vfsstream": "^1.6",
"phpstan/extension-installer": "^1.1",
"phpcompatibility/php-compatibility": "^9",
"phpstan/phpstan": "^1.8",
"phpstan/phpstan-deprecation-rules": "^1.0",
Explode drupal/core-dev require-dev dependency into the minimum packages we need. The drupal/core-dev package is simply a shortcut for including dependencies necessary for running automated tests. See https://github.com/drupal/core-dev/blob/9.4.x/composer.json It is designed specifically for running Drupal core automated tests. We used it as a simple way to get our automated tests running initially, but it includes some dependencies that we do not need. It also pins some package versions, including symfony/finder and symfony/filesystem. This caused an issue for us when we refactored our composer.json files to use composer-merge-plugin. We got around this issue by pinning symfony/finder to ^4. See https://www.drupal.org/project/farm/issues/3239420 See https://github.com/farmOS/farmOS/commit/bd33d0f139b67d291fa9a4bbf743173f323a767c Furthermore, in testing Drush 11, I discovered that a similar conflict started occurring with symfony/filesystem (presumably because Drush depends on that as well now). I eventually managed to get it to work by pinning symfony/filesystem as well, but only if I moved both pins to the root farmOS composer.json (it didn't fix it if they were in composer.project.json). That is what ultimately drove me to dig into this and decide to split up our dependency on drupal/core-dev. By removing the dependency on drupal/core-dev, we no longer have the issue with symfony/finder, so that pinned dependency can be removed. I repeatedly ran tests with as few of the drupal/core-dev dependencies as possible until tests started passing again. So this final list represents the minimum requirements for our tests.
2022-11-27 17:52:00 +01:00
"phpunit/phpunit": "^9",
"phpspec/prophecy-phpunit": "^2",
2023-01-01 22:17:04 +01:00
"symfony/phpunit-bridge": "^6.2"
},
"conflict": {
"drupal/drupal": "*"
},
"extra": {
"composer-exit-on-patch-failure": true,
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"enable-patching": true
}
}