git clone git@github.com:wunderkraut/wunderhub.git
cd wunderhub
composer install
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 drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction
With composer require ...
you can download new dependencies to your installation.
cd some-dir
composer require drupal/devel:8.*
When installing the given composer.json
some tasks are taken care of:
web
-directory.vendor/autoload.php
,
instead of the one provided by Drupal (web/vendor/autoload.php
).drupal-module
) will be placed in web/modules/contrib/
drupal-theme
) will be placed in web/themes/contrib/
drupal-profile
) will be placed in web/profiles/contrib/
settings.php
and services.yml
.sites/default/files
-directory.vendor/bin/drush
.vendor/bin/drupal
.Updating Drupal core is a two-step process.
drupal/core
in composer.json
.composer update drupal/core
../scripts/drupal/update-scaffold [drush-version-spec]
to update files
in the web
directory, where drush-version-spec
is an optional identifier
acceptable to Drush, e.g. drupal-8.0.x
or drupal-8.1.x
, corresponding to
the version you specified in composer.json
. (Defaults to drupal-8
, the
latest stable release.) Review the files for any changes and restore any
customizations to .htaccess
or robots.txt
.web
will remain in
sync with the core
when checking out branches or running git bisect
.With using the "Composer Generate" drush extension
you can now generate a basic composer.json
file from an existing project. Note
that the generated composer.json
might differ from this project's file.
Composer recommends no. They provide argumentation against but also workrounds if a project decides to do it anyway.