composer.json 3.87 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
        "drupal/core": "self.version",
9
        "drupal/core-vendor-hardening": "self.version",
10
        "wikimedia/composer-merge-plugin": "^1.4"
11
    },
12 13 14 15 16 17 18 19 20
    "require-dev": {
        "behat/mink": "1.7.x-dev",
        "behat/mink-goutte-driver": "^1.2",
        "behat/mink-selenium2-driver": "1.3.x-dev",
        "composer/composer": "^1.8",
        "drupal/coder": "^8.3.2",
        "jcalderonzumba/gastonjs": "^1.0.2",
        "jcalderonzumba/mink-phantomjs-driver": "^0.3.1",
        "mikey179/vfsstream": "^1.2",
21
        "phpunit/phpunit": "^6.5 || ^7",
22
        "phpspec/prophecy": "^1.7",
23 24 25
        "symfony/css-selector": "^4.4",
        "symfony/phpunit-bridge": "^4.4",
        "symfony/debug": "^4.4",
26
        "justinrainbow/json-schema": "^5.2",
27 28 29 30 31
        "symfony/filesystem": "^4.4",
        "symfony/finder": "^4.4",
        "symfony/lock": "^4.4",
        "symfony/browser-kit": "^4.4",
        "symfony/dom-crawler": "^4.4"
32 33 34 35 36 37 38 39 40 41
    },
    "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.",
42 43 44 45
            "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"
46
        ],
47 48 49 50 51
        "merge-plugin": {
            "recurse": true,
            "replace": false,
            "merge-extra": false
        },
52
        "installer-paths": {
53
            "core": ["type:drupal-core"],
54
            "libraries/{$name}": ["type:drupal-library"],
55 56 57
            "modules/contrib/{$name}": ["type:drupal-module"],
            "profiles/contrib/{$name}": ["type:drupal-profile"],
            "themes/contrib/{$name}": ["type:drupal-theme"],
58
            "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
59 60
            "modules/custom/{$name}": ["type:drupal-custom-module"],
            "themes/custom/{$name}": ["type:drupal-custom-theme"]
61 62 63 64 65 66 67
        }
    },
    "autoload": {
        "psr-4": {
            "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
        }
    },
68 69 70 71 72
    "autoload-dev": {
        "psr-4": {
            "Drupal\\Composer\\": "composer"
        }
    },
73
    "scripts": {
74 75
        "pre-install-cmd": "Drupal\\Composer\\Composer::ensureComposerVersion",
        "pre-update-cmd": "Drupal\\Composer\\Composer::ensureComposerVersion",
76
        "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
77 78
        "drupal-phpunit-upgrade-check": "Drupal\\Core\\Composer\\Composer::upgradePHPUnit",
        "drupal-phpunit-upgrade": "@composer update phpunit/phpunit symfony/phpunit-bridge phpspec/prophecy symfony/yaml --with-dependencies --no-progress",
79 80 81 82
        "post-update-cmd": [
            "Drupal\\Composer\\Composer::generateMetapackages",
            "Drupal\\Composer\\Composer::ensureBehatDriverVersions"
        ],
83 84
        "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 --"
85 86 87 88 89
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
90 91 92 93
        },
        {
            "type": "path",
            "url": "core"
94 95 96 97
        },
        {
            "type": "path",
            "url": "composer/Plugin/VendorHardening"
98 99
        }
    ]
100
}