-
Notifications
You must be signed in to change notification settings - Fork 197
Expand file tree
/
Copy pathcomposer.json
More file actions
129 lines (129 loc) · 4.83 KB
/
Copy pathcomposer.json
File metadata and controls
129 lines (129 loc) · 4.83 KB
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
{
"name": "google/web-stories-wp",
"type": "wordpress-plugin",
"description": "Visual storytelling for WordPress.",
"homepage": "https://github.com/google/web-stories-wp",
"license": "Apache-2.0",
"require": {
"php": "^5.6 || ^7.0",
"ext-dom": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ampproject/amp-wp": "^2.0.5",
"civicrm/composer-downloads-plugin": "^3.0",
"cweagans/composer-patches": "^1.6",
"mcaskill/composer-exclude-files": "^2.0",
"symfony/polyfill-mbstring": "^1.18"
},
"provide": {
"ampproject/common": "dev-develop",
"ampproject/optimizer": "dev-develop"
},
"require-dev": {
"automattic/vipwpcs": "^2.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"php-stubs/wordpress-stubs": "^5.5",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpmd/phpmd": "^2.9",
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.5",
"roave/security-advisories": "dev-master",
"sirbrillig/phpcs-variable-analysis": "^2.8",
"wp-coding-standards/wpcs": "^2.2"
},
"config": {
"discard-changes": true,
"platform": {
"php": "5.6"
},
"sort-packages": true
},
"extra": {
"downloads": {
"phpstan": {
"url": "https://github.com/phpstan/phpstan/releases/download/0.12.52/phpstan.phar",
"path": "vendor/bin/phpstan",
"type": "phar"
},
"php-scoper": {
"url": "https://github.com/humbug/php-scoper/releases/download/0.13.5/php-scoper.phar",
"path": "vendor/bin/php-scoper",
"type": "phar"
}
},
"exclude-from-files": [
"ampproject/amp-wp/back-compat/back-compat.php",
"ampproject/amp-wp/includes/amp-helper-functions.php",
"ampproject/amp-wp/includes/admin/functions.php",
"ampproject/amp-wp/includes/deprecated.php",
"ampproject/amp-wp/docs/includes/register-wp-cli-commands.php"
],
"patches": {
"sabberworm/php-css-parser": {
"Add additional validation for size unit <https://github.com/sabberworm/PHP-CSS-Parser/pull/193>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/3bc5ded67d77a52b81608cfc97f23b1bb0678e2f%5E...468da3441945e9c1bf402a3340b1d8326723f7d9.patch",
"Fix parsing CSS selectors which contain commas <https://github.com/westonruter/PHP-CSS-Parser/pull/1>": "https://github.com/westonruter/PHP-CSS-Parser/compare/master...10a2501c119abafced3e4014aa3c0a3453a86f67.patch"
}
},
"patches-ignore": {
"ampproject/amp-wp": {
"sabberworm/php-css-parser": {
"Add additional validation for size unit <https://github.com/sabberworm/PHP-CSS-Parser/pull/193>": "patches/php-css-parser-pull-193.patch",
"Validate name-start code points for identifier <https://github.com/sabberworm/PHP-CSS-Parser/pull/185>": "patches/php-css-parser-pull-185.patch",
"Fix parsing CSS selectors which contain commas <https://github.com/westonruter/PHP-CSS-Parser/pull/1>": "patches/php-css-parser-commit-10a2501.patch"
}
}
}
},
"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\\": "tests/phpunit/includes",
"PHPStan\\WordPress\\": "tests/phpstan/src"
}
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ampproject/amp-wp",
"no-api": true
},
{
"type": "vcs",
"url": "https://github.com/sabberworm/PHP-CSS-Parser.git",
"no-api": true
}
],
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-install-cmd": [
"@prefix-dependencies"
],
"post-update-cmd": [
"@prefix-dependencies"
],
"phpcbf": "phpcbf",
"phpcs": "phpcs",
"phpmd": "phpmd . text phpmd.xml",
"phpstan": "phpstan analyse --memory-limit=512M",
"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"
]
}
}