- Issue created by @chrisck
As previously mentioned in issue #3155213 → wikimedia/composer-merge-plugin is deprecated and projects using it will see a warning in their composer project:
[warning] Available, but library probably installed with the
wikimedia/composer-merge-plugin. You should switch to use default
installation. Please see the README for more information.
The Drupal recommended way of installing third-party libraries is with Asset Packagist, as documented here on the Drupal installation page:
https://www.drupal.org/docs/develop/using-composer/manage-dependencies#t... →
We should offer an alternative Asset Packagist way to install the two required libraries for the 3.0.x and 3.1.x branch:
/libraries/codemirror
/libraries/ckeditor5-source-editing-codemirror
Many Drupal distributions are adopting Asset Packagist as a vehicle to download, install, and manage third-party Javascript and CSS packages into Drupal's libraries folder. Here are the required steps to setup Asset Packagist with your project.
composer require oomphinc/composer-installers-extender
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
npm-asset
and bower-asset
are registered as new "installer-types" and "installer-paths" to be installed into Drupal's /libraries
folder in composer.json."extra": {
"installer-types": [
"npm-asset",
"bower-asset"
],
"installer-paths": {
"web/libraries/{$name}": [
"type:drupal-library",
"type:npm-asset",
"type:bower-asset"
]
}
}
npm-asset/cdubz--ckeditor5-source-editing-codemirror
under "installer-paths" in composer.json."extra": {
"installer-types": [
"npm-asset",
"bower-asset"
],
"installer-paths": {
"web/libraries/ckeditor5-source-editing-codemirror": [
"npm-asset/cdubz--ckeditor5-source-editing-codemirror"
],
"web/libraries/{$name}": [
"type:drupal-library",
"type:npm-asset",
"type:bower-asset"
]
}
}
composer require npm-asset/cdubz--ckeditor5-source-editing-codemirror
composer require bower-asset/codemirror
Active
3.1
Documentation