Repository navigation
Expand file tree
/
Copy pathcomposer.json
More file actions
74 lines (74 loc) · 2.55 KB
/
Copy pathcomposer.json
File metadata and controls
74 lines (74 loc) · 2.55 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
70
71
72
73
74
{
"name": "ibrahimhajjaj/abilityguard",
"description": "Snapshot, audit, and rollback middleware for the WordPress Abilities API.",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"keywords": ["wordpress", "abilities-api", "mcp", "safety", "audit", "rollback"],
"require": {
"php": "^8.1"
},
"require-dev": {
"composer/installers": "^2.0",
"phpunit/phpunit": "^9.6",
"yoast/phpunit-polyfills": "^2.0",
"brain/monkey": "^2.6",
"mockery/mockery": "^1.6",
"wp-coding-standards/wpcs": "^3.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"phpstan/phpstan": "^1.11",
"szepeviktor/phpstan-wordpress": "^1.3",
"php-stubs/wordpress-stubs": "^6.9",
"wp-phpunit/wp-phpunit": "^6.9"
},
"autoload": {
"psr-4": {
"AbilityGuard\\": "src/"
},
"files": [
"src/PublicApi.php"
]
},
"autoload-dev": {
"psr-4": {
"AbilityGuard\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"scripts": {
"test": "phpunit -c phpunit.xml.dist",
"test:integration": "wp-env run tests-cli --env-cwd=wp-content/plugins/abilityguard-mcp vendor/bin/phpunit -c phpunit-integration.xml.dist",
"test:multisite": "wp-env run tests-cli --env-cwd=wp-content/plugins/abilityguard-mcp vendor/bin/phpunit -c phpunit-integration-multisite.xml.dist",
"lint": "phpcs --standard=phpcs.xml.dist",
"lint:fix": "phpcbf --standard=phpcs.xml.dist",
"stan": "phpstan analyse --memory-limit=1G",
"check": [
"@lint",
"@stan",
"@test"
],
"check:full": [
"@lint",
"@stan",
"@test",
"@test:integration",
"@test:multisite"
],
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"env:destroy": "wp-env destroy"
},
"scripts-descriptions": {
"test": "Run unit test suite (Brain Monkey, no DB).",
"test:integration": "Run integration suite inside wp-env.",
"lint": "Run PHPCS against WordPress-Extra + WordPress-Docs rulesets.",
"stan": "Run PHPStan at level 6.",
"check": "Run lint + stan + unit (integration is CI-only by default)."
}
}