Gizra / generator-hedley

Scaffold a headless Drupal backend, Angular app client, and Behat tests
http://www.gizra.com/content/yo-hedley
98 stars 20 forks source link

WIP: Adding composer.json #104

Open RoySegall opened 8 years ago

RoySegall commented 8 years ago

103

I started by creating the things we into composer file. We don't need bootstrap but it's looked good enough to see how it's interact.

One more critical issue is patching. Composer don't support it out of the box like drush make but I found a script for that - https://github.com/jpstacey/composer-patcher - but when running it I got:

Composer\Patcher\PatcherPlugin::postPackageInstall PHP Fatal error: Call to undefined method Composer\Script\Event::getOperation() in /Applications/MAMP/htdocs/composer-drupal/vendor/jpstacey/composer-patcher/src/Composer/Patcher/PatcherPlugin.php on line 48

Fatal error: Call to undefined method Composer\Script\Event::getOperation() in /Applications/MAMP/htdocs/composer-drupal/vendor/jpstacey/composer-patcher/src/Composer/Patcher/PatcherPlugin.php on line 48

Any way it's look very very cool.

amitaibu commented 8 years ago

Thanks. About patches @pcambra has found a nice solution -- http://cambrico.net/en/drupal/using-composer-to-build-your-drupal-7-projects