2017 © Pedro Peláez
 

drupal-drush drush-m2c

Helps convert drush make files to composer.

image

fpfis/drush-m2c

Helps convert drush make files to composer.

  • Tuesday, January 30, 2018
  • by ec-europa
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

drush-m2c

Converter from a Drush makefile to composer.json, (*1)

WARNING

It's very much in alpha and you should only use it at your own risk. You're very much likely to have to edit the composer.json afterwards., (*2)

Usage

Install this in your .drush folder:, (*3)

$ git clone git@github.com:jpstacey/drush-m2c.git ~/.drush/m2c
$ drush cc drush

Then use the m2c command, specifying a makefile:, (*4)

$ drush m2c path/to/drush-m2c/make_to_composer.drush path/to/makefile.make > path/to/composer.json

This will convert the makefile into a composer.json on standard output, so as you can see above we're piping that to an actual JSON file., (*5)

What Composer doesn't do

A limitation of installers is that it doesn't cope with building a runnable core-plus-contrib: your files will be in the following locations:, (*6)

  • modules/
  • themes/
  • profiles/
  • libraries/
  • vendor/drupal/drupal/ <- core

You will need to manually rearrange these files to get your build to work. However, this is a task that is very much suited to Drush instance:, (*7)

https://www.drupal.org/project/drush_instance, (*8)

This supports composer.json, in the above format, as of 7.x-1.2., (*9)

Patches can also be applied using the jpstacey/composer-patches Packagist project:, (*10)

https://packagist.org/packages/jpstacey/composer-patcher, (*11)

The Versions

30/01 2018

dev-master

9999999-dev https://github.com/ec-europa/drush-m2c

Helps convert drush make files to composer.

  Sources   Download

The Requires

 

converter drush

30/01 2018

dev-fixes

dev-fixes https://github.com/ec-europa/drush-m2c

Helps convert drush make files to composer.

  Sources   Download

The Requires

 

converter drush