2017 © Pedro Peláez
 

project greencko-project

Project template for greencko Drupal distribution projects with composer

image

metalbote/greencko-project

Project template for greencko Drupal distribution projects with composer

  • Tuesday, October 17, 2017
  • by metalbote
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Project template for greencko Drupal Distribution

This project template should provide a kickstart for managing your site dependencies with Composer., (*1)

If you want to know how to use it as replacement for Drush Make visit the Documentation on drupal.org., (*2)

Usage

First you need to install composer., (*3)

Note: The instructions below refer to the global composer installation. You might need to replace composer with php composer.phar (or similar) for your setup., (*4)

After that you can create the project:, (*5)

composer create-project metalbote/greencko-project some-dir --stability dev --no-interaction

With composer require ... you can download new dependencies to your installation., (*6)

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:, (*7)

  • 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 in web/modules/contrib/
  • Theme (packages of type drupal-theme) will be placed in web/themes/contrib/
  • Profiles (packages of type drupal-profile) will be placed in web/profiles/
  • Creates default writable versions of settings.php and services.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., (*8)

To add a patch to drupal module foobar insert the patches section in the extra section of composer.json:, (*9)

"extra": {
    "patches": {
        "drupal/foobar": {
            "Patch description": "URL to patch"
        }
    }
}

The Versions

17/10 2017

dev-master

9999999-dev

Project template for greencko Drupal distribution projects with composer

  Sources   Download

GPL-2.0+

The Requires

 

The Development Requires

by Jörg Riemenschneider