forked from GoogleForCreators/web-stories-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
111 lines (111 loc) · 3.97 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
{
"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.4 || ^8.0",
"ext-dom": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ampproject/amp-toolbox": "*",
"ampproject/amp-wp": "dev-develop",
"enshrined/svg-sanitize": "^0.20.0",
"mcaskill/composer-exclude-files": "^4.0",
"symfony/polyfill-mbstring": "^1.18"
},
"require-dev": {
"automattic/vipwpcs": "^3.0.0",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"ergebnis/composer-normalize": "^2.28",
"humbug/php-scoper": "^0.17.5",
"php-stubs/woocommerce-stubs": "^9.0",
"php-stubs/wordpress-tests-stubs": "^6.1.1",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpmd/phpmd": "^2.9",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.2",
"roave/security-advisories": "dev-latest",
"sirbrillig/phpcs-variable-analysis": "^2.8",
"slevomat/coding-standard": "^8.0.0",
"sniccowp/php-scoper-wordpress-excludes": "^6.0",
"swissspidy/phpstan-no-private": "^0.2.0",
"szepeviktor/phpstan-wordpress": "^1.1.3",
"wp-coding-standards/wpcs": "^3.0.0",
"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
}
],
"prefer-stable": true,
"autoload": {
"psr-4": {
"AmpProject\\": "vendor/ampproject/amp-wp/lib/common/src",
"AmpProject\\Optimizer\\": "vendor/ampproject/amp-wp/lib/optimizer/src",
"Google\\Web_Stories\\": "includes"
}
},
"autoload-dev": {
"psr-4": {
"Google\\Web_Stories\\PHPStan\\": "tests/phpstan/src",
"Google\\Web_Stories\\Tests\\Integration\\": "tests/phpunit/integration/includes",
"Google\\Web_Stories\\Tests\\Shared\\": "tests/phpunit/shared",
"Google\\Web_Stories\\Tests\\Unit\\": "tests/phpunit/unit/includes"
}
},
"config": {
"allow-plugins": {
"civicrm/composer-downloads-plugin": true,
"composer/installers": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"mcaskill/composer-exclude-files": true,
"phpstan/extension-installer": true
},
"discard-changes": true,
"platform": {
"php": "7.4"
},
"sort-packages": true
},
"extra": {
"enable-patching": true,
"exclude-from-files": [
"ampproject/amp-wp/includes/bootstrap.php"
],
"installer-disable": true
},
"scripts": {
"post-install-cmd": [
"@prefix-dependencies"
],
"post-update-cmd": [
"@prefix-dependencies"
],
"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\": [\"\"], \"files\": [\"polyfills/mbstring.php\"] } }' > ./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"
]
}
}