-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcomposer.json
36 lines (36 loc) · 1.34 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
{
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"google/analytics-data": "^0.8.6"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"squizlabs/php_codesniffer": "*",
"yoast/phpunit-polyfills": "^1.0.1",
"humanmade/coding-standards": "*",
"szepeviktor/phpstan-wordpress": "^1.0"
},
"autoload": {
"psr-4": {
"digitalcube\\SimpleGA4Ranking\\" : "includes/"
}
},
"scripts": {
"lint" : "phpcs --standard=./tests/phpcs/.phpcs.xml",
"format" : "phpcbf --standard=./tests/phpcs/.phpcs.xml --report-summary --report-source",
"analyze" : "vendor/bin/phpstan analyse -c tests/phpstan/phpstan.neon --memory-limit=1G",
"setup-phpunit" : "bash tests/phpunit/install-wp-tests.sh tests-wordpress root password tests-mysql '' true true",
"phpunit" : "wp-env run phpunit 'IS_WP_ENV=1 phpunit -c /var/www/html/wp-content/plugins/simple-ga-4-ranking/tests/phpunit/phpunit.xml --verbose'",
"create-release" : "bash bin/create-release",
"test" : [
"@lint",
"@analyze",
"@phpunit"
]
}
}