-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathcomposer.json
81 lines (81 loc) · 2.96 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
{
"name": "koriym/app-state-diagram",
"description": "An Application Diagram Generator",
"license": "MIT",
"authors": [
{
"name": "Akihito Koriyama",
"email": "[email protected]"
}
],
"require": {
"php": "^8.1",
"ext-json": "*",
"ext-filter": "*",
"ext-simplexml": "*",
"ext-libxml": "*",
"ext-dom": "*",
"michelf/php-markdown": "^1.9",
"seld/jsonlint": "^1.8",
"koriym/data-file": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.6.10",
"bamarni/composer-bin-plugin": "^1.4",
"rector/rector": "^1.1"
},
"autoload": {
"psr-4": {
"Koriym\\AppStateDiagram\\": "src/",
"Koriym\\XmlLoader\\": "src-xml"
},
"files": ["vendor-xml2json/xml2json.php"]
},
"autoload-dev": {
"psr-4": {
"Koriym\\AppStateDiagram\\": [
"tests/",
"tests/Fake"
]
}
},
"bin": [
"/bin/asd"
],
"scripts": {
"post-install-cmd": "@composer bin all install --ansi",
"post-update-cmd": ["@composer bin all update --ansi", "cd asd-sync && npm install"],
"bin": "echo 'bin not installed'",
"docs" : [
"bin/asd -c docs/blog/asd.xml docs/blog/profile.xml",
"bin/asd -c docs/blog/asd.md.xml docs/blog/profile.md.xml",
"bin/asd docs/todomvc/profile.json",
"bin/asd -c docs-md/blog/asd.xml docs-md/blog/profile.xml",
"bin/asd docs/bookstore/bookstore.xml"
],
"md" : "bin/asd -c docs/blog/asd.md.xml docs/blog/profile.xml",
"test": ["./vendor/bin/phpunit"],
"tests": ["@cs", "@test", "@sa"],
"coverage": ["php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage"],
"pcov": ["php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml"],
"cs": ["phpcs --standard=./phpcs.xml src tests"],
"cs-fix": ["./vendor/bin/phpcbf src tests"],
"clean": ["./vendor/bin/phpstan clear-result-cache", "./vendor/bin/psalm --clear-cache", "rm -rf tests/tmp/*.php"],
"sa": ["psalm --show-info=true", "./vendor/bin/phpstan analyse -c phpstan.neon"],
"metrics": ["./vendor/bin/phpmetrics --report-html=build/metrics --exclude=Exception --log-junit=build/junit.xml --junit=build/junit.xml src"],
"phpmd": ["./vendor/bin/phpmd src text ./phpmd.xml"],
"compile": ["./vendor-bin/box/vendor/bin/box compile"],
"build": ["@cs", "@sa", "@pcov", "@metrics", "@compile"]
},
"config": {
"allow-plugins": {
"bamarni/composer-bin-plugin": true
}
},
"extra": {
"bamarni-bin": {
"bin-links": true,
"forward-command": true
}
}
}