xenomedia / xeno_hero

Drupal 8 module that creates a Hero Paragraphs bundle.
GNU General Public License v2.0
23 stars 18 forks source link

Installation with composer #17

Closed fzied closed 6 years ago

fzied commented 6 years ago

Hi, I can't figure out how to install it with composer

composer require drupal/xeno_hero
composer require xenomedia/xeno_hero

did not work

thejimbirch commented 6 years ago

Hi,

First, you need to add the repository since it is not in a package manager like so:

    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
            "type": "vcs",
            "url": "https://github.com/xenomedia/xeno_hero"
        }
    ],

Then it should be composer require xenomedia/xeno_hero and look something like this in the composer.json:

        "drupal/paragraphs": "1.x-dev",
        "drupal/paragraphs_edit": "2.x-dev",
        "drupal/pathauto": "^1.0",
        "drupal/seo_starter": "1.x-dev",
        "drupal/token": "^1.0",
        "drupal/video_embed_field": "^1.0",
        "drupal/views_infinite_scroll": "^1.1",
        "drupal/webform": "^5.0@beta",
        "xenomedia/xeno_hero": "dev-master"
fzied commented 6 years ago

Thank you Jim, it worked just fine.