Allow starting a new Panopoly project from scratch via Composer:

composer create-project panopoly/panopoly-composer-template:8.x-dev somedir --no-interaction

TODO

Original summary

is there some composer command for installing panopoly like there is for so many other projects in drupal ecosystem eg composer create-project acquia/lightning-project:^8.1.0 MYPROJECT --no-interaction .... this would be so helpful. many thanks for this great distro. cheers

Comments

drupalstrap created an issue. See original summary.

remyyyyy’s picture

HeLLo @drupalstrap,

This is not an ideal answer but you can install Panopoly with drush :

drush dl panopoly --select

drush si panopoly --db-url=mysql://[db_user]:[db_pass]@[ip-address]/[db_name]

Cheers

dsnopek’s picture

Title: how to install panopoly with composer? » Allow installing Panopoly with composer

Not right now, but this would be super awesome! Patches welcome :-)

dobie_gillis’s picture

Updating/installing with drush no longer works, see: https://www.drupal.org/project/panopoly/issues/2940744

At the very least, we should add instructions on how to install an older version of drush that allows this to work, if composer isn't supported.

dsnopek’s picture

Title: Allow installing Panopoly with composer » Create 'panopoly-composer-template' to facilitate creating new sites with composer
Assigned: Unassigned » dsnopek

Updating title. I'm going to start working on this soon

dsnopek’s picture

I started this here:

https://gitlab.com/panopoly/panopoly-composer-template

However, I've been breaking my brain trying to get the dependencies of the Panopoly profile to get pulled in. For some reason, Composer only sees a dependency on 'drupal/core' but not the dependencies of the profile (ex. panopoly_core, etc). I tried putting the Git repo directly as a repository, and various caching clearing, and minor tweaks to the composer.json and it's still not working... :-/

dsnopek’s picture

Here's a D.o issue going over my problems with Panopoly (and very similar problems with civicrm_entity that I had some months ago):

#3051746: Composer facade seems to be auto-generating info when a composer.json is present

dsnopek’s picture

The weird composer facade issue still seems to exist, but I found a workaround. The next step is solving #3051081: Allow composer to pull in the CKEditor plugins we need so that the WYSIWYG editor works!

dsnopek’s picture

Issue summary: View changes

Add a TODO to the issue summary

dsnopek’s picture

Issue summary: View changes
dsnopek’s picture

I just closed #3051081: Allow composer to pull in the CKEditor plugins we need.

I kept having issues with the Drupal.org Composer Facade, so ended up switching to a solution like Lightning uses, where the profile is actually a Packagist package hosted off of Drupal.org. Here's the mirror repo:

https://gitlab.com/panopoly/panopoly

The package is 'panopoly/panopoly' rather than 'drupal/panopoly'. This isn't ideal, but the issue was hitting was where sometimes 'composer update' would see my workaround, and sometimes it wouldn't, and non-deterministic behavior is worse than a non-standard package name.

However, this does mean that at some time in the future, if Drupal.org starts worknig better, we may need to deprecate 'panopoly/panopoly' in favor of 'drupal/panopoly'

What remains here is documentations! We need a better README on the panopoly-composer-template, and we need to get this in as the installation instructions for Drupal 8 in all the key places.

dsnopek’s picture

Status: Active » Fixed

Tested and documented! I'm gonna count this one as fixed - anything else should go in a new issue

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.