mirror of
https://github.com/YunoHost-Apps/drupal_ynh.git
synced 2024-09-03 18:35:53 +02:00
Fix composer
This commit is contained in:
parent
b54c1bd0d8
commit
c5761a2d53
1 changed files with 34 additions and 43 deletions
|
@ -1,14 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "drupal-composer/drupal-project",
|
"name": "drupal/recommended-project",
|
||||||
"description": "Project template for Drupal 8 projects with composer",
|
"description": "Project template for Drupal 8 projects with a relocated document root",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"license": "GPL-2.0-or-later",
|
"license": "GPL-2.0-or-later",
|
||||||
"authors": [
|
"homepage": "https://www.drupal.org/project/drupal",
|
||||||
{
|
"support": {
|
||||||
"name": "",
|
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
|
||||||
"role": ""
|
"chat": "https://www.drupal.org/node/314178"
|
||||||
}
|
},
|
||||||
],
|
|
||||||
"repositories": [
|
"repositories": [
|
||||||
{
|
{
|
||||||
"type": "composer",
|
"type": "composer",
|
||||||
|
@ -16,19 +15,14 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.0.8",
|
|
||||||
"composer/installers": "^1.2",
|
"composer/installers": "^1.2",
|
||||||
"cweagans/composer-patches": "^1.6.5",
|
"drupal/core-composer-scaffold": "^8.8",
|
||||||
"drupal/console": "^1.0.2",
|
"drupal/core-project-message": "^8.8",
|
||||||
"drupal/core": "^8.8.0",
|
"drupal/core-recommended": "^8.8",
|
||||||
"drupal/core-composer-scaffold": "^8.8.0",
|
"drush/drush": "^9.7.1 | ^10.0.0"
|
||||||
"drush/drush": "^9.7.1 | ^10.0.0",
|
|
||||||
"vlucas/phpdotenv": "^4.0",
|
|
||||||
"webflo/drupal-finder": "^1.0.0",
|
|
||||||
"zaporylie/composer-drupal-optimizations": "^1.0"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"drupal/core-dev": "^8.8.0"
|
"drupal/core-dev": "^8.8"
|
||||||
},
|
},
|
||||||
"conflict": {
|
"conflict": {
|
||||||
"drupal/drupal": "*"
|
"drupal/drupal": "*"
|
||||||
|
@ -38,31 +32,7 @@
|
||||||
"config": {
|
"config": {
|
||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
},
|
},
|
||||||
"autoload": {
|
|
||||||
"classmap": [
|
|
||||||
"scripts/composer/ScriptHandler.php"
|
|
||||||
],
|
|
||||||
"files": ["load.environment.php"]
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"pre-install-cmd": [
|
|
||||||
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
|
|
||||||
],
|
|
||||||
"pre-update-cmd": [
|
|
||||||
"DrupalProject\\composer\\ScriptHandler::checkComposerVersion"
|
|
||||||
],
|
|
||||||
"post-install-cmd": [
|
|
||||||
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
|
|
||||||
],
|
|
||||||
"post-update-cmd": [
|
|
||||||
"DrupalProject\\composer\\ScriptHandler::createRequiredFiles"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"extra": {
|
"extra": {
|
||||||
"composer-exit-on-patch-failure": true,
|
|
||||||
"patchLevel": {
|
|
||||||
"drupal/core": "-p2"
|
|
||||||
},
|
|
||||||
"drupal-scaffold": {
|
"drupal-scaffold": {
|
||||||
"locations": {
|
"locations": {
|
||||||
"web-root": "__APP__/"
|
"web-root": "__APP__/"
|
||||||
|
@ -74,7 +44,28 @@
|
||||||
"__APP__/modules/contrib/{$name}": ["type:drupal-module"],
|
"__APP__/modules/contrib/{$name}": ["type:drupal-module"],
|
||||||
"__APP__/profiles/contrib/{$name}": ["type:drupal-profile"],
|
"__APP__/profiles/contrib/{$name}": ["type:drupal-profile"],
|
||||||
"__APP__/themes/contrib/{$name}": ["type:drupal-theme"],
|
"__APP__/themes/contrib/{$name}": ["type:drupal-theme"],
|
||||||
"drush/Commands/contrib/{$name}": ["type:drupal-drush"]
|
"drush/Commands/contrib/{$name}": ["type:drupal-drush"],
|
||||||
|
"__APP__/modules/custom/{$name}": ["type:drupal-custom-module"],
|
||||||
|
"__APP__/themes/custom/{$name}": ["type:drupal-custom-theme"]
|
||||||
|
},
|
||||||
|
"drupal-core-project-message": {
|
||||||
|
"include-keys": ["homepage", "support"],
|
||||||
|
"post-create-project-cmd-message": [
|
||||||
|
"<bg=blue;fg=white> </>",
|
||||||
|
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
|
||||||
|
"<bg=blue;fg=white> from the drupal/recommended-project template! </>",
|
||||||
|
"<bg=blue;fg=white> </>",
|
||||||
|
"",
|
||||||
|
"<bg=yellow;fg=black>Next steps</>:",
|
||||||
|
|
||||||
|
" * Install the site: https://www.drupal.org/docs/8/install",
|
||||||
|
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
|
||||||
|
" * Get support: https://www.drupal.org/support",
|
||||||
|
" * Get involved with the Drupal community:",
|
||||||
|
" https://www.drupal.org/getting-involved",
|
||||||
|
" * Remove the plugin that prints this message:",
|
||||||
|
" composer remove drupal/core-project-message"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue