Reorganize to be more like Drutopia Template composer

This commit is contained in:
benjamin melançon 2020-05-06 22:48:57 -04:00
parent 5bc5b17851
commit c8020105e4

View file

@ -6,12 +6,8 @@
"minimum-stability": "dev", "minimum-stability": "dev",
"prefer-stable": true, "prefer-stable": true,
"require": { "require": {
"behat/behat": "^3.4",
"behat/mink": "^1.7",
"behat/mink-goutte-driver": "^1.2",
"composer/installers": "^1.7", "composer/installers": "^1.7",
"cweagans/composer-patches": "^1.0", "cweagans/composer-patches": "^1.0",
"drupal-composer/drupal-scaffold": "^2.0.0",
"drupal/allowed_formats": "^1.1", "drupal/allowed_formats": "^1.1",
"drupal/antibot": "^1.2", "drupal/antibot": "^1.2",
"drupal/ckeditorheight": "^1.3", "drupal/ckeditorheight": "^1.3",
@ -51,6 +47,11 @@
"wikimedia/composer-merge-plugin": "^1.4", "wikimedia/composer-merge-plugin": "^1.4",
"zaporylie/composer-drupal-optimizations": "^1.0" "zaporylie/composer-drupal-optimizations": "^1.0"
}, },
"require-dev": {
"behat/behat": "^3.4",
"behat/mink": "^1.7",
"behat/mink-goutte-driver": "^1.2"
},
"repositories": { "repositories": {
"drupal": { "drupal": {
"type": "composer", "type": "composer",
@ -73,35 +74,28 @@
"url": "git@gitlab.com:agaric/drupal/twigsuggest.git" "url": "git@gitlab.com:agaric/drupal/twigsuggest.git"
} }
}, },
"scripts": { "config": {
"post-install-cmd": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold", "sort-packages": true,
"post-update-cmd": "DrupalComposer\\DrupalScaffold\\Plugin::scaffold", "process-timeout": 600
"nuke": "rm -rf vendor web/core web/modules/contrib web/profiles/contrib drush/contrib", },
"quick-start": [ "conflict": {
"composer install", "drupal/drupal": "*"
"php docroot/core/scripts/drupal quick-start drutopia --no-interaction"
]
}, },
"extra": { "extra": {
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": { "installer-paths": {
"web/core": [ "web/core": ["type:drupal-core"],
"drupal/core" "web/libraries/{$name}": ["type:drupal-library"],
], "web/modules/contrib/{$name}": ["type:drupal-module"],
"web/modules/contrib/{$name}": [ "web/profiles/contrib/{$name}": ["type:drupal-profile"],
"type:drupal-module" "web/themes/contrib/{$name}": ["type:drupal-theme"],
], "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
"web/profiles/contrib/{$name}": [ "web/modules/custom/{$name}": ["type:drupal-custom-module"],
"type:drupal-profile" "web/themes/custom/{$name}": ["type:drupal-custom-theme"]
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"drush/contrib/{$name}": [
"type:drupal-drush"
]
}, },
"merge-plugin": { "merge-plugin": {
"include": [ "include": [
@ -122,10 +116,13 @@
"drupal/ds": { "drupal/ds": {
"Template suggestions does not work": "https://www.drupal.org/files/issues/2018-08-27/2887778-9.patch" "Template suggestions does not work": "https://www.drupal.org/files/issues/2018-08-27/2887778-9.patch"
} }
} }
}, },
"config": { "scripts": {
"sort-packages": true, "nuke": "rm -rf vendor web/core web/modules/contrib web/profiles/contrib drush/contrib",
"process-timeout": 600 "quick-start": [
"composer install",
"php docroot/core/scripts/drupal quick-start drutopia --no-interaction"
]
} }
} }