-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
99 lines (99 loc) · 2.08 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
{
"require": {
"bornfight/wp-helpers-bf": "*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/bornfight/wp-helpers-bf"
},
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"extra": {
"wordpress-install-dir": "../../../",
"installer-paths": {
"../../plugins/{$name}/": [
"type:wordpress-plugin"
],
"../../themes/{$name}/": [
"type:wordpress-theme"
]
},
"dotenv": {
"path": ".",
"file": "env"
},
"env-map": {
"secret": "SECRET_FOR_ME"
}
},
"autoload": {
"files": [
],
"classmap": [
],
"psr-4": {
"{=namespaceSlug=}\\": "app"
}
},
"scripts": {
"phpstan": [
"phpstan analyse --level=7 app/"
],
"ci:phpstan": [
"phpstan analyse -l 7 --no-progress --no-ansi --error-format=checkstyle app > reports/phpstan-checkstyle.xml || true"
],
"phpcpd": [
"phpcpd app "
],
"ci:phpcpd": [
"phpcpd --log-pmd=reports/phpcpd.xml app || true"
],
"phpmd": [
"phpmd app/ text phpmd.xml"
],
"ci:phpmd": [
"phpmd app/ xml phpmd.xml > reports/phpmd.xml || true"
],
"cs": [
"phpcs --standard=WordPress-Core --standard=WordPress-Extra --exclude=WordPress.Files.FileName app"
],
"cs:fix": [
"phpcbf --standard=WordPress-Core --standard=WordPress-Extra app"
],
"ci:cs": [
"phpcs --standard=WordPress-Core --standard=WordPress-Extra --exclude=WordPress.Files.FileName --report-checkstyle=reports/phpcs-checkstyle.xml app || true"
],
"static-analysis": [
"@install-codestandards",
"mkdir -p reports",
"@phpcpd",
"@phpmd",
"@cs",
"@phpstan"
],
"ci:static-analysis": [
"@install-codestandards",
"mkdir -p reports",
"@ci:phpcpd",
"@ci:phpmd",
"@ci:cs",
"@ci:phpstan"
],
"install-codestandards": [
"phpcs --config-set installed_paths ./../../wp-coding-standards/wpcs"
]
},
"require-dev": {
"phpmd/phpmd": "*",
"phpmetrics/phpmetrics": "*",
"sebastian/phpcpd": "*",
"phpstan/phpstan": "*",
"codeception/codeception": "*",
"dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
"wp-coding-standards/wpcs": "^2.1"
}
}