composer.json 3.39 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
9
        "wikimedia/composer-merge-plugin": "^1.4",
        "drupal/core": "self.version"
10
    },
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
    "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",
        "phpunit/phpunit": "^6.5",
        "phpspec/prophecy": "^1.7",
        "symfony/css-selector": "^3.4.0",
        "symfony/phpunit-bridge": "^3.4.3",
        "symfony/debug": "^3.4.0",
        "justinrainbow/json-schema": "^5.2"
26
27
28
29
30
31
32
33
34
35
    },
    "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.",
36
37
38
39
            "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"
40
        ],
41
42
43
44
45
        "merge-plugin": {
            "recurse": true,
            "replace": false,
            "merge-extra": false
        },
46
        "installer-paths": {
47
            "core": ["type:drupal-core"],
48
            "libraries/{$name}": ["type:drupal-library"],
49
50
51
            "modules/contrib/{$name}": ["type:drupal-module"],
            "profiles/contrib/{$name}": ["type:drupal-profile"],
            "themes/contrib/{$name}": ["type:drupal-theme"],
52
            "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
53
54
            "modules/custom/{$name}": ["type:drupal-custom-module"],
            "themes/custom/{$name}": ["type:drupal-custom-theme"]
55
56
57
58
59
60
61
        }
    },
    "autoload": {
        "psr-4": {
            "Drupal\\Core\\Composer\\": "core/lib/Drupal/Core/Composer"
        }
    },
62
63
64
65
66
    "autoload-dev": {
        "psr-4": {
            "Drupal\\Composer\\": "composer"
        }
    },
67
    "scripts": {
68
69
        "pre-install-cmd": "Drupal\\Core\\Composer\\Composer::ensureComposerVersion",
        "pre-update-cmd": "Drupal\\Core\\Composer\\Composer::ensureComposerVersion",
70
        "pre-autoload-dump": "Drupal\\Core\\Composer\\Composer::preAutoloadDump",
71
        "post-autoload-dump": "Drupal\\Core\\Composer\\Composer::ensureHtaccess",
72
        "post-package-install": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
73
74
75
        "post-package-update": "Drupal\\Core\\Composer\\Composer::vendorTestCodeCleanup",
        "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 --"
76
77
78
79
80
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
81
82
83
84
        },
        {
            "type": "path",
            "url": "core"
85
86
        }
    ]
87
}