forked from WordPress/wordcamp.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
50 lines (49 loc) · 1.86 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
{
"name": "wordcamp/wordcamp.org",
"description": "",
"homepage": "https://wordcamp.org",
"license": "GPL-2.0-or-later",
"support": {
"issues": "https://github.com/WordPress/wordcamp.org/issues"
},
"config": {
"platform": {
"php": "7.4"
},
"vendor-dir": "public_html/wp-content/mu-plugins/vendor",
"_comment": "Work around `test:watch` timeout, see https://github.com/spatie/phpunit-watcher/issues/63#issuecomment-545633709",
"process-timeout": 0,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"adhocore/jwt": "^1.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"wp-coding-standards/wpcs": "2.*",
"phpcompatibility/phpcompatibility-wp": "*",
"phpunit/phpunit": "^9",
"sirbrillig/phpcs-changed": "^2.2",
"spatie/phpunit-watcher": "^1.23",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
"format": "phpcbf -p",
"lint": "phpcs",
"test": "phpunit",
"test:watch": "phpunit-watcher watch < /dev/tty",
"test:watch:group": "phpunit-watcher watch --group=",
"_test:watch:fast_comment": "This can't use `@test:watch`, because that only works if `@` is the first character in the string. It can't manually call `composer run test:watch`, because that strips out extra arguments like `-- group=sunrise`. This must be manually kept in sync with the `test:watch` command.",
"test:watch:fast": "WP_TESTS_SKIP_INSTALL=1 phpunit-watcher watch < /dev/tty",
"test:db:reset": "/usr/bin/env php .docker/bin/reset-tests-database.php",
"test:coverage": "php -d xdebug.mode=coverage public_html/wp-content/mu-plugins/vendor/bin/phpunit --coverage-html .phpunit/coverage-report",
"phpcs-changed": "phpcs-changed",
"_comment": "Below script names left in for back-compat",
"phpcs": "phpcs",
"phpcbf": "phpcbf -p",
"tw": "@test:watch",
"twg": "@test:watch:group"
}
}