forked from humanmade/authorship
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
67 lines (67 loc) · 1.91 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
{
"name": "humanmade/authorship",
"description": "Authorship",
"license": "GPL-3.0-or-later",
"type": "wordpress-plugin",
"require": {
"php": ">=7.2",
"composer/installers": "^1.0 || ^2.0",
"humanmade/asset-loader": "^0.5.0 || ^0.6.1"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "0.7.0",
"ergebnis/composer-normalize": "^2",
"humanmade/coding-standards": "1.1.1",
"php-stubs/wordpress-stubs": "^5.5",
"phpcompatibility/phpcompatibility-wp": "2.1.0",
"phpstan/phpstan": "0.12.57",
"phpunit/phpunit": "^9.5.20",
"roots/wordpress": "~5.9.0",
"squizlabs/php_codesniffer": "3.5.8",
"szepeviktor/phpstan-wordpress": "0.7.1",
"vlucas/phpdotenv": "^3",
"wp-cli/db-command": "^2",
"wp-phpunit/wp-phpunit": "~5.9.3",
"yoast/phpunit-polyfills": "^1.0"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"roots/wordpress-core-installer": true
},
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"installer-paths": {
"lib/{$name}/": [
"humanmade/asset-loader"
]
},
"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"
]
}
}