composer.json 3.05 KB
Newer Older
1
2
{
    "name": "drupal/recommended-project",
3
    "description": "Project template for Drupal 9 projects with a relocated document root",
4
5
    "type": "project",
    "license": "GPL-2.0-or-later",
6
7
8
9
10
    "homepage": "https://www.drupal.org/project/drupal",
    "support": {
        "docs": "https://www.drupal.org/docs/user_guide/en/index.html",
        "chat": "https://www.drupal.org/node/314178"
    },
11
12
13
14
15
16
17
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ],
    "require": {
18
        "composer/installers": "^1.9",
Jess's avatar
Jess committed
19
20
21
        "drupal/core-composer-scaffold": "^9.4",
        "drupal/core-project-message": "^9.4",
        "drupal/core-recommended": "^9.4"
22
23
    },
    "require-dev": {
Jess's avatar
Jess committed
24
        "drupal/core-dev": "^9.4"
25
26
27
28
    },
    "conflict": {
        "drupal/drupal": "*"
    },
Jess's avatar
Jess committed
29
    "minimum-stability": "stable",
30
31
    "prefer-stable": true,
    "config": {
32
33
34
        "allow-plugins": {
            "composer/installers": true,
            "drupal/core-composer-scaffold": true,
35
36
            "drupal/core-project-message": true,
            "dealerdirect/phpcodesniffer-composer-installer": true
37
        },
38
39
40
        "sort-packages": true
    },
    "extra": {
41
        "drupal-scaffold": {
42
43
44
45
46
47
48
49
50
51
            "locations": {
                "web-root": "web/"
            }
        },
        "installer-paths": {
            "web/core": ["type:drupal-core"],
            "web/libraries/{$name}": ["type:drupal-library"],
            "web/modules/contrib/{$name}": ["type:drupal-module"],
            "web/profiles/contrib/{$name}": ["type:drupal-profile"],
            "web/themes/contrib/{$name}": ["type:drupal-theme"],
52
53
            "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
            "web/modules/custom/{$name}": ["type:drupal-custom-module"],
54
            "web/profiles/custom/{$name}": ["type:drupal-custom-profile"],
55
            "web/themes/custom/{$name}": ["type:drupal-custom-theme"]
56
57
58
59
60
61
62
63
64
65
66
        },
        "drupal-core-project-message": {
            "include-keys": ["homepage", "support"],
            "post-create-project-cmd-message": [
                "<bg=blue;fg=white>                                                         </>",
                "<bg=blue;fg=white>  Congratulations, you’ve installed the Drupal codebase  </>",
                "<bg=blue;fg=white>  from the drupal/recommended-project template!          </>",
                "<bg=blue;fg=white>                                                         </>",
                "",
                "<bg=yellow;fg=black>Next steps</>:",

67
                "  * Install the site: https://www.drupal.org/docs/8/install",
68
69
70
71
72
73
74
                "  * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
                "  * Get support: https://www.drupal.org/support",
                "  * Get involved with the Drupal community:",
                "      https://www.drupal.org/getting-involved",
                "  * Remove the plugin that prints this message:",
                "      composer remove drupal/core-project-message"
            ]
75
76
77
        }
    }
}