Problem/Motivation
Shouldn't we need a composer.json in this project?
I know, it isn't strictly needed because this theme doesn't need any other "requirements" but it should be convenient for composer to work more smoothly. Especially to find out if this is a module or a theme. It can find this info under the "type" tag.
I have made sample that could be used:
{
"name": "drupal/danland",
"type": "drupal-theme",
"description": "Provides Danland theme",
"keywords": ["Drupal"],
"license": "GPL-2.0+",
"homepage": "https://www.drupal.org/project/danland",
"minimum-stability": "dev",
"support": {
"issues": "https://www.drupal.org/project/issues/danland",
"source": "https://git.drupalcode.org/project/danland"
},
"require": { }
}As said, it is not stricly needed but convenient.
Greetings and thanks for the great work.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork danland-3377042
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:
- 3377042-add-composer.json
changes, plain diff MR !3
Comments
Comment #2
jcnventuraComment #3
sunidhinegi31 commentedComment #6
ericvlWhat a pitty the composer.json only specifies a required drupal/core of 8.* or 9.* and not version 10.*.
Is it possible to adapt this?
Thanks
Comment #7
chetan 11 commentedHi @EricVL, can't add D10 version because module is not compatible with Drupal 10.
Comment #8
ericvl@chetan 11
I know this module is not D10 compatible but adding a composer.json file should be part of making this module compatible with D10.
Therfore I've first added this requiest to this issue but according to @jcnventura this was not the correct issue to ask for a composer.json.
Therfore i have made a new one - this one here.
So, could somebody add this composer.json file together with the solution to make this module D10 compatible, please.
Thank you
Comment #9
jcnventuraPlease remove the "composer/installers": "^1.8" requirement, as that is not really needed by the theme. It is needed by the drupal project module that will take care of making sure that core and any modules/themes get installed to the right place.
Comment #10
jcnventura@EricVL, yes and this here should add the composer.json supporting only D8 and D9. The D10 issue should then make sure to add the D10 support to this file.
Comment #11
chetan 11 commentedComment #12
jcnventuraActually now that I've paid better attention to this, there is a lot here that should be removed. Namely:
Also, license must be a valid SPDX identifier (GPL-2.0-or-later).
Comment #15
jcnventura