forked from johnbillion/extended-cpts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
63 lines (63 loc) · 1.75 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
{
"name": "johnbillion/extended-cpts",
"description": "A library which provides extended functionality to WordPress custom post types and taxonomies.",
"homepage": "https://github.com/johnbillion/extended-cpts/",
"license": "GPL-2.0+",
"authors": [
{
"name": "John Blackbourn",
"homepage": "https://johnblackbourn.com/"
}
],
"config": {
"sort-packages": true,
"preferred-install": "dist"
},
"extra": {
"wordpress-install-dir": "tests/wordpress"
},
"require": {
"php": "^7 | ^8"
},
"require-dev": {
"automattic/phpcs-neutron-standard": "1.6.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"johnbillion/falsey-assertequals-detector": "^2",
"phpcompatibility/phpcompatibility-wp": "^2",
"phpunit/phpunit": "^6",
"roots/wordpress": "^5.7.0",
"vlucas/phpdotenv": "^3",
"wp-cli/db-command": "^2.0",
"wp-coding-standards/wpcs": "2.3.0",
"wp-phpunit/wp-phpunit": "^5.7.0"
},
"scripts": {
"post-update-cmd": [
"@php -r \"! file_exists( 'tests/.env' ) && copy( 'tests/.env.dist', 'tests/.env' );\""
],
"test:cs": [
"vendor/bin/phpcs -nps --colors --report-code --report-summary --report-width=80 --cache=tests/cache/phpcs ."
],
"test:ut": [
"vendor/bin/wp db reset --yes --path=tests/wordpress #",
"export WP_MULTISITE=0 && vendor/bin/phpunit --verbose --colors=always --exclude-group=ms-required",
"export WP_MULTISITE=1 && vendor/bin/phpunit --verbose --colors=always --exclude-group=ms-excluded"
],
"test": [
"@test:cs",
"@test:ut"
]
},
"autoload": {
"psr-4": {
"ExtCPTs\\Tests\\": "tests/phpunit"
},
"files": [
"extended-cpts.php"
]
},
"suggest": {
"seravo/wp-custom-bulk-actions": "Custom Bulk Actions",
"wpackagist-plugin/rewrite-testing": "Rewrite Rule Testing"
}
}