-
Notifications
You must be signed in to change notification settings - Fork 293
/
composer.json
106 lines (106 loc) · 3.44 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
{
"name": "google/google-site-kit",
"description": "Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.",
"license": "Apache-2.0",
"type": "wordpress-plugin",
"homepage": "https://sitekit.withgoogle.com",
"require-dev": {
"automattic/vipwpcs": "^3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^9.0",
"roave/security-advisories": "dev-latest",
"roots/wordpress": ">=5.2",
"squizlabs/php_codesniffer": "^3.7",
"wp-coding-standards/wpcs": "^3",
"wp-phpunit/wp-phpunit": ">=5.2",
"yoast/phpunit-polyfills": "^2.0"
},
"require": {
"php": ">=7.4",
"ext-json": "*",
"ext-openssl": "*",
"google/apiclient": "^2.14.0",
"google/apiclient-services-adsenselinks": "^0.1.0",
"google/apiclient-services-subscribewithgoogle": "^0.1.0",
"guzzlehttp/guzzle": "^6.5.8",
"symfony/polyfill-intl-idn": "^1.29.0"
},
"replace": {
"paragonie/random_compat": ">=2"
},
"autoload": {
"psr-4": {
"Google\\Site_Kit\\": "includes"
}
},
"autoload-dev": {
"psr-4": {
"Google\\Site_Kit\\Tests\\": "tests/phpunit/includes"
}
},
"config": {
"platform": {
"php": "7.4.33"
},
"sort-packages": true,
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"roots/wordpress-core-installer": true
}
},
"extra": {
"wordpress-install-dir": "vendor/roots/wordpress"
},
"repositories": [
{
"type": "path",
"url": "packages/apiclient-services-adsenselinks",
"options": {
"symlink": false
}
},
{
"type": "path",
"url": "packages/apiclient-services-subscribewithgoogle",
"options": {
"symlink": false
}
}
],
"scripts": {
"post-install-cmd": [
"@prefix-dependencies"
],
"post-update-cmd": [
"@prefix-dependencies"
],
"prefix-dependencies": [
"@composer --working-dir=php-scoper install",
"@php -dxdebug.mode=off php-scoper/vendor/bin/php-scoper add --output-dir=./third-party --force --quiet",
"@autoload-includes",
"@autoload-third-party",
"@composer dump-autoload --no-dev",
"cp vendor/composer/autoload_files.php third-party/vendor/",
"@composer dump-autoload"
],
"autoload-includes": [
"echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > includes/composer.json",
"@composer --working-dir=includes dump-autoload --classmap-authoritative --no-interaction",
"cp includes/vendor/composer/autoload_classmap.php includes/",
"rm -rf includes/vendor && rm includes/composer.json",
"mkdir -p includes/vendor/composer && mv includes/autoload_classmap.php includes/vendor/composer/"
],
"autoload-third-party": [
"echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > third-party/composer.json",
"@composer --working-dir=third-party dump-autoload --classmap-authoritative --no-interaction",
"cp third-party/vendor/composer/autoload_classmap.php third-party/",
"rm -rf third-party/vendor && rm third-party/composer.json",
"mkdir -p third-party/vendor/composer && mv third-party/autoload_classmap.php third-party/vendor/composer/"
],
"lint": "phpcs",
"lint-fix": "phpcbf",
"test": "phpunit",
"test:multisite": "@test --configuration=phpunit.multisite.xml"
}
}