2017 © Pedro Peláez
 

project openfed8-project

Project template for Drupal 8 sites built with the Openfed distribution.

image

openfed/openfed8-project

Project template for Drupal 8 sites built with the Openfed distribution.

  • Wednesday, May 23, 2018
  • by rutiolma
  • Repository
  • 2 Watchers
  • 0 Stars
  • 185 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 10 % Grown

The README.md

This is a project template for Drupal 8 sites built with the Openfed distribution., (*1)

File Structure

There are 2 json files:, (*2)

composer.json

This will be the main json file for your project, which you can use to require extra repositories. You can override this at your will, just make sure that composer-merge-plugin settings and package are kept in order to use the json files mentioned bellow., (*3)

For more info about composer-merge-plugin settings and options check https://github.com/wikimedia/composer-merge-plugin, (*4)

composer.openfed.json

This will include all Openfed related settings and should not be changed once you create your project. However, you should update this file regularly based on the most recent version in this repository., (*5)

Usage

Installation

This project requires the installation of composer., (*6)

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

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

composer create-project openfed/openfed8-project:^10.0 MYPROJECT

Update

The best is to download the latest version and replace your project with the files. If you have custom modules defined on your composer.json, you need to copy the to the new composer.json file. You can delete the existing composer.libraries.json as it has been removed from this project., (*9)

Since Openfed 8.x-10.0 there's a composer script (Experimental) which you can run in order to have your local project partially updated. To update your projects you can: - Backup your site - Run, (*10)

composer run-script openfed-update
  • Manually update composer.json (it's recommended to use the composer.json from this repo and ajust it to use your projects/patches)
  • Run
composer update

Your project should now be updated., (*11)

Require new modules

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

cd MYPROJECT
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., (*13)

Troubleshooting

Memory limit errors

When running "composer install" you may get some memory limit issues. This is due to the composer dependency resolver since we have a big list of dependencies. To bypass this issue, you have 3 options:, (*14)

option 1

Temporarely increase the memory limit as described at https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors, (*15)

option 2

If you are creating the project for the first time, use the recommended installation procedure by using "composer create-project" command., (*16)

option 3

Run "composer update" twice. At first it will throw the same error but on the second attempt it will run successfully., (*17)

The Versions

23/05 2018

5.x-dev

5.9999999.9999999.9999999-dev

Project template for Drupal 8 sites built with the Openfed distribution.

  Sources   Download

GPL-2.0-or-later

The Requires

 

23/05 2018

5.1

5.1.0.0

Project template for Drupal 8 sites built with the Openfed distribution.

  Sources   Download

GPL-2.0-or-later

The Requires

 

08/05 2018

5.0

5.0.0.0

Project template for Drupal 8 sites built with the Openfed distribution.

  Sources   Download

GPL-2.0-or-later

The Requires

 

01/03 2018

4.x-dev

4.9999999.9999999.9999999-dev

Project template for Drupal 8 sites built with the Openfed distribution.

  Sources   Download

GPL-2.0-or-later

The Requires

 

01/03 2018

8.4.0.x-dev

8.4.0.9999999-dev

Project template for Drupal 8 sites built with the Openfed distribution.

  Sources   Download

GPL-2.0-or-later

The Requires

 

01/03 2018

8.4.x-dev

8.4.9999999.9999999-dev

Project template for Drupal 8 sites built with the Openfed distribution.

  Sources   Download

GPL-2.0-or-later

The Requires