Active
Project:
Composer Generate
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2015 at 15:03 UTC
Updated:
18 Apr 2017 at 16:56 UTC
Jump to comment: Most recent
Might be worth creating a D8 versoin to hep folks that start out as a traditional site but want to move to drupal-project as per https://github.com/drupal-composer/drupal-project#generate-composerjson-...
Comments
Comment #2
luksakHas anyone started working on this?
Comment #3
greg.1.anderson commentedAll it needs is a template such as the one suggested. PRs welcome.
In the meantime, go ahead and start yourself a project using https://github.com/drupal-composer/drupal-project. Then, run composer-generate and copy the modules in the `require` section into your composer.json.
Comment #4
luksakAh ok, maybe I misunderstood the purpose of this project. I thought it would migrate a site to composer including the require statements. Then drupal-project already solves this I guess?
Comment #5
greg.1.anderson commentedActually, I did already implement a better workaround for this. Although the composer_generate project does not contain Drupal 8 composer.json templates, you can tell it which one you'd like to use.
Try:
drush composer-generate --base=https://raw.githubusercontent.com/drupal-composer/drupal-project/8.x/composer.jsonComment #6
luksakI get an error when running this:
Comment #7
aaronbaumanYou need to do this first:
also: if you have an existing makefile, you might get some mileage out of https://github.com/clever-systems/drush-m2c