-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcomposer.json
More file actions
69 lines (69 loc) · 1.93 KB
/
composer.json
File metadata and controls
69 lines (69 loc) · 1.93 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
{
"name": "humanmade/authorship",
"description": "Authorship",
"license": "GPL-3.0-or-later",
"type": "wordpress-plugin",
"require": {
"php": ">=7.2",
"composer/installers": "^1.0 || ^2.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "0.7.0",
"ergebnis/composer-normalize": "^2",
"humanmade/coding-standards": "dev-upgrade-wpcs",
"php-stubs/wordpress-stubs": "^5.5",
"phpcompatibility/phpcompatibility-wp": "2.1.0",
"phpstan/phpstan": "0.12.57",
"phpunit/phpunit": "^9.5.20",
"roots/wordpress": "~6.6.0",
"szepeviktor/phpstan-wordpress": "0.7.1",
"vlucas/phpdotenv": "^3",
"wp-cli/db-command": "^2",
"wp-phpunit/wp-phpunit": "~6.6.0",
"yoast/phpunit-polyfills": "^1.0"
},
"repositories": {
"humanmade/coding-standards": {
"type": "git",
"url": "https://github.com/humanmade/coding-standards"
}
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"roots/wordpress-core-installer": true
},
"platform": {
"php": "7.4"
},
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"wordpress-install-dir": "tests/wordpress"
},
"scripts": {
"post-update-cmd": [
"@composer normalize",
"@php -r \"! file_exists( 'tests/.env' ) && copy( 'tests/.env.dist', 'tests/.env' );\""
],
"test": [
"@test:phpcs",
"@test:phpstan",
"@test:ut"
],
"test:phpcs": [
"phpcs -p --cache=tests/cache/phpcs ."
],
"test:phpstan": [
"phpstan analyze"
],
"test:ut": [
"wp db reset --yes --path=tests/wordpress #",
"export WP_MULTISITE=0 && phpunit --verbose --colors=always --exclude-group=ms-required",
"export WP_MULTISITE=1 && phpunit --verbose --colors=always --exclude-group=ms-excluded"
]
}
}