|
{ |
|
"name": "tplcom/project", |
|
"type": "project", |
|
"description": "Project based on drupal/recommended-project, See manual at drupal.org/node/2718229", |
|
"homepage": "https://www.drupal.org/project/drupal", |
|
"license": "GPL-2.0-or-later", |
|
"require": { |
|
"php": ">=7.4", |
|
"ext-curl": "*", |
|
"ext-json": "*", |
|
"ext-mbstring": "*", |
|
"composer-plugin-api": "^2", |
|
"composer/installers": "^1.9", |
|
"cweagans/composer-patches": "^1.7", |
|
"drupal/admin_toolbar": "^3.0", |
|
"drupal/backup_migrate": "^5.0", |
|
"drupal/core-composer-scaffold": "^9.2", |
|
"drupal/core-project-message": "^9.2", |
|
"drupal/core-recommended": "^9.2", |
|
"drupal/environment_indicator": "^4.0", |
|
"drush/drush": "^10.2", |
|
"oomphinc/composer-installers-extender": "^2.0" |
|
}, |
|
"require-dev": { |
|
"consolidation/robo": "^1.0.0", |
|
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", |
|
"drupal/coder": "^8.3.1", |
|
"drupal/devel": "^4.1", |
|
"kint-php/kint": "^3.3", |
|
"mglaman/phpstan-drupal": "^0.12.7", |
|
"phpstan/phpstan": "^0.12.66", |
|
"phpunit/phpunit": "^8", |
|
"symfony/phpunit-bridge": "^5.0", |
|
"weitzman/drupal-test-traits": "^1.3" |
|
}, |
|
"conflict": { |
|
"drupal/drupal": "*" |
|
}, |
|
"config": { |
|
"preferred-install": "dist", |
|
"sort-packages": true, |
|
"optimize-autoloader": true |
|
}, |
|
"extra": { |
|
"composer-exit-on-patch-failure": true, |
|
"drupal-scaffold": { |
|
"locations": { |
|
"web-root": "web/" |
|
}, |
|
"file-mapping": { |
|
"[web-root]/sites/default/default.services.yml": false, |
|
"[web-root]/sites/default/default.settings.php": false |
|
} |
|
}, |
|
"installer-paths": { |
|
"web/core": [ |
|
"type:drupal-core" |
|
], |
|
"web/libraries/{$name}": [ |
|
"type:drupal-library", |
|
"type:npm-asset", |
|
"type:bower-asset" |
|
], |
|
"web/modules/contrib/{$name}": [ |
|
"type:drupal-module" |
|
], |
|
"web/profiles/contrib/{$name}": [ |
|
"type:drupal-profile" |
|
], |
|
"web/themes/contrib/{$name}": [ |
|
"type:drupal-theme" |
|
], |
|
"drush/Commands/contrib/{$name}": [ |
|
"type:drupal-drush" |
|
], |
|
"web/modules/custom/{$name}": [ |
|
"type:drupal-custom-module" |
|
], |
|
"web/themes/custom/{$name}": [ |
|
"type:drupal-custom-theme" |
|
] |
|
}, |
|
"installer-types": [ |
|
"bower-asset", |
|
"npm-asset" |
|
], |
|
"patches": {} |
|
}, |
|
"repositories": [ |
|
{ |
|
"type": "composer", |
|
"url": "https://packages.drupal.org/8" |
|
}, |
|
{ |
|
"type": "composer", |
|
"url": "https://asset-packagist.org" |
|
} |
|
], |
|
"minimum-stability": "dev", |
|
"prefer-stable": true, |
|
"scripts": { |
|
"post-install-cmd": [ |
|
"rm -f web/INSTALL.txt web/README.txt web/LICENSE.txt", |
|
"rm -f web/.gitignore web/example.gitignore", |
|
"find . -mindepth 2 -type d -name .git | xargs rm -rf" |
|
] |
|
}, |
|
"support": { |
|
"chat": "https://www.drupal.org/node/314178", |
|
"docs": "https://www.drupal.org/docs/user_guide/en/index.html" |
|
} |
|
} |
Use https://github.com/wikimedia/composer-merge-plugin to add extra composer.json files.
Example for
webform
module: https://git.drupalcode.org/project/webform/-/blob/6.2.x/composer.libraries.json