-
Notifications
You must be signed in to change notification settings - Fork 383
/
composer.json
105 lines (105 loc) · 3.52 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
{
"name": "ampproject/amp-wp",
"description": "WordPress plugin for adding AMP support.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"homepage": "https://github.com/ampproject/amp-wp",
"require": {
"php": ">=7.4 || ^8.0",
"ext-curl": "*",
"ext-date": "*",
"ext-dom": "*",
"ext-filter": "*",
"ext-iconv": "*",
"ext-json": "*",
"ext-libxml": "*",
"ext-spl": "*",
"ampproject/amp-toolbox": "0.11.6",
"cweagans/composer-patches": "^1.0",
"fasterimage/fasterimage": "1.5.0",
"sabberworm/php-css-parser": "8.5.1"
},
"require-dev": {
"automattic/vipwpcs": "^3.0",
"civicrm/composer-downloads-plugin": "^4.0",
"google/cloud-storage": "^1.0",
"mikey179/vfsstream": "1.6.12",
"mustache/mustache": "^2",
"php-stubs/wordpress-stubs": "^6.0",
"phpcompatibility/phpcompatibility-wp": "2.1.5",
"phpdocumentor/reflection": "^3.0",
"roave/security-advisories": "dev-latest",
"sirbrillig/phpcs-variable-analysis": "2.11.19",
"wp-cli/export-command": "^2.0",
"wp-cli/extension-command": "^2.0",
"wp-cli/wp-cli": "^2.0",
"wp-cli/wp-cli-tests": "^4.0",
"wp-coding-standards/wpcs": "^3.0",
"yoast/wp-test-utils": "^1.0"
},
"suggest": {
"ext-intl": "Enables use of idn_to_utf8() to convert punycode domains to UTF-8 for use with an AMP Cache.",
"ext-mbstring": "Used by PHP-CSS-Parser when working with stylesheets."
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"AmpProject\\AmpWP\\": "src/"
},
"classmap": [
"includes/"
],
"files": [
"includes/bootstrap.php"
]
},
"autoload-dev": {
"psr-4": {
"AmpProject\\AmpWP\\Documentation\\": "docs/src/",
"AmpProject\\AmpWP\\Tests\\": "tests/php/src/"
},
"classmap": [
"tests/php/validation/"
],
"files": [
"tests/php/register-wp-cli-commands.php",
"docs/includes/register-wp-cli-commands.php"
]
},
"config": {
"allow-plugins": {
"civicrm/composer-downloads-plugin": true,
"cweagans/composer-patches": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "7.4"
},
"sort-packages": true
},
"extra": {
"composer-exit-on-patch-failure": true,
"downloads": {
"phpstan": {
"path": "vendor/bin/phpstan",
"type": "phar",
"url": "https://github.com/phpstan/phpstan/releases/latest/download/phpstan.phar"
}
},
"patches": {
"sabberworm/php-css-parser": {
"1. Validate name-start code points for identifier <https://github.com/westonruter/PHP-CSS-Parser/pull/2>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/cc791ad...westonruter:PHP-CSS-Parser:fix/malformed-identifier-without-tests.diff",
"2. Fix parsing CSS selectors which contain commas <https://github.com/westonruter/PHP-CSS-Parser/pull/1>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/cc791ad...westonruter:PHP-CSS-Parser:fix/selector-comma-parsing-without-tests.diff",
"3. Parse simple expressions <https://github.com/sabberworm/PHP-CSS-Parser/pull/389>": "https://github.com/sabberworm/PHP-CSS-Parser/compare/cc791ad...westonruter:PHP-CSS-Parser:fix/expression-parsing-without-tests.diff"
}
}
},
"scripts": {
"analyze": "if [ -z $TEST_SKIP_PHPSTAN ]; then phpstan --version; phpstan analyze --ansi --memory-limit=2G; fi",
"pre-commit": [
"npm run lint:staged"
],
"prepare-tests": "install-package-tests"
}
}