-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcomposer.json
More file actions
75 lines (75 loc) · 2 KB
/
composer.json
File metadata and controls
75 lines (75 loc) · 2 KB
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
{
"name": "mehulgohil/perform",
"description": "Web Performance Optimization plugin for WordPress",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Mehul Gohil",
"email": "hello@mehulgohil.com"
}
],
"require": {
"composer/installers": "^2.3",
"freemius/wordpress-sdk": "^2.13"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"phpcompatibility/phpcompatibility-wp": "*",
"wp-coding-standards/wpcs": "3.3",
"phpstan/phpstan": "^2.0",
"phpstan/extension-installer": "^1.4",
"szepeviktor/phpstan-wordpress": "^2.0",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpunit/phpunit": "^9.6"
},
"scripts": {
"check-cs": [
"@php ./vendor/bin/phpcs -s ."
],
"fix-cs": [
"PHP_CS_FIXER_IGNORE_ENV=1",
"@php ./vendor/bin/phpcbf .",
"@php ./vendor/bin/php-cs-fixer fix . --allow-risky=yes"
],
"lint": [
"@php ./vendor/bin/parallel-lint . -e php --show-deprecated --exclude vendor --exclude node_modules --exclude .git"
],
"lint-blueprint": [
"@php -r \"exit( intval( is_null( json_decode( file_get_contents( './.wordpress-org/blueprints/blueprint.json' ) ) ) ) );\""
],
"test": [
"@php ./vendor/bin/phpunit --dont-report-useless-tests"
],
"phpstan": [
"@php ./vendor/bin/phpstan analyse --memory-limit=2048M"
],
"post-install-cmd": [
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs || true",
"@install-codestandards"
],
"post-update-cmd": [
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs || true"
],
"install-codestandards": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
]
},
"autoload": {
"psr-4": {
"Perform\\": "src/"
}
},
"config": {
"platform": {
"php": "8.1.0"
},
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
}
}
,
"minimum-stability": "stable",
"prefer-stable": true
}