-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcomposer.json
60 lines (60 loc) · 1.97 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
{
"name": "onspli/chess",
"description": "PHP library for reading and editing FEN and PGN chess formats.",
"license": "MIT",
"authors": [
{
"name": "Ondřej Šplíchal",
"email": "[email protected]"
}
],
"require": {
"php" : "^7.2|^8.0"
},
"autoload": {
"psr-4": {
"Onspli\\Chess\\": "src"
}
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"php-coveralls/php-coveralls": "^2.4",
"onspli/phpdoc-markdown": "dev-master",
"phpbench/phpbench": "^1.1"
},
"scripts": {
"test": [
"phpunit --testdox --coverage-text --coverage-html build/logs/coverage --coverage-clover build/logs/clover.xml --whitelist src tests/unit"
],
"coverall": [
"php-coveralls -v"
],
"docs": [
"composer download-phpdoc",
"php phpDocumentor.phar --directory=src --target=docs --template=vendor/onspli/phpdoc-markdown/templates/public-onefile",
"php bin/generate_readme.php"
],
"docs-up-to-date-check": [
"composer download-phpdoc",
"php phpDocumentor.phar --directory=src --target=build/docs_check --template=vendor/onspli/phpdoc-markdown/templates/public-onefile",
"php bin/generate_readme.php build/README.md",
"cmp --silent build/README.md README.md",
"cmp --silent build/docs_check/README.md docs/README.md"
],
"download-phpdoc": [
"if [ ! -f phpDocumentor.phar ]; then wget https://phpdoc.org/phpDocumentor.phar; fi"
],
"benchmark": [
"phpbench run tests/benchmark --report=default"
],
"benchmark-base": [
"phpbench run tests/benchmark --report=default --tag=base"
],
"benchmark-ref": [
"phpbench run tests/benchmark --report=default --ref=base"
]
},
"archive": {
"exclude": ["bin", "tests"]
}
}