forked from Pronovix/drupal-qa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
178 lines (178 loc) · 6.81 KB
/
composer.json
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
"name": "pronovix/drupal-qa",
"description": "QA tools for Drupal.",
"license": "GPL-2.0-or-later",
"type": "composer-plugin",
"keywords": [
"dev",
"Composer",
"Drupal",
"QA",
"code style",
"code quality",
"testing"
],
"require": {
"php": "~7.4.0 || ~8.1.6",
"composer-plugin-api": "^1.1 || ^2.0",
"behat/behat": "^3.9.0",
"behat/mink": "^1.8",
"bex/behat-screenshot": "^2.0.1",
"cweagans/composer-patches": "^1.7",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"drupal/core-dev": "~9.4.4",
"drupal/drupal-extension": "^3.4 || ^4.1.0",
"drush/drush": "^11.0",
"ergebnis/composer-normalize": "^2.13.0",
"friendsoftwig/twigcs": "^6.0",
"instaclick/php-webdriver": "^1.4.5",
"mglaman/phpstan-drupal": "^1.1",
"phpspec/prophecy-phpunit": "^2",
"phpstan/phpstan": "^1.8.5",
"phpstan/phpstan-deprecation-rules": "^1.0",
"pronovix/composer-logger": "^3.0",
"slevomat/coding-standard": "^7.0"
},
"require-dev": {},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Pronovix\\DrupalQa\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Pronovix\\DrupalQa\\Tests\\": "tests/src"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"cweagans/composer-patches": true,
"ergebnis/composer-normalize": true
},
"platform": {
"php": "7.4.0"
},
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
},
"class": "Pronovix\\DrupalQa\\Composer\\Plugin",
"composer-exit-on-patch-failure": true,
"composer-normalize": {
"indent-size": 4,
"indent-style": "space"
},
"patches": {
"drupal/core": {
"Fix 'Undefined index: value' when database connection issue occurs in tests [#3163925]": "https://git.drupalcode.org/project/drupal/-/merge_requests/212.diff",
"copy() can fail in FunctionalTestSetupTrait::prepareSettings() because of a race condition [#3191369]": "https://git.drupalcode.org/project/drupal/-/merge_requests/218.diff",
"file_scan_ignore_directories is ignored in kernel tests [#3190974]": "https://git.drupalcode.org/project/drupal/-/commit/92300d75eeb03105408f96d5064bd641168d6a82.diff"
}
}
},
"scripts": {
"post-install-cmd": [
"Composer\\Config::disableProcessTimeout",
"@tools:install",
"@test:e2e:install",
"@test:dummys:install"
],
"post-update-cmd": [
"Composer\\Config::disableProcessTimeout",
"@tools:install",
"@test:e2e:install",
"@test:dummys:install"
],
"lint:check": [
"Composer\\Config::disableProcessTimeout",
"@lint:php:check",
"@lint:composer:check",
"@lint:neon:check"
],
"lint:composer:check": [
"Composer\\Config::disableProcessTimeout",
"@composer validate",
"@composer validate --working-dir=./tools",
"@composer normalize --working-dir=./tools ../composer.json --dry-run --no-check-lock",
"@composer normalize --working-dir=./tools --dry-run --no-check-lock"
],
"lint:composer:fix": [
"Composer\\Config::disableProcessTimeout",
"@composer normalize --working-dir=./tools ../composer.json --no-check-lock",
"@composer normalize --working-dir=./tools --no-check-lock"
],
"lint:fix": [
"Composer\\Config::disableProcessTimeout",
"@lint:php:fix",
"@lint:composer:fix"
],
"lint:neon:check": [
"tools/vendor/bin/neon-lint ."
],
"lint:php:check": [
"Composer\\Config::disableProcessTimeout",
"tools/vendor/bin/php-cs-fixer fix --dry-run"
],
"lint:php:fix": [
"Composer\\Config::disableProcessTimeout",
"tools/vendor/bin/php-cs-fixer fix"
],
"static:check": [
"Composer\\Config::disableProcessTimeout",
"@static:phpstan"
],
"static:fix": [],
"static:phpstan": [
"Composer\\Config::disableProcessTimeout",
"tools/vendor/bin/phpstan analyze"
],
"static:phpstan:baseline": [
"Composer\\Config::disableProcessTimeout",
"tools/vendor/bin/phpstan analyze -b"
],
"test": [
"Composer\\Config::disableProcessTimeout",
"@test:phpunit"
],
"test:dummys:install": [
"Composer\\Config::disableProcessTimeout",
"@composer install --working-dir=./tests/fixtures/project-with-drupal-qa"
],
"test:e2e:install": [
"Composer\\Config::disableProcessTimeout",
"git --work-tree=./tests/fixtures/e2e clean -dxff -e 'composer.json'",
"@composer install --working-dir=./tests/fixtures/e2e"
],
"test:phpunit": [
"Composer\\Config::disableProcessTimeout",
"tools/vendor/bin/phpunit --debug"
],
"tools:install": [
"Composer\\Config::disableProcessTimeout",
"@composer install --working-dir=./tools"
]
},
"scripts-descriptions": {
"lint:check": "Checks if different kinds of files are linted properly with configured linters.",
"lint:composer:check": "Validate composer.json with linters.",
"lint:composer:fix": "Auto-fix composer.json with linters.",
"lint:fix": "Auto-fix what is possible on different kinds of files with configured linters.",
"lint:neon:check": "Validate NEON files with linters",
"lint:php:check": "Validate PHP files with linters.",
"lint:php:fix": "Auto-fix what is possible on PHP files with linters.",
"static:check": "Checks if different kinds of files are pass on configured static code analyzers.",
"static:fix": "Auto-fix what is possible on different kinds of files with configured static code analyzers.",
"static:phpstan": "Run static code analyzes on PHP files with PHPStan.",
"static:phpstan:baseline": "Generate PHPStan baseline for remaining errors.",
"test": "Run all test suites.",
"test:dummys:install": "Install an dummy test environments.",
"test:e2e:install": "Install an e2e test environments.",
"test:phpunit": "Run all PHPUnit tests.",
"tools:install": "Install development tools."
}
}