-
Notifications
You must be signed in to change notification settings - Fork 30
/
composer.json
72 lines (72 loc) · 2.41 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
{
"name": "plausible/analytics-wp",
"description": "Simple and privacy-friendly alternative to Google Analytics.",
"authors": [
{
"name": "Plausible.io",
"email": "[email protected]"
},
{
"name": "Daan van den Bergh",
"email": "[email protected]"
}
],
"require": {
"composer/installers": "*"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "*",
"phpcompatibility/phpcompatibility-wp": "*",
"wp-coding-standards/wpcs": "*",
"coenjacobs/mozart": "^0.7.1",
"yoast/wp-test-utils": "*",
"php-parallel-lint/php-parallel-lint": "*",
"php-parallel-lint/php-console-highlighter": "*",
"friendsofphp/php-cs-fixer": "*"
},
"scripts": {
"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"
],
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude .git"
],
"unit": [
"@php ./vendor/bin/phpunit --no-coverage"
],
"integration": [
"@php ./vendor/bin/phpunit --configuration phpunit-with-integration.xml --no-coverage"
],
"coverage": [
"XDEBUG_MODE=coverage ./vendor/bin/phpunit --configuration phpunit-with-integration.xml --coverage-clover ./build/clover.xml"
]
},
"scripts-descriptions": {
"lint": "Check the PHP files for parse errors.",
"unit": "Run the unit tests without code coverage.",
"integration": "Run unit and integration tests without code coverage.",
"coverage": "Shorthand for running unit and integration tests with code coverage (best used on local machines only)."
},
"autoload": {
"psr-4": {
"Plausible\\Analytics\\WP\\": "src/",
"Plausible\\Analytics\\WP\\Client\\": "src/Client/lib/",
"Plausible\\Analytics\\Tests\\Integration\\": "tests/integration/",
"Plausible\\Analytics\\Tests\\Unit\\": "tests/unit/",
"Plausible\\Analytics\\Tests\\": "tests/"
}
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}