2017 © Pedro Peláez
 

project drupal-project

Project template for drunomics Drupal 8 projects with composer

image

drunomics/drupal-project

Project template for drunomics Drupal 8 projects with composer

  • Wednesday, June 13, 2018
  • by fago
  • Repository
  • 1 Watchers
  • 0 Stars
  • 160 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 542 Forks
  • 0 Open issues
  • 79 Versions
  • 113 % Grown

The README.md

Composer template for drunomics Drupal projects

Test drupal setup, (*1)

Builds upon https://github.com/drupal-composer/drupal-project., (*2)

Version compatibility

Git branch/tag: Drupal core:
5.x Drupal 8
6.x Drupal 9+

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)

// Last stable version:
composer create-project drunomics/drupal-project:6.* PROJECT
// Last development version:
composer create-project drunomics/drupal-project:6.*@dev --stability dev PROJECT

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

cd PROJECT
composer require drupal/devel:~1.0

The composer create-project command passes ownership of all files to the project that is created. You should create a new git repository, and commit all files not excluded by the .gitignore file., (*7)

Documentation overview

The template builds upon drupal-composer/drupal-project. Please follow the README of https://github.com/drupal-composer/drupal-project for general documentation., (*8)

Optional features

Some optional features can be enabled by setting some environment variables when creating the project. To set a variable, you can set the variable when invoking composer; e.g.:, (*9)

VARIABLE=1 composer create-project drunomics/drupal-project PROJECT

The following variables are supported:, (*10)

Variable Description Default Possible values
PROJECT_ADD_DEVSETUP_DOCKER Whether the docker-devsetup should be added. 1 "1" or "0"
PROJECT_ADD_DEVSETUP_DRUNOMICS Whether the drunomics devsetup extensions should be added. unset "1" or unset

Default variables

Environment variables that can be configured project-wide are managed in .defaults.env. Refer to the prepared variables in the file for environment variables tha are already supported in the template., (*11)

The Versions