-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
105 lines (105 loc) · 3.47 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"name": "coolephp/pipeline",
"description": "A simple PHP middleware pipeline. - 一个简单的 PHP 中间件管道。",
"keywords": [
"middleware",
"pipeline"
],
"homepage": "https://github.com/coolephp/pipeline",
"support": {
"issues": "https://github.com/coolephp/pipeline/issues",
"source": "https://github.com/coolephp/pipeline"
},
"authors": [
{
"name": "guanguans",
"email": "[email protected]",
"homepage": "https://www.guanguans.cn",
"role": "developer"
}
],
"type": "library",
"license": "MIT",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.2",
"guanguans/coole": "^1.0",
"guanguans/pipeline": "^1.0"
},
"require-dev": {
"brainmaestro/composer-git-hooks": "^2.7",
"friendsofphp/php-cs-fixer": "^2.16",
"mockery/mockery": "^1.2",
"overtrue/phplint": "^2.3",
"phpunit/phpunit": "^7 || ^8",
"vimeo/psalm": "^3.11"
},
"autoload": {
"psr-4": {
"Coole\\Pipeline\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Coole\\Pipeline\\Tests\\": "tests"
}
},
"config": {
"sort-packages": true
},
"funding": [
{
"type": "wechat",
"url": "https://www.guanguans.cn/images/wechat.jpeg"
}
],
"extra": {
"hooks": {
"pre-commit": [
"composer lint",
"composer style-lint",
"composer md-lint",
"composer test"
],
"pre-push": [
"composer lint",
"composer style-lint",
"composer md-lint",
"composer test"
]
}
},
"scripts": {
"post-update-cmd": [
"cghooks update"
],
"post-merge": "composer install",
"post-install-cmd": [
"cghooks add --ignore-lock",
"cghooks update"
],
"cghooks": "./vendor/bin/cghooks",
"lint": "./vendor/bin/phplint --no-cache --configuration=.phplint.yml --ansi",
"md-lint": "lint-md --config .lintmdrc *.md .github/*.md .github/ISSUE_TEMPLATE/*.md",
"md-fix": "lint-md --config .lintmdrc --fix *.md .github/*.md .github/ISSUE_TEMPLATE/*.md",
"style-lint": "./vendor/bin/php-cs-fixer fix --using-cache=no --diff --config=.php_cs.dist --dry-run --ansi",
"style-fix": "./vendor/bin/php-cs-fixer fix --using-cache=no --config=.php_cs.dist --ansi",
"psalm": "./vendor/bin/psalm",
"test": "./vendor/bin/phpunit --coverage-text --colors=always --verbose",
"test-coverage": "./vendor/bin/phpunit --coverage-html=coverage/ --coverage-clover=clover.xml --color=always --verbose",
"benchmark": "./vendor/bin/phpbench run --retry-threshold=3 --iterations=15 --revs=1000 --warmup=2"
},
"scripts-descriptions": {
"cghooks": "Run git cghooks.",
"lint": "Run phplint checks.",
"md-lint": "Run markdown checks.",
"md-fix": "Run markdown fixing.",
"style-lint": "Run style checks (only dry run - no fixing!).",
"style-fix": "Run style checks and fix violations.",
"psalm": "Run psalm checks.",
"test": "Run all tests.",
"test-coverage": "Run all tests with coverage.",
"benchmark": "Run all benchmark."
}
}