-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
132 lines (132 loc) · 5.66 KB
/
composer.json
File metadata and controls
132 lines (132 loc) · 5.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "drupal/recommended-project",
"description": "Project template for Drupal projects with a relocated document root",
"type": "project",
"license": "GPL-2.0-or-later",
"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"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"composer/installers": "^2.3",
"drupal/core-composer-scaffold": "^11.1",
"drupal/core-project-message": "^11.1",
"drupal/core-recommended": "^11.1",
"drupal/redis": "^1.9",
"drush/drush": "^13.3",
"pantheon-systems/drupal-integrations": "^11"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"php-http/discovery": true,
"phpstan/extension-installer": true,
"tbachert/spi": true
},
"sort-packages": true
},
"scripts": {
"compile-theme": [
"echo 'Compiling theme...'"
],
"dev-initialize-local": [
"templater.sh web/sites/template.settings.local.php > web/sites/default/settings.local.php",
"cp web/sites/template.services.local.yml web/sites/default/default.services.local.yml",
"echo >> web/sites/default/settings.local.php",
"echo \"\\$settings['hash_salt'] = '`dd if=/dev/random bs=1k count=1 2> /dev/null | shasum | cut -c1-40`';\" >> web/sites/default/settings.local.php",
"mkdir -p web/sites/default/files"
],
"initialize-container": [
"templater.sh web/sites/template.settings.container.php > web/sites/default/settings.container.php",
"mkdir -p web/sites/default/files"
],
"lint": "find web/modules/custom -name '*.php' | xargs php -l",
"code-sniff": "./vendor/bin/phpcs -n",
"code-sniff-feature" : "./vendor/bin/phpcs --standard=Drupal,DrupalPractice --warning-severity=0 $(git diff --name-only --diff-filter=d origin/qa... -- '*.php' '*.module' '*.inc' '*.install' '*.test' '*.profile' '*.theme' '*.info')",
"code-fix-feature" : "./vendor/bin/phpcbf --standard=Drupal,DrupalPractice --warning-severity=0 $(git diff --name-only --diff-filter=d origin/qa... -- '*.php' '*.module' '*.inc' '*.install' '*.test' '*.profile' '*.theme' '*.info')",
"code-sniff-qa" : "./vendor/bin/phpcs --standard=Drupal,DrupalPractice --warning-severity=0 $(git diff --name-only --diff-filter=d origin/master... -- '*.php' '*.module' '*.inc' '*.install' '*.test' '*.profile' '*.theme' '*.info')",
"static-analysis-feature" : "phpstan analyse $(git diff --name-only --diff-filter=d origin/qa... -- '*.php' '*.module' '*.inc' '*.install' '*.test' '*.profile' '*.theme' '*.info')",
"static-analysis" : "phpstan analyse",
"unit-test": "./vendor/bin/phpunit $(pwd)/web/modules/custom"
},
"extra": {
"drupal-scaffold": {
"locations": {
"web-root": "web/"
},
"allowed-packages": [
"pantheon-systems/drupal-integrations"
] },
"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"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/modules/custom/{$name}": [
"type:drupal-custom-module"
],
"web/profiles/custom/{$name}": [
"type:drupal-custom-profile"
],
"web/themes/custom/{$name}": [
"type:drupal-custom-theme"
],
"recipes/{$name}": [
"type:drupal-recipe"
]
},
"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</>:",
" * Install the site: https://www.drupal.org/docs/installing-drupal",
" * 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"
]
}
},
"require-dev": {
"drupal/core-dev": "^11.1"
}
}