I am finding that installation via composer does not install the necessary library files from https://github.com/woothemes/FlexSlider
Is this normal?
Can I install the library files manually and still expect composer to work properly?
Possibly related https://www.drupal.org/node/2764431
Issue fork flexslider-2885268
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mrpauldriver commentedComment #3
aburrows commentedPaul, are you still getting this? I'm probs going to get a patch done on this shortly, as I know I'll be using it on a project shortly.
Comment #4
aburrows commentedQuick fix is to change libraries yml to:
and then add the flexslider css and js into the module that way. Not ideal, but I'm going to get this fixed using composer and submit the patch.
Comment #5
mrpauldriver commentedAlex, still getting this as of yesterday. My needs are not immediate as only just starting to work with D8.
Thanks for tip about modifying yml file.
Comment #6
aburrows commentedOk Paul, I'm using it in a book I'm writing so kinda need it fixed. Will be on it tomorrow
Comment #7
axlroach commentedSubscribe.
Comment #8
candelas commentedHello
Could you create a composer.json for getting the libraries when installed, please? I have read the README.md, but it would be much easy to be able to install it without writing in composer.json.
Thanks :)
Comment #9
mrpauldriver commentedWhen I first posted this issue I was new to composer, and because it is supposed to a dependency manager I expected that it would install all the necessary dependencies.
For reasons I still don't fully understand (licensing maybe), it seems that composer doesn't install everything without additional configuration.
I have since discovered https://github.com/balbuf/drupal-libraries-installer
This fetches any required third party libraries, providing that you a have added a reference to them in your composer.json file.
Comment #10
candelas commentedThanks @MrPaulDriver :) I will try it.
At the end I made in the project
composer require woothemes/flexslider:~2.0and it worked.
Comment #11
candelas commented@MrPaulDriver yesterday I was tired. What I did was to add in the composer.json (I don't write the Drupal lines for clarity and leave a blank line before what I wrote)
and in terminal
composer updateComment #12
spanners commentedCan I add onto your snippet, @candelas?
I added the code to my composer.json and got an error.
So before the line
"package": {I add the following:"type": "package",So the full block of code is...
Comment #14
amaria commentedI've updated to README. This should clarify composer install.