-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
62 lines (62 loc) · 2.34 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
{
"name": "artisansdk/event",
"description": "A foundational package for Event Sourcing (ES) using an Event Store database, compatible with Laravel.",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Daniel LaBarge",
"email": "[email protected]"
}
],
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"process-timeout": 0,
"sort-packages": true
},
"require": {
"php": ">=7.0 | >=8.0",
"artisansdk/contract": "dev-master",
"php-ds/php-ds": "^1.4",
"illuminate/queue": "^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0",
"illuminate/support": "^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0"
},
"require-dev": {
"artisansdk/bench": "dev-master"
},
"suggest": {
"ext-ds": "Install the Data Structure extension in order to speed up the event stream processing."
},
"autoload": {
"psr-4": {
"ArtisanSdk\\Event\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"ArtisanSdk\\Event\\Tests\\": "tests/"
}
},
"scripts": {
"fix": [
"@php vendor/bin/bench fix src/ tests/ --cache=.php_cs.cache --ansi"
],
"test": [
"@php vendor/bin/bench test src/ tests/ --cache=.php_cs.cache --no-coverage --ansi"
],
"watch": [
"watchman-make -p 'src/**/*.php' 'tests/**/*.php' --run=\"clear && printf '\\e[3J' && vendor/bin/bench test --no-coverage --ansi\""
],
"report": [
"[ -d reports ] || mkdir reports",
"@php vendor/bin/bench test --no-coverage --ansi",
"coverage=`cat reports/coverage.txt | grep -m 1 \"Lines:\" | grep -E -o \"([0-9]{1,3})\" | head -1`; min=80; if [ $coverage -lt $min ]; then exit 2; fi",
"@php vendor/bin/bench fix src/ tests/ --cache=.php_cs.cache --pretend --ansi",
"vendor/bin/phpmd \"src/\" html codesize,cleancode,unusedcode,naming --reportfile reports/messes.html --ignore-violations-on-exit",
"vendor/bin/pdepend --summary-xml=reports/stats.xml \"src/\"",
"vendor/bin/phploc --log-xml=reports/summary.xml src/",
"vendor/bin/phpcpd src/ --log-pmd=reports/duplications.xml --min-lines=3 --min-tokens=35"
]
}
}