metalbote / greencko-project
Project template for Drupal 8 sites built with the my own greencko profile.
Requires
- composer/installers: ^1.5
- cweagans/composer-patches: ^1.6.4
- drupal/core-composer-scaffold: ^8.8.0
- drupal/core-project-message: ^8.8.0
- drupal/drupal-library-installer-plugin: ^0.3
- metalbote/greencko: 8.1.x-dev
- oomphinc/composer-installers-extender: ^1.1
- vlucas/phpdotenv: ^2.4
- webflo/drupal-finder: ^1.2
- webmozart/path-util: ^2.3
Conflicts
Replaces
- ajaxorg/ace-builds: *
This package is auto-updated.
Last update: 2025-03-07 07:54:37 UTC
README
#Project template for greencko Drupal Distribution
This project template should provide a kickstart for managing your site dependencies with Composer.
If you want to know how to use it as replacement for Drush Make visit the Documentation on drupal.org.
Usage
First you need to install composer.
Note: The instructions below refer to the global composer installation. You might need to replace
composer
withphp composer.phar
(or similar) for your setup.
After that you can create the project:
composer create-project metalbote/greencko-project some-dir --stability dev --no-interaction
With composer require ...
you can download new dependencies to your
installation.
cd some-dir
composer require drupal/devel:~1.0
What does the template do?
When installing the given composer.json
some tasks are taken care of:
- greencko Drupal Distribution will be installed in the
web
-directory. - Autoloader is implemented to use the generated composer autoloader in
vendor/autoload.php
, instead of the one provided by Drupal (web/vendor/autoload.php
). - Modules (packages of type
drupal-module
) will be placed inweb/modules/contrib/
- Theme (packages of type
drupal-theme
) will be placed inweb/themes/contrib/
- Profiles (packages of type
drupal-profile
) will be placed inweb/profiles/
- Creates default writable versions of
settings.php
andservices.yml
. - Creates
web/sites/default/files
-directory. - Latest version of drush is installed locally for use at
vendor/bin/drush
. - Latest version of DrupalConsole is installed locally for use at
vendor/bin/drupal
.
How can I apply patches to downloaded modules?
If you need to apply patches (depending on the project being modified, a pull request is often a better solution), you can do so with the composer-patches plugin.
To add a patch to drupal module foobar insert the patches section in the extra section of composer.json:
"extra": { "patches": { "drupal/foobar": { "Patch description": "URL to patch" } } }