-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
65 lines (65 loc) · 3.17 KB
/
composer.json
File metadata and controls
65 lines (65 loc) · 3.17 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
{
"name": "estebanforge/hyperfields",
"description": "HyperFields: A powerful custom field system for WordPress, providing metaboxes, options pages, and conditional logic.",
"type": "library",
"version": "1.2.0",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Esteban Cuevas",
"email": "esteban@actitud.xyz"
}
],
"minimum-stability": "RC",
"prefer-stable": true,
"require": {
"php": ">=8.2"
},
"autoload": {
"psr-4": {
"HyperFields\\": "src/"
},
"files": [
"includes/helpers.php",
"includes/backward-compatibility.php",
"bootstrap.php"
]
},
"autoload-dev": {
"psr-4": {
"HyperFields\\Tests\\": "tests/"
}
},
"require-dev": {
"phpunit/phpunit": "^12",
"pestphp/pest": "^4",
"brain/monkey": "^2",
"mockery/mockery": "^1",
"friendsofphp/php-cs-fixer": "^3"
},
"scripts": {
"test": "bash -lc 'if [ ! -f vendor/bin/pest ]; then composer update --no-interaction --no-progress; fi; if php -m | grep -qi pcov; then php -d pcov.enabled=1 vendor/bin/pest --colors=always; elif php -m | grep -qi xdebug; then XDEBUG_MODE=coverage vendor/bin/pest --colors=always; else vendor/bin/pest --colors=always; fi'",
"test:unit": "php -d pcov.enabled=1 vendor/bin/pest tests/Unit --colors=always",
"test:integration": "php -d pcov.enabled=1 vendor/bin/pest tests/Integration --colors=always",
"test:coverage": "php -d pcov.enabled=1 vendor/bin/pest --configuration phpunit.xml --coverage-html coverage-html --coverage-text",
"test:fast": "php -d pcov.enabled=1 vendor/bin/pest --configuration phpunit.xml --coverage-html coverage-html --coverage-text",
"test:summary": "php -d pcov.enabled=1 vendor/bin/pest --configuration phpunit.xml --coverage-text",
"test:clover": "php -d pcov.enabled=1 vendor/bin/pest --configuration phpunit.xml --coverage-clover coverage.xml",
"test:xdebug": "XDEBUG_MODE=coverage vendor/bin/pest --configuration phpunit.xml --coverage-html coverage-xdebug-html --coverage-text",
"test:coverage:xdebug": "XDEBUG_MODE=coverage vendor/bin/pest --configuration phpunit.xml --coverage-html coverage-xdebug-html --coverage-text",
"test:summary:xdebug": "XDEBUG_MODE=coverage vendor/bin/pest --configuration phpunit.xml --coverage-text",
"test:clover:xdebug": "XDEBUG_MODE=coverage vendor/bin/pest --configuration phpunit.xml --coverage-clover coverage-xdebug.xml",
"build-assets": "bash -lc 'if command -v npm >/dev/null 2>&1; then npm run build && echo \"✓ React assets built successfully\"; else echo \"⚠ npm not found, skipping React asset build. Install Node.js to build React assets.\"; fi'",
"production": ["@build-assets", "@php composer install --no-dev --optimize-autoloader"],
"version-bump": "bash scripts/version-bump.sh",
"setup-hooks": "cp .githooks/* .git/hooks/ && chmod +x .git/hooks/* && echo 'Git hooks installed to .git/hooks/'",
"cs:fix": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php",
"cs:check": "vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff"
},
"config": {
"allow-plugins": {
"composer/installers": true,
"pestphp/pest-plugin": true
}
}
}