-
Notifications
You must be signed in to change notification settings - Fork 5
/
composer.json
76 lines (76 loc) · 2.21 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
68
69
70
71
72
73
74
75
76
{
"name": "php-lightning/lnaddress",
"type": "library",
"license": "MIT",
"require": {
"php": ">=8.1",
"gacela-project/gacela": "^1.8",
"gacela-project/router": "^0.12",
"symfony/http-client": "^6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.18",
"gacela-project/phpstan-extension": "^0.3",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.6",
"psalm/plugin-phpunit": "^0.18",
"symfony/var-dumper": "^5.4",
"vimeo/psalm": "^5.12"
},
"config": {
"platform": {
"php": "8.1"
},
"allow-plugins": {
"composer/package-versions-deprecated": true
},
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"autoload": {
"psr-4": {
"PhpLightning\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PhpLightningTest\\": "tests/"
}
},
"scripts": {
"post-install-cmd": [
"[ ! -f nostr.json ] && cp nostr.dist.json nostr.json || true"
],
"ctal": [
"@static-clear-cache",
"@csfix",
"@test-all"
],
"fix": "@csfix",
"test": "@test-all",
"test-all": [
"@quality",
"@phpunit"
],
"quality": [
"@csrun",
"@psalm",
"@phpstan"
],
"phpunit": [
"@test-phpunit"
],
"static-clear-cache": [
"XDEBUG_MODE=off vendor/bin/psalm --clear-cache",
"XDEBUG_MODE=off vendor/bin/phpstan clear-result-cache"
],
"test-phpunit": "XDEBUG_MODE=off ./vendor/bin/phpunit",
"test-coverage": "XDEBUG_MODE=coverage ./vendor/bin/phpunit --testsuite=unit,feature --coverage-html=data/coverage-html",
"psalm": "XDEBUG_MODE=off ./vendor/bin/psalm",
"phpstan": "XDEBUG_MODE=off ./vendor/bin/phpstan analyze",
"csfix": "XDEBUG_MODE=off ./vendor/bin/php-cs-fixer fix",
"csrun": "XDEBUG_MODE=off ./vendor/bin/php-cs-fixer fix --dry-run",
"serve": "php -S localhost:8080 public/index.php"
}
}