-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
155 lines (155 loc) · 5 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "devuri/brisko",
"type": "wordpress-theme",
"description": "Lightweight WordPress Starter Theme, based on Underscores and Bootstrap",
"keywords": [
"WordPress",
"Themes"
],
"license": "GPL-2.0-only",
"authors": [
{
"name": "Uriel Wilson",
"email": "[email protected]",
"homepage": "https://urielwilson.com",
"role": "Developer"
}
],
"require": {
"php": ">=7.0"
},
"autoload": {
"files": [
"src/Customize/helpers.php",
"src/inc/actions.php",
"src/inc/template-tags.php",
"src/inc/template-tags.php"
],
"psr-4": {
"Brisko\\": "src"
}
},
"autoload-dev": {
"files": [
"src/Customize/helpers.php",
"src/inc/actions.php",
"src/inc/template-tags.php"
],
"psr-4": {
"Brisko\\Tests\\": "tests/"
}
},
"require-dev": {
"brain/monkey": "^2.6",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"php-parallel-lint/php-parallel-lint": "^1.3",
"php-stubs/wordpress-stubs": "^6.2",
"phpstan/phpstan-strict-rules": "1.4.4",
"symfony/var-dumper": "^5.4",
"szepeviktor/phpstan-wordpress": "^1.3",
"wptrt/wpthemereview": "^0.2.1",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
"wpcore": "composer require --dev johnpbloch/wordpress-core",
"wpcs": "composer wpcs-lint",
"wpcs-all": "composer wpcs-lint-all",
"wpcs-lint": [
"composer install -q",
"phpcs -ns src",
"phpcs -ns template-parts"
],
"wpcs-lint-all": [
"composer install -q",
"phpcs -s src",
"phpcs -ns template-parts"
],
"wpcs-fix": [
"composer install -q",
"phpcbf src",
"phpcbf template-parts"
],
"build": [
"composer install -q",
"composer wpcs-lint",
"composer lint",
"composer install -q",
"composer phpdoc -q",
"composer lint",
"composer no-dev -q",
"npm install",
"npm run asset:build",
"npm run build"
],
"test": [
"composer install -q",
"vendor/bin/phpunit --exclude-group integration",
"composer no-dev -q"
],
"test-all": [
"composer install -q",
"vendor/bin/phpunit",
"composer no-dev -q"
],
"test-integration": [
"composer install -q",
"vendor/bin/phpunit --group integration",
"composer no-dev -q"
],
"test-i": [
"composer install -q",
"vendor/bin/phpunit --group integration",
"composer no-dev -q"
],
"no-dev": "composer install --no-dev",
"phpstan:lint": "@php ./vendor/bin/phpstan",
"phpstan": "composer install && composer phpstan:lint",
"psalm-install": [
"composer require --dev vimeo/psalm -q"
],
"psalm-remove": [
"composer remove --dev vimeo/psalm -q"
],
"phpdoc": "@php ./bin/phpdoc",
"psalm": "composer psalm-install && vendor/bin/psalm && composer psalm-remove",
"psalm-secure": "composer psalm-install && vendor/bin/psalm --taint-analysis && composer psalm-remove",
"psalm-info": "composer psalm-install && vendor/bin/psalm --show-info=true && composer psalm-remove",
"psalm-autofix": [
"composer psalm-install",
"vendor/bin/psalm --alter --issues=InvalidNullableReturnType,MismatchingDocblockReturnType,InvalidReturnType,InvalidFalsableReturnType,LessSpecificReturnType,MissingParamType",
"composer psalm-remove"
],
"setup-local-wp": "bash bin/install-wp-tests.sh wordpress_testdb root password 127.0.0.1 latest",
"setup-github-wp": "bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1 latest",
"lint": [
"composer install -q",
"composer wpcs-lint",
"composer phpstan",
"composer psalm-secure",
"composer psalm",
"composer no-dev -q"
],
"codefix": [
"composer php-cs-fixer",
"composer no-dev -q"
],
"phpcs-fix": [
"composer php-cs-fixer",
"composer no-dev -q"
],
"php-cs-fixer": [
"composer require --dev friendsofphp/php-cs-fixer -q",
"vendor/bin/php-cs-fixer fix",
"composer remove --dev friendsofphp/php-cs-fixer -q",
"composer install --no-dev -q"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
}
}