Test using Varbase Media 8.6.xx with only Drupal core 8.7.xx

Issue #3017553: Changed [Varbase Media] Components dependencies on install: enable or dependencies: enable of modules in the .info.yml and composer.json to have tilde Version Range (~)
https://www.drupal.org/project/varbase_media/issues/3017553

A better example

If you had your Drupal site built with  

composer create-project drupal-composer/drupal-project:8.x-dev some-dir --stability dev --no-interaction

you could edit the composer.json file with the following steps
Replace:

    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],

with 

    "repositories": {
        "drupal": {
          "type": "composer",
          "url": "https://packages.drupal.org/8"
         },
       "assets": {
         "type": "composer",
         "url": "https://asset-packagist.org"
        }
    }, 


Add the following to :     "require": {

        "npm-asset/dropzone": "^4.3.0",
        "npm-asset/blazy": "^1.8.2",
        "npm-asset/slick-carousel": "^1.8.1",
        "drupal/varbase_media": "~6.0"   

Add the following to :    "extra": {

     "installer-types": [
          "bower-asset",
          "npm-asset"
        ],

 


Replace:


            "web/libraries/{$name}": ["type:drupal-library"],


with


            "web/libraries/slick": ["npm-asset/slick-carousel"],
            "web/libraries/{$name}": [
              "type:drupal-library",
              "type:bower-asset",
              "type:npm-asset"
            ],

Add the following to :  "extra": {

        "drupal-libraries": {
         "library-directory": "web/libraries",
          "libraries": [
              {"name": "dropzone","package": "npm-asset/dropzone"},
              {"name": "blazy", "package": "npm-asset/blazy"},
              {"name": "slick", "package": "npm-asset/slick-carousel"}
          ]
        },
        "enable-patching": true,
        "composer-exit-on-patch-failure": true

After that you can do a run for the
 composer update

Then install Drupal and then enable Varbase Media