forked from GoogleForCreators/web-stories-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
134 lines (134 loc) · 4.58 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"name": "googleforcreators/web-stories-wp",
"description": "Visual storytelling for WordPress.",
"license": "Apache-2.0",
"type": "wordpress-plugin",
"homepage": "https://github.com/googleforcreators/web-stories-wp",
"require": {
"php": "^7.2 || ^8.0",
"ext-dom": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ampproject/amp-toolbox": "*",
"ampproject/amp-wp": "dev-develop",
"civicrm/composer-downloads-plugin": "^3.0",
"cweagans/composer-patches": "^1.6",
"enshrined/svg-sanitize": "^0.15.2",
"mcaskill/composer-exclude-files": "^2.0",
"symfony/polyfill-mbstring": "^1.18"
},
"require-dev": {
"automattic/vipwpcs": "^2.3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"dg/bypass-finals": "1.3.1",
"php-stubs/woocommerce-stubs": "^6.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpmd/phpmd": "^2.9",
"phpstan/extension-installer": "^1.1",
"roave/security-advisories": "dev-latest",
"sirbrillig/phpcs-variable-analysis": "^2.8",
"slevomat/coding-standard": "^8.0.0",
"sniccowp/php-scoper-wordpress-excludes": "^6.0",
"szepeviktor/phpstan-wordpress": "^v1.1.2",
"wp-coding-standards/wpcs": "^2.3",
"yoast/wp-test-utils": "^1.0.0"
},
"suggest": {
"ext-curl": "Used for modifying cURL requests in CORS proxy"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ampproject/amp-wp",
"no-api": true
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"Google\\Web_Stories\\": "includes",
"AmpProject\\": "vendor/ampproject/amp-wp/lib/common/src",
"AmpProject\\Optimizer\\": "vendor/ampproject/amp-wp/lib/optimizer/src"
},
"files": [
"includes/polyfills/mbstring.php"
]
},
"autoload-dev": {
"psr-4": {
"Google\\Web_Stories\\Tests\\Integration\\": "tests/phpunit/integration/includes",
"Google\\Web_Stories\\Tests\\Unit\\": "tests/phpunit/unit/includes",
"Google\\Web_Stories\\Tests\\Shared\\": "tests/phpunit/shared",
"Google\\Web_Stories\\PHPStan\\": "tests/phpstan/src"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"civicrm/composer-downloads-plugin": true,
"cweagans/composer-patches": true,
"mcaskill/composer-exclude-files": true,
"phpstan/extension-installer": true
},
"discard-changes": true,
"platform": {
"php": "7.2.24"
},
"sort-packages": true
},
"extra": {
"downloads": {
"composer-normalize": {
"path": "vendor/bin/composer-normalize",
"type": "phar",
"url": "https://github.com/ergebnis/composer-normalize/releases/download/2.24.0/composer-normalize.phar"
},
"php-scoper": {
"path": "vendor/bin/php-scoper",
"type": "phar",
"url": "https://github.com/humbug/php-scoper/releases/download/0.17.2/php-scoper.phar"
}
},
"enable-patching": true,
"exclude-from-files": [
"ampproject/amp-wp/includes/bootstrap.php"
],
"patches": {
"phpunit/phpunit-mock-objects": {
"Fix PHPUnit for PHP 7.4": "patches/phpunit-mock-objects.patch"
}
},
"patches-ignore": {
"ampproject/amp-wp": {
"phpunit/phpunit-mock-objects": {
"We patch this ourselves": "patches/phpunit-mock-objects.patch"
}
}
}
},
"scripts": {
"post-install-cmd": [
"@prefix-dependencies"
],
"post-update-cmd": [
"@prefix-dependencies"
],
"composer-normalize": "composer-normalize",
"phpcbf": "phpcbf --severity=1",
"phpcs": "phpcs --severity=1",
"phpmd": "phpmd . text phpmd.xml",
"phpstan": "phpstan analyse --memory-limit=2048M",
"prefix-dependencies": [
"php-scoper add-prefix --output-dir=./third-party --force --quiet",
"echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > ./third-party/composer.json",
"@composer dump-autoload --working-dir ./third-party --no-dev --classmap-authoritative",
"sed -i'.bak' -e 's/Composer\\\\Autoload/Google_Web_Stories_Composer\\\\Autoload/' third-party/vendor/composer/*.php && rm -rf third-party/vendor/composer/*.php.bak",
"echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > ./includes/composer.json",
"@composer dump-autoload --working-dir ./includes --no-dev --classmap-authoritative",
"sed -i'.bak' -e 's/Composer\\\\Autoload/Google_Web_Stories_Composer\\\\Autoload/' includes/vendor/composer/*.php && rm -rf includes/vendor/composer/*.php.bak"
]
}
}