drupal-module kalaconfig
Provides a base set of configuration and module dependencies for starting new Drupal projects.
kalamuna/kalaconfig
Provides a base set of configuration and module dependencies for starting new Drupal projects.
- Friday, May 18, 2018
- by derekderaps
- Repository
- 11 Watchers
- 0 Stars
- 1,067 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 23 % Grown
Kalamuna Configuration
Kalaconfig provides some configuration and module dependencies for starting new Drupal projects, including three config split environmentsâdev, test, and live., (*1)
Note: This module automatically uninstalls itself immediately after installation. But do not remove it! Composer dependencies are still needed., (*2)
Usage
-
Merge the following snippet into your project's composer.json
file so that drupal-library
and component
dependencies install to the correct location:, (*3)
"extra": {
"installer-types": ["component"],
"installer-paths": {
"web/libraries/{$name}": [
"type:component",
"type:drupal-library"
]
}
}
where web/libraries/
is the path to your libraries directory relative to your project root. Take care not to wipe out any of the existing extra
and installer-paths
settings that may already exist in your composer.json
., (*4)
- Run
composer require kalamuna/kalaconfig
on your main project.
- Run
composer install
on your main project.
- Turn on your local development environment (e.g.,
vagrant up
to use the built-in DrupalVM)
- Install Drupal with core "standard" installation profile.
- Remove the
$settings['install_profile'] = 'standard'
line automatically appended to settings.php
by the Drupal install process.
- Enable this module; it will set up a sane Config Split scheme, automatically export your initial configs, and then uninstall itself.
- Commit the newly-exported configuration files to your repository, and push them to origin.
- Use the
config_installer
installation profile to create the sites in all other environments (drush site-install config_installer
).
Notes
You may choose not to install dev dependencies in your production/testing/staging environments (recommended) by using composer install --no-dev
. However, that means the dependencies brought in by Kalaconfig will be missing in those environments. Therefore, you must remember to copy any dependencies provided by Kalaconfig that are needed in those environments into your main project's composer.json require
section., (*5)