1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/drupal_ynh.git synced 2024-09-03 18:35:53 +02:00
This commit is contained in:
Éric Gaspar 2023-05-23 15:58:54 +02:00
parent 4f7f04f74d
commit 27f1067758
2 changed files with 63 additions and 75 deletions

View file

@ -1,13 +1,14 @@
{ {
"name": "drupal/legacy-project", "name": "drupal-composer/drupal-project",
"description": "Project template for Drupal projects with composer following drupal/drupal layout", "description": "Project template for Drupal 10 projects with Composer",
"type": "project", "type": "project",
"license": "GPL-2.0-or-later", "license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/drupal", "authors": [
"support": { {
"docs": "https://www.drupal.org/docs/user_guide/en/index.html", "name": "",
"chat": "https://www.drupal.org/node/314178" "role": ""
}, }
],
"repositories": [ "repositories": [
{ {
"type": "composer", "type": "composer",
@ -15,27 +16,53 @@
} }
], ],
"require": { "require": {
"composer/installers": "^2.0", "php": ">=8.1",
"drupal/core-composer-scaffold": "^10.0", "composer/installers": "^2.1",
"drupal/core-project-message": "^10.0", "cweagans/composer-patches": "^1.7",
"drupal/core-recommended": "^10.0", "drupal/core-composer-scaffold": "^10.0.0",
"drupal/core-vendor-hardening": "^10.0" "drupal/core-recommended": "^10.0.0",
"drush/drush": "^11.4.0",
"vlucas/phpdotenv": "^5.1",
"webflo/drupal-finder": "^1.2"
},
"require-dev": {
"drupal/core-dev": "^10.0.0"
}, },
"conflict": { "conflict": {
"drupal/drupal": "*" "drupal/drupal": "*"
}, },
"minimum-stability": "stable", "minimum-stability": "dev",
"prefer-stable": true, "prefer-stable": true,
"config": { "config": {
"discard-changes": true,
"sort-packages": true,
"allow-plugins": { "allow-plugins": {
"composer/installers": true, "composer/installers": true,
"cweagans/composer-patches": true,
"drupal/core-composer-scaffold": true, "drupal/core-composer-scaffold": true,
"drupal/core-project-message": true, "dealerdirect/phpcodesniffer-composer-installer": true,
"drupal/core-vendor-hardening": true, "phpstan/extension-installer": true
"phpstan/extension-installer": true, }
"dealerdirect/phpcodesniffer-composer-installer": 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": {
"drupal-scaffold": { "drupal-scaffold": {
@ -44,54 +71,18 @@
} }
}, },
"installer-paths": { "installer-paths": {
"core": [ "web/core": ["type:drupal-core"],
"type:drupal-core" "web/libraries/{$name}": ["type:drupal-library"],
], "web/modules/contrib/{$name}": ["type:drupal-module"],
"libraries/{$name}": [ "web/profiles/contrib/{$name}": ["type:drupal-profile"],
"type:drupal-library" "web/themes/contrib/{$name}": ["type:drupal-theme"],
], "drush/Commands/contrib/{$name}": ["type:drupal-drush"]
"modules/contrib/{$name}": [
"type:drupal-module"
],
"profiles/contrib/{$name}": [
"type:drupal-profile"
],
"themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"modules/custom/{$name}": [
"type:drupal-custom-module"
],
"profiles/custom/{$name}": [
"type:drupal-custom-profile"
],
"themes/custom/{$name}": [
"type:drupal-custom-theme"
]
}, },
"drupal-core-project-message": { "composer-exit-on-patch-failure": true,
"include-keys": [ "patchLevel": {
"homepage", "drupal/core": "-p2"
"support" },
], "patches": {
"post-create-project-cmd-message": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Congratulations, youve installed the Drupal codebase </>",
"<bg=blue;fg=white> from the drupal/legacy-project template! </>",
"<bg=blue;fg=white> </>",
"",
"<bg=yellow;fg=black>Next steps</>:",
" * Install the site: https://www.drupal.org/docs/installing-drupal",
" * 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"
]
} }
} }
} }

View file

@ -5,7 +5,7 @@ name = "Drupal"
description.en = "Content management framework" description.en = "Content management framework"
description.fr = "Système de gestion de contenu" description.fr = "Système de gestion de contenu"
version = "10.0.9~ynh1" version = "10.0.0~ynh1"
maintainers = ["yalh76"] maintainers = ["yalh76"]
@ -59,13 +59,10 @@ ram.runtime = "50M"
[resources] [resources]
[resources.sources.main] [resources.sources.main]
#url = "https://github.com/drupal-composer/drupal-project/archive/a1bb2c4dd1e54ce6b9170dc666e6d543474dd57b.tar.gz" url = "https://github.com/drupal-composer/drupal-project/archive/a1bb2c4dd1e54ce6b9170dc666e6d543474dd57b.tar.gz"
#sha256 = "992ae211565e8392910b58ddbd17aff7f9627430140d8c2134499a02a900cd57" sha256 = "992ae211565e8392910b58ddbd17aff7f9627430140d8c2134499a02a900cd57"
#autoupdate.upstream = "https://github.com/drupal-composer/drupal-project" autoupdate.upstream = "https://github.com/drupal-composer/drupal-project"
#autoupdate.strategy = "latest_github_commit" autoupdate.strategy = "latest_github_commit"
url = "https://ftp.drupal.org/files/projects/drupal-10.0.9.tar.gz"
sha256 = "fc456088ae680b99759eb1497c854f22f504b901a95e7510175b02b980fc1a7a"
[resources.system_user] [resources.system_user]