webflo / packagist

Druapl Package Repository Website
http://drupal-packagist.webflo.io
MIT License
3 stars 0 forks source link

Remove drupal as a depency #13

Open mikkeschiren opened 9 years ago

mikkeschiren commented 9 years ago

For years we have been working with profiles for developing drupal sites, which fit in perfectly with the workflow with aegir, which we have adapt to, and now we would like to step away from drush make and move to composer and the common php-way, which works quite well, except that when downloading modules to a profile using your packagist, drupal core as added as an dependency, which if strange if we have our composer file in drupal/profiles/myprofile - we need need to remove the drupal core folder to make it work.

So we would really like to remove drupal as an dependency from webflo's packagist, or add an option in the composer.json to not download drupal core, to make it more usable, and more, drupal-like.

derhasi commented 9 years ago

If you are using composer, you are supposed to use a composer.json for the whole project. Nontheless, if you want to avoid certain packages to be downloaded due to your setup, you could simply add the following to your composer.json:

  "replace": {
    "drupal/drupal": "*"
  },

Btw: we headed over to https://github.com/drupal-composer/drupal-packagist and https://github.com/drupal-composer/drupal-parse-composer

mikkeschiren commented 9 years ago

Yes, I am using for the whole project, but we work with profiles as separate repos, so the replace solution works fine, thanks :-)