composer.json 4.92 KB
Newer Older
1
{
2
3
4
    "name": "drupal/drupal",
    "description": "Drupal is an open source content management platform powering millions of websites and applications.",
    "type": "project",
5
    "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
    "require": {
12
        "composer/installers": "^1.9",
13
        "drupal/core": "self.version",
14
        "drupal/core-project-message": "self.version",
15
        "drupal/core-vendor-hardening": "self.version"
16
    },
17
    "require-dev": {
18
        "behat/mink": "^1.8",
19
        "behat/mink-browserkit-driver": "^1.3",
20
        "behat/mink-goutte-driver": "^1.2",
21
        "behat/mink-selenium2-driver": "^1.4",
22
        "composer/composer": "^2.0.2",
23
        "drupal/coder": "^8.3.7",
24
        "mikey179/vfsstream": "^1.6.8",
25
        "phpunit/phpunit": "^8.4.1 || ^9",
26
        "phpspec/prophecy": "^1.7",
27
        "symfony/css-selector": "^4.4",
28
        "symfony/phpunit-bridge": "^5.1.4",
29
        "symfony/var-dumper": "^5.1.2",
30
        "symfony/error-handler": "^4.4",
31
        "justinrainbow/json-schema": "^5.2",
32
33
34
35
        "symfony/filesystem": "^4.4",
        "symfony/finder": "^4.4",
        "symfony/lock": "^4.4",
        "symfony/browser-kit": "^4.4",
36
        "symfony/dom-crawler": "^4.4 !=4.4.5",
37
        "easyrdf/easyrdf": "^0.9 || ^1.0"
38
    },
39
40
41
42
43
44
    "replace": {
        "paragonie/random_compat": "9.99.99",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php72": "*",
        "symfony/polyfill-php73": "*"
    },
45
46
47
48
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "preferred-install": "dist",
49
        "autoloader-suffix": "Drupal9"
50
51
52
53
    },
    "extra": {
        "_readme": [
            "By default Drupal loads the autoloader from ./vendor/autoload.php.",
54
55
56
57
            "To change the autoloader you can edit ./autoload.php.",
            "This file specifies the packages.drupal.org repository.",
            "You can read more about this composer repository at:",
            "https://www.drupal.org/node/2718229"
58
        ],
59
        "installer-paths": {
60
            "core": ["type:drupal-core"],
61
            "libraries/{$name}": ["type:drupal-library"],
62
63
64
            "modules/contrib/{$name}": ["type:drupal-module"],
            "profiles/contrib/{$name}": ["type:drupal-profile"],
            "themes/contrib/{$name}": ["type:drupal-theme"],
65
            "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
66
67
            "modules/custom/{$name}": ["type:drupal-custom-module"],
            "themes/custom/{$name}": ["type:drupal-custom-theme"]
68
69
70
71
72
73
74
75
76
77
78
79
        },
        "drupal-core-project-message": {
            "post-install-cmd-message": [
                "<bg=blue;fg=white>drupal/drupal</>: This package is meant for core development,",
                "               and not intended to be used for production sites.",
                "               See: https://www.drupal.org/node/3082474"
            ],
            "post-create-project-cmd-message": [
                "<bg=red;fg=white>drupal/drupal</>: This package is meant for core development,",
                "               and not intended to be used for production sites.",
                "               See: https://www.drupal.org/node/3082474"
            ]
80
81
82
83
84
85
86
        }
    },
    "autoload": {
        "psr-4": {
            "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
        }
    },
87
88
89
90
91
    "autoload-dev": {
        "psr-4": {
            "Drupal\\Composer\\": "composer"
        }
    },
92
    "scripts": {
93
94
        "pre-install-cmd": "Drupal\\Composer\\Composer::ensureComposerVersion",
        "pre-update-cmd": "Drupal\\Composer\\Composer::ensureComposerVersion",
95
        "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
96
        "drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
97
98
99
100
        "drupal-phpunit-upgrade": [
            "@composer update phpunit/phpunit --with-dependencies --no-progress",
            "@composer require phpspec/prophecy-phpunit:^2 --no-progress --no-suggest"
        ],
101
        "post-update-cmd": [
102
            "Drupal\\Composer\\Composer::generateMetapackages"
103
        ],
104
105
        "phpcs": "phpcs --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --",
        "phpcbf": "phpcbf --standard=core/phpcs.xml.dist --runtime-set installed_paths $($COMPOSER_BINARY config vendor-dir)/drupal/coder/coder_sniffer --"
106
107
    },
    "repositories": [
108
109
110
        {
            "type": "path",
            "url": "core"
111
        },
112
113
114
115
        {
            "type": "path",
            "url": "composer/Plugin/ProjectMessage"
        },
116
117
118
        {
            "type": "path",
            "url": "composer/Plugin/VendorHardening"
119
120
121
122
        },
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
123
124
        }
    ]
125
}