Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)

Appliquer un patch avec Composer dans drupal

De AJLSM
Version datée du 29 septembre 2020 à 11:43 par Jlarvers (discussion | contributions) (Page créée avec « Dans le fichier composer.json, ajouter <syntaxhighlight lang="bash">, "extra": { "composer-exit-on-patch-failure": true, "patchLevel": { ... »)
(diff) ← Version précédente | Version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

Dans le fichier composer.json, ajouter

,
    "extra": {
        "composer-exit-on-patch-failure": true,
        "patchLevel": {
            "drupal/core": "-p2"
        },
        "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"],
            "web/libraries/ckeditor/plugins/{$name}": ["vendor:ckeditor-plugin"],
            "drush/Commands/contrib/{$name}": ["type:drupal-drush"]
        },
        "drupal-scaffold": {
            "initial": {
                ".editorconfig": "../.editorconfig",
                ".gitattributes": "../.gitattributes"
            }
        },
		"patches": {
			"drupal/bootstrap_barrio": {
				"Notice: Error : Call to a member function bundle() on string dans bootstrap_barrio_theme_suggestions_page_alter": "web/patches/barrio.patch"
			}
		}
    }