EzContent Decoupled: Effortlessly manage content, enhance SEO and create dynamic UIs with modern front-end frameworks for a superior decoupled experience.
1. Firstly, To create a new project and navigate to the project directory, you need to execute the following commands:
composer create-project drupal/recommended-project:^10.0 ezdecoupled
cd ezdecoupled;
2. For Composer to understand your new Recipe install-type, you need to require the Composer Installer Extender package.
composer require oomphinc/composer-installers-extender:2.0.1
"installer-types": ["drupal-recipe"],
"installer-paths": {
// existing entries omitted...
"docroot/recipes/contrib/{$name}": [
"type:drupal-recipe"
]
}
composer config repositories.drupal8 composer https://packages.drupal.org/8
composer config repositories.asset-packagist composer https://asset-packagist.org
composer config minimum-stability dev
composer config extra.enable-patching true
6. To enable specific composer plugins for patching and installation purposes, execute the following commands
composer config --no-plugins allow-plugins.cweagans/composer-patches true
composer config --no-plugins allow-plugins.oomphinc/composer-installers-extender true
composer require cweagans/composer-patches
composer require drush/drush
8. To merge the composer.libraries.json file into your main composer.json, install the Composer Merge Plugin. From the project directory, open a terminal and run
composer require wikimedia/composer-merge-plugin
9. Then Edit the composer.json file of your Drupal website, and under the "extra" section add this entry
"merge-plugin": { "include": [ "web/modules/contrib/*/composer.libraries.json" ] }
composer require srijanone/ez_decoupled:^1.0.1
composer install
drush si
drush recipe recipes/contrib/ez_decoupled;
1. Firstly, To create a new project and navigate to the project directory, you need to execute the following commands:
composer create-project drupal/recommended-project:^10.0 ezdecoupled
cd ezdecoupled;
ddev config --project-type=drupal9 --docroot=web --create-docroot
ddev start
3. For Composer to understand your new Recipe install-type, you need to require the Composer Installer Extender package.
ddev composer require oomphinc/composer-installers-extender:2.0.1
"installer-types": ["drupal-recipe"],
"installer-paths": {
// existing entries omitted...
"docroot/recipes/contrib/{$name}": [
"type:drupal-recipe"
]
}
ddev composer config repositories.drupal8 composer https://packages.drupal.org/8
ddev composer config repositories.asset-packagist composer https://asset-packagist.org
ddev composer config minimum-stability dev
ddev composer config extra.enable-patching true
7. To enable specific composer plugins for patching and installation purposes, execute the following commands
ddev composer config --no-plugins allow-plugins.cweagans/composer-patches true
ddev composer config --no-plugins allow-plugins.oomphinc/composer-installers-extender true
ddev composer require cweagans/composer-patches
ddev composer require drush/drush
9. To merge the composer.libraries.json file into your main composer.json, install the Composer Merge Plugin. From the project directory, open a terminal and run
ddev composer require wikimedia/composer-merge-plugin
10. Then Edit the composer.json file of your Drupal website, and under the "extra" section add this entry
"merge-plugin": { "include": [ "web/modules/contrib/*/composer.libraries.json" ] }
ddev composer require srijanone/ez_decoupled:^1.0.1
ddev composer install
ddev drush si
ddev drush recipe recipes/contrib/ez_decoupled;
1. For Composer to understand your new Recipe install-type, you need to require the Composer Installer Extender package.
composer require oomphinc/composer-installers-extender:2.0.1
"installer-types": ["drupal-recipe"],
"installer-paths": {
// existing entries omitted...
"docroot/recipes/contrib/{$name}": [
"type:drupal-recipe"
]
}
composer config repositories.drupal8 composer https://packages.drupal.org/8
composer config repositories.asset-packagist composer https://asset-packagist.org
composer config minimum-stability dev
composer config extra.enable-patching true
5. To enable specific composer plugins for patching and installation purposes, execute the following commands
composer config --no-plugins allow-plugins.cweagans/composer-patches true
composer config --no-plugins allow-plugins.oomphinc/composer-installers-extender true
composer require cweagans/composer-patches
composer require drush/drush
7. To merge the composer.libraries.json file into your main composer.json, install the Composer Merge Plugin. From the project directory, open a terminal and run
composer require wikimedia/composer-merge-plugin
8. Then Edit the composer.json file of your Drupal website, and under the "extra" section add this entry
"merge-plugin": { "include": [ "web/modules/contrib/*/composer.libraries.json" ] }
composer require srijanone/ez_decoupled:^1.0.1
composer install
drush recipe recipes/contrib/ez_decoupled;
CMS: Drupal
Note: This recipe depends on contributed libraries. Ensure you have Composer set up to manage these dependencies effectively by following the instructions in the guide.
Recommended Method for Installing, Updating, and Managing Contributed Module Libraries Using Composer
For detailed instructions on how to efficiently manage and install libraries for contributed Drupal modules using Composer, please refer to the official guide:
This guide covers how to merge the composer.libraries.json
with your site's composer.json
file for seamless updates.