-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcomposer.json
48 lines (48 loc) · 1.37 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
{
"name": "pantheon-systems/pantheon-wp-main",
"description": "Pantheon mu-plugin for WordPress sites.",
"type": "wordpress-muplugin",
"license": "MIT",
"require": {
"vlucas/phpdotenv": "*"
},
"require-dev": {
"pantheon-systems/pantheon-wp-coding-standards": "^2.0",
"pantheon-systems/wpunit-helpers": "^2.0",
"phpunit/phpunit": "^9",
"yoast/phpunit-polyfills": "^2.0"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"pantheon-systems/wpunit-helpers": true
}
},
"scripts": {
"chmod-scripts": [
"chmod +x bin/*.sh"
],
"post-install-cmd": [
"@chmod-scripts"
],
"post-update-cmd": [
"@chmod-scripts"
],
"lint": [
"@phplint",
"@phpcs"
],
"phplint": "find . -type f -name '*.php' -not -path './vendor/*' -not -path './tests/*' -exec php -l {} \\;",
"phpcs": "vendor/bin/phpcs -s .",
"phpcbf": "vendor/bin/phpcbf -s .",
"phpunit": "vendor/bin/phpunit --colors=always",
"test": [
"@phpunit",
"@test:multisite"
],
"test:multisite": "WP_MULTISITE=1 vendor/bin/phpunit --colors=always",
"test:install": "bin/install-local-tests.sh --skip-db=true",
"test:install:withdb": "bin/install-local-tests.sh",
"test:install:nightly": "bin/install-local-tests.sh --version=nightly --skip-db=true"
}
}