-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcomposer.json
executable file
·72 lines (72 loc) · 2.32 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
{
"name": "abbadon1334/sun-position-spa-php",
"description": "solar data calculation and sun position",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Francesco Danti",
"email": "fdanti@gmail.com"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.2"
},
"require-dev": {
"codacy/coverage": "dev-master",
"friendsofphp/php-cs-fixer": "dev-master@dev",
"phpmd/phpmd": "2.9.0",
"phpmetrics/phpmetrics": "dev-master@dev",
"phpstan/phpstan": "0.12.11",
"phpunit/phpunit": "*",
"squizlabs/php_codesniffer": "3.5.6",
"symfony/yaml": "~2.1|~3.0|~4.0"
},
"config": {
"sort-packages": true
},
"autoload": {
"psr-4": {
"SolarData\\": "src/",
"SolarData\\Tests\\": "tests/"
}
},
"scripts": {
"fix": "php-cs-fixer fix src",
"stan": "phpstan analyse src",
"stan1": "phpstan analyse --level 1 src",
"stan2": "phpstan analyse --level 2 src",
"stan3": "phpstan analyse --level 3 src",
"stan4": "phpstan analyse --level 4 src",
"stan5": "phpstan analyse --level 5 src",
"stan6": "phpstan analyse --level 6 src",
"stan7": "phpstan analyse --level 7 src",
"metrics": [
"mkdir -p ./build/report",
"mv ./build/report ./build/report_$(date +\"%Y.%m.%d_%H%M%S\")",
"phpmetrics --config=./.phpmetrics.json .",
"firefox ./build/report/phpmetrics.html/index.html"
],
"metrics-clear": [
"rm -rf ./build/report_*",
"rm -rf ./build/report"
],
"unit": [
"mkdir -p ./build/coverage",
"mv ./build/coverage ./build/coverage_$(date +\"%Y.%m.%d_%H%M%S\")",
"phpunit --configuration phpunit.xml"
],
"unit-html": [
"mkdir -p ./build/coverage",
"mv ./build/coverage ./build/coverage_$(date +\"%Y.%m.%d_%H%M%S\")",
"phpunit --configuration phpunit.xml --coverage-html ./build/coverage",
"firefox ./build/coverage/index.html"
],
"unit-clear": [
"rm -rf ./build/coverage_*",
"rm -rf ./build/coverage"
]
}
}