-
- Downloads
Update project with latest upstream recommendations
Showing
- README.md 26 additions, 33 deletionsREADME.md
- composer.json 50 additions, 58 deletionscomposer.json
- load.environment.php 17 additions, 0 deletionsload.environment.php
- phpunit.xml.dist 15 additions, 0 deletionsphpunit.xml.dist
- scripts/composer/ScriptHandler.php 100 additions, 0 deletionsscripts/composer/ScriptHandler.php
{ | ||
"name": "drupal/recommended-project", | ||
"description": "Project template for Drupal 8 projects with a relocated document root", | ||
"name": "drupal/cern-drupal-distribution", | ||
"description": "Defines the Drupal environment supported at CERN", | ||
"type": "project", | ||
"license": "GPL-2.0-or-later", | ||
"homepage": "https://www.drupal.org/project/drupal", | ||
"license": "Apache-2.0", | ||
"authors": [ | ||
{ | ||
"name": "drupal-admins", | ||
"email": "drupal-admins@cern.ch" | ||
} | ||
], | ||
"homepage": "https://home.cern", | ||
"support": { | ||
"docs": "https://www.drupal.org/docs/user_guide/en/index.html", | ||
"chat": "https://www.drupal.org/node/314178" | ||
... | ... | @@ -99,8 +105,12 @@ |
} | ||
], | ||
"require": { | ||
"php": ">=7.3", | ||
"composer/installers": "~1.10.0", | ||
"cweagans/composer-patches": "~1.7.0", | ||
"drush/drush": "~10.3.0", | ||
"vlucas/phpdotenv": "~5.1.0", | ||
"webflo/drupal-finder": "~1.2.0", | ||
"drupal/admin_toolbar": "~2.4.0", | ||
"drupal/adminimal_theme": "~1.6.0", | ||
"drupal/allowed_formats": "~1.3.0", | ||
... | ... | @@ -214,14 +224,39 @@ |
"drupal/workbench_moderation": "~1.6.0", | ||
"wikimedia/composer-merge-plugin": "~2.0.1" | ||
}, | ||
"require-dev": { | ||
"drupal/core-dev": "~8.9.14", | ||
"zaporylie/composer-drupal-optimizations": "~1.2.0" | ||
}, | ||
"conflict": { | ||
"drupal/drupal": "*" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"config": { | ||
"discard-changes": 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": { | ||
"drupal-scaffold": { | ||
"locations": { | ||
... | ... | @@ -229,30 +264,16 @@ |
} | ||
}, | ||
"installer-paths": { | ||
"web/core": [ | ||
"type:drupal-core" | ||
], | ||
"web/libraries/{$name}": [ | ||
"type:drupal-library" | ||
], | ||
"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" | ||
] | ||
"web/core": ["type:drupal-core"], | ||
"web/libraries/{$name}": ["type:drupal-library"], | ||
"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"] | ||
}, | ||
"patchLevel": { | ||
}, | ||
"patches": { | ||
"drupal/core": { | ||
... | ... | @@ -275,27 +296,6 @@ |
"OIDC autologin (skip Drupal login page) https://www.drupal.org/project/openid_connect/issues/3011413": "patches/openid_connect-3011413-autologin.patch" | ||
} | ||
}, | ||
"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" | ||
] | ||
}, | ||
"merge-plugin": { | ||
"include": [ | ||
"composer.user.json" | ||
... | ... | @@ -307,14 +307,6 @@ |
"merge-extra": true, | ||
"merge-extra-deep": true, | ||
"merge-scripts": true | ||
}, | ||
"scripts": { | ||
"post-install-cmd": [ | ||
"@composer drupal:scaffold" | ||
], | ||
"post-update-cmd": [ | ||
"@composer drupal:scaffold" | ||
] | ||
} | ||
} | ||
} | ||
} |
load.environment.php
0 → 100644
phpunit.xml.dist
0 → 100644
scripts/composer/ScriptHandler.php
0 → 100644
Please register or sign in to comment