-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
46 lines (46 loc) · 1.32 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
{
"require": {
"google/apiclient": "^2.10"
},
"scripts": {
"post-install-cmd": [
"@prefix-dependencies",
"@remove-vendor"
],
"post-update-cmd": [
"@prefix-dependencies",
"@remove-vendor"
],
"credit-for-these-php-scoper-scripts": "https://github.com/google/site-kit-wp",
"prefix-dependencies": [
"@composer --working-dir=php-scoper install",
"rm -rf third-party",
"./php-scoper/vendor/bin/php-scoper add --output-dir=./third-party --force --quiet",
"@autoload-third-party",
"@composer dump-autoload --no-dev",
"cp vendor/composer/autoload_files.php third-party/vendor/",
"@composer dump-autoload"
],
"autoload-third-party": [
"echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > third-party/composer.json",
"@composer --working-dir=third-party dump-autoload --classmap-authoritative --no-interaction || true",
"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/"
],
"remove-vendor": [
"rm -rf vendor"
]
},
"extra": {
"google/apiclient-services": [
"Drive",
"Sheets"
]
},
"config": {
"platform": {
"php": "7.3"
}
}
}