-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
45 lines (45 loc) · 1.36 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
{
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"wp-coding-standards/wpcs": "^2.3",
"phpcompatibility/php-compatibility": "*"
},
"require": {
"inc2734/wp-github-plugin-updater": "^3.1"
},
"scripts": {
"lint": "phpcs",
"lint:fix": "phpcbf",
"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"
],
"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"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}