composer.json 2.71 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
    "require": {
7
        "composer/installers": "^1.0.24",
8
        "wikimedia/composer-merge-plugin": "^1.4"
9 10
    },
    "replace": {
xjm's avatar
xjm committed
11
        "drupal/core": "^8.8"
12 13 14 15 16 17 18 19 20 21
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "config": {
        "preferred-install": "dist",
        "autoloader-suffix": "Drupal8"
    },
    "extra": {
        "_readme": [
            "By default Drupal loads the autoloader from ./vendor/autoload.php.",
22 23 24 25
            "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"
26 27 28 29 30
        ],
        "merge-plugin": {
            "include": [
                "core/composer.json"
            ],
31
            "recurse": true,
32 33
            "replace": false,
            "merge-extra": false
34 35 36 37 38 39
        },
        "installer-paths": {
            "core": ["type:drupal-core"],
            "modules/contrib/{$name}": ["type:drupal-module"],
            "profiles/contrib/{$name}": ["type:drupal-profile"],
            "themes/contrib/{$name}": ["type:drupal-theme"],
40 41 42
            "drush/contrib/{$name}": ["type:drupal-drush"],
            "modules/custom/{$name}": ["type:drupal-custom-module"],
            "themes/custom/{$name}": ["type:drupal-custom-theme"]
43 44 45 46 47 48 49 50 51
        }
    },
    "autoload": {
        "psr-4": {
            "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
        }
    },
    "scripts": {
        "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
52
        "post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess",
53
        "post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
54
        "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
55
        "drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
56
        "drupal-phpunit-upgrade": "@composer update phpunit/phpunit phpspec/prophecy symfony/yaml --with-dependencies --no-progress",
57 58
        "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 --"
59 60 61 62 63 64 65
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        }
    ]
66
}