-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
106 lines (106 loc) · 4.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
106
{
"name": "tbali0524/advent-of-code-solutions",
"description": "Advent of Code solutions in PHP by TBali",
"type": "project",
"keywords": [
"aoc",
"algorithms"
],
"homepage": "https://adventofcode.com/",
"license": "MIT",
"authors": [
{
"name": "Balint Toth",
"email": "tbali0524@gmail.com",
"homepage": "https://tbali0524.github.io/",
"role": "Developer"
}
],
"require": {
"php": "^8.4",
"ext-bcmath": "*",
"ext-ctype": "*"
},
"autoload": {
"psr-4": {
"TBali\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"TBali\\Tests\\": "tests/"
}
},
"prefer-stable": true,
"config": {
"process-timeout": 7200
},
"scripts": {
"start": "php src/aoc.php",
"test": "phpunitc --colors=always",
"cs": "phpcs",
"cs-fixer" : "php-cs-fixer fix --dry-run --show-progress=dots --ansi --diff -vv",
"cs-fixer-do": "php-cs-fixer fix --show-progress=dots --ansi --diff -vv",
"doc": "phpdoc",
"lint": "parallel-lint src tests",
"loc": "phploc . --exclude .git --exclude .tools --exclude .vscode --exclude docs --exclude vendor",
"metrics": "phpmetrics --config=.phpmetrics.json",
"stan": "phpstan --ansi --verbose",
"qa": [
"phpcs --version",
"@cs",
"@cs-fixer",
"phpstan --version",
"@stan"
],
"qa-full": [
"parallel-lint --version",
"@lint",
"phpcs --version",
"@cs",
"@cs-fixer",
"phpstan --version",
"@stan",
"@doc",
"@open-doc",
"phpmetrics --version",
"@metrics",
"@open-metrics",
"@test",
"@open-cover",
"@start"
],
"open-cover": "start chrome file:///D:/Coding/PHP/advent-of-code-solutions/.tools/phpunit-coverage/index.html",
"open-doc": "start chrome file:///D:/Coding/PHP/advent-of-code-solutions/docs/index.html",
"open-metrics": "start chrome file:///D:/Coding/PHP/advent-of-code-solutions/.tools/phpmetrics/index.html",
"clean": [
"if exist .tools\\.phpcs.cache del .tools\\.phpcs.cache",
"if exist .tools\\.php-cs-fixer.cache del .tools\\.php-cs-fixer.cache",
"if exist .tools\\phpunit-junit.xml del .tools\\phpunit-junit.xml",
"if exist .tools\\.phpunit.cache\\ rmdir /S /Q .tools\\.phpunit.cache",
"if exist .tools\\phpunit-coverage\\ rmdir /S /Q .tools\\phpunit-coverage",
"if exist .tools\\phpstan\\ rmdir /S /Q .tools\\phpstan",
"if exist .tools\\phpmetrics\\ rmdir /S /Q .tools\\phpmetrics",
"if exist .tools\\phpdoc\\ rmdir /S /Q .tools\\phpdoc",
"if exist docs\\ rmdir /S /Q docs"
]
},
"scripts-descriptions": {
"start": "Run all solutions with AocRunner",
"test": "Run all solutions with phpunit",
"cs": "Check coding style compliance to PSR12 with phpcs",
"cs-fixer": "Check coding style compliance to PER2.0 plus extra rules with php-cs-fixer (no fix applied)",
"cs-fixer-do": "Apply coding style fixes with php-cs-fixer",
"doc": "Create documentation with phpDocumentor",
"lint": "Check syntax errors with parallel-lint",
"loc": "Get code summary report with phploc",
"metrics": "Create code metrics report with phpmetrics",
"stan": "Run static analysis with phpstan",
"qa": "Run code quality checks: phpcs, php-cs-fixer, phpstan",
"qa-full": "Run all code quality checks: parallel-lint, phpcs, php-cs-fixer, phpstan, phpmetrics, phpDocumentor, PHPUnit, and run all solutions",
"open-cover": "Open generated test coverage report in browser (fixed file path)",
"open-doc": "Open generated documentation in browser (fixed file path)",
"open-metrics": "Open generated code metrics report in browser (fixed file path)",
"clean": "Delete generated cache and report files in .tools/ and docs/ directories (Windows only)"
}
}