forked from johnbillion/wp-json-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
65 lines (65 loc) · 1.61 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
{
"name": "johnbillion/wp-json-schemas",
"description": "JSON schemas for WordPress PHP objects and REST API responses",
"homepage": "https://github.com/johnbillion/wp-json-schemas/",
"license": "MIT",
"authors": [
{
"name": "John Blackbourn",
"homepage": "https://johnblackbourn.com/"
}
],
"require": {
"php": "^7 || ^8"
},
"require-dev": {
"ergebnis/composer-normalize": "^2",
"roots/wordpress": "*",
"vlucas/phpdotenv": "^5",
"wp-cli/db-command": "^2",
"wp-cli/core-command": "^2"
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"wordpress-install-dir": "tests/wordpress"
},
"scripts": {
"post-update-cmd": [
"@php -r \"! file_exists( 'tests/.env' ) && copy( 'tests/.env.dist', 'tests/.env' );\""
],
"test": [
"npm run validate",
"npm run test-wp-types",
"wp db reset --yes",
"wp core multisite-install --url=example.org --title=Example --admin_user=admin [email protected] --skip-email",
"wp json-dump post",
"npm run test-post",
"wp json-dump tag",
"npm run test-tag",
"wp json-dump category",
"npm run test-category",
"wp json-dump comment",
"npm run test-comment",
"wp json-dump error",
"npm run test-error",
"wp json-dump user",
"npm run test-user",
"wp json-dump search-results",
"npm run test-rest-api-search-results",
"npm run test-rest-api-posts",
"wp json-dump taxonomies",
"npm run test-rest-api-taxonomies",
"wp json-dump types",
"npm run test-rest-api-types"
]
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/johnbillion"
}
]
}