forked from google/site-kit-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
84 lines (84 loc) · 2.85 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
{
"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": "^2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"roots/wordpress": ">=4.7",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpunit/phpunit": "^5 || ^6 || ^7",
"roave/security-advisories": "dev-latest",
"squizlabs/php_codesniffer": "^3.3",
"wp-coding-standards/wpcs": "^2",
"wp-phpunit/wp-phpunit": ">=4.7"
},
"require": {
"php": ">=5.6",
"ext-json": "*",
"ext-openssl": "*",
"google/apiclient": "^2.9.1",
"google/apiclient-services": "^0.200",
"guzzlehttp/guzzle": "^5.3.3",
"true/punycode": "^2.0 <2.1.1"
},
"replace": {
"phpseclib/phpseclib": "*"
},
"autoload": {
"psr-4": {
"Google\\Site_Kit\\": "includes"
}
},
"autoload-dev": {
"psr-4": {
"Google\\Site_Kit\\Tests\\": "tests/phpunit/includes"
}
},
"config": {
"platform": {
"php": "5.6"
},
"sort-packages": true
},
"extra": {
"wordpress-install-dir": "vendor/roots/wordpress"
},
"scripts": {
"post-install-cmd": [
"@prefix-dependencies"
],
"post-update-cmd": [
"@prefix-dependencies"
],
"prefix-dependencies": [
"@composer --working-dir=php-scoper install",
"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"
}
}