Rhifyn # 3017553: Newidiadau [Cyfryngau Varbase] Dibyniaeth cydrannau ar osod: galluogi neu ddibyniaethau: galluogi modiwlau yn y .info.yml a chyfansoddwr.json i gael Ystod Fersiwn tilde (~)
https://www.drupal.org/project/varbase_media/issues/3017553
Enghraifft well
Os oedd eich safle Drupal wedi'i adeiladu gyda
cyfansoddwr creu-prosiect drupal-cyfansoddwr / drupal-project: 8.x-dev some-dir --stability dev --no-rhyngweithio
fe allech chi olygu'r ffeil cyfansoddwr.json gyda'r camau canlynol
Amnewid:
"ystorfeydd": [ { "type": "cyfansoddwr", "url": "https://packages.drupal.org/8" } ],
gyda
"ystorfeydd": { "drupal": { "type": "cyfansoddwr", "url": "https://packages.drupal.org/8" }, "asedau": { "type": "cyfansoddwr", "url": "https://asset-packagist.org" } },
Ychwanegwch y canlynol at: "require": {
"npm-asedau / dropzone": "^ 4.3.0", "npm-asedau / blazy": "^ 1.8.2", "npm-asedau / carwsél slic": "^ 1.8.1", "drupal / varbase_media": "~ 6.0"
Ychwanegwch y canlynol at: "extra": {
"gosodwr-mathau": [ "ased bower", "npm-ased" ],
Amnewid:
"gwe / llyfrgelloedd / {$ name}": ["type: drupal-library"],
gyda
"gwe / llyfrgelloedd / slic": ["npm-asedau / slick-carousel"], "gwe / llyfrgelloedd / {$ name}": [ "type: drupal-library", "math: bower-asedau", "math: npm-ased" ],
Ychwanegwch y canlynol at: "extra": {
"llyfrgelloedd drupal": { "library-directory": "gwe / llyfrgelloedd", "llyfrgelloedd": [ {"name": "dropzone", "package": "npm-asedau / dropzone"}, {"name": "blazy", "package": "npm-asedau / blazy"}, {"name": "slic", "pecyn": "npm-asedau / slick-carousel"} ] }, "galluogi-clytio": gwir, "cyfansoddwr-allanfa-ar-patch-methiant": gwir
Ar ôl hynny gallwch chi redeg am y
diweddariad cyfansoddwr
Yna gosod Drupal ac yna galluogi Varbase Media