-
Notifications
You must be signed in to change notification settings - Fork 35
/
composer.json
171 lines (171 loc) · 6.45 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{
"name": "awesomemotive/wp-mail-smtp",
"description": "Make email delivery easy for WordPress. Connect with SMTP, Gmail, Outlook, SendGrid, Mailgun, Zoho, SES, and more.",
"type": "wordpress-plugin",
"homepage": "https://wordpress.org/plugins/wp-mail-smtp/",
"license": "GPL-3.0-or-later",
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"composer/installers": true,
"wikimedia/composer-merge-plugin": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform-check": false
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/awesomemotive/wpforms-phpcs.git"
},
{
"type": "path",
"url": ".packages/composer/phpcs-diff",
"options": {
"symlink": true
}
}
],
"require": {
"php": ">=7.2",
"composer/installers": "~2.2",
"google/apiclient": "2.14.0",
"paragonie/constant_time_encoding": "^2",
"guzzlehttp/guzzle": "7.8.1",
"monolog/monolog": "^2.9",
"symfony/polyfill-intl-idn": "1.31.0",
"symfony/polyfill-mbstring": "1.31.0",
"symfony/polyfill-php72": "1.31.0",
"wikimedia/composer-merge-plugin": "2.1.0",
"woocommerce/action-scheduler": "3.7.4"
},
"autoload": {
"psr-4": {
"WPMailSMTP\\": "src"
},
"classmap": [
"vendor_prefixed"
],
"files": [
"vendor_prefixed/mtdowling/jmespath.php/src/JmesPath.php",
"vendor_prefixed/aws/aws-sdk-php/src/functions.php",
"vendor_prefixed/symfony/polyfill-mbstring/bootstrap.php",
"vendor_prefixed/symfony/polyfill-intl-idn/bootstrap.php",
"vendor_prefixed/symfony/deprecation-contracts/function.php",
"vendor_prefixed/guzzlehttp/guzzle/src/functions_include.php"
]
},
"require-dev": {
"awesomemotive/wpforms-phpcs": "^1.0.5",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"phpcompatibility/php-compatibility": "^9.3",
"roave/security-advisories": "dev-master",
"wp-coding-standards/wpcs": "^2.3",
"wpforms/phpcs-diff": "^1.2"
},
"scripts": {
"php-compatibility-lite" : [
"vendor/bin/phpcs -p ./*.php ./src/* --ignore='./src/Pro/' --standard=PHPCompatibility --runtime-set ignore_warnings_on_exit true --runtime-set testVersion 7.2-"
],
"php-compatibility-pro" : [
"vendor/bin/phpcs -p ./*.php ./src/* --standard=PHPCompatibility --runtime-set ignore_warnings_on_exit true --runtime-set testVersion 7.2-"
],
"php-compatibility" : [
"@php-compatibility-lite",
"@php-compatibility-pro"
],
"pre-install-cmd": "@create-vendor-prefix-folder",
"pre-update-cmd": "@create-vendor-prefix-folder",
"create-vendor-prefix-folder": "npm run gulp composer:create_vendor_prefixed_folder",
"phpcs-install-standards": [
"vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/awesomemotive/wpforms-phpcs,vendor/phpcompatibility/php-compatibility"
],
"prefix-dependencies": [
"@composer --working-dir=php-scoper install",
"php-scoper/vendor/bin/php-scoper add-prefix --config=php-scoper/config.php --output-dir=./vendor_prefixed --force",
"npm run gulp composer:delete_prefixed_vendor_libraries",
"npm run gulp composer:delete_unneeded_vendor_libraries",
"npm run gulp prefix_outside_files",
"@composer dump-autoload -o -a"
],
"prefix-dependencies-optimize": [
"@composer --working-dir=php-scoper install",
"php-scoper/vendor/bin/php-scoper add-prefix --config=php-scoper/config.php --output-dir=./vendor_prefixed --force",
"npm run gulp composer:delete_prefixed_vendor_libraries",
"npm run gulp composer:delete_unneeded_vendor_libraries",
"npm run gulp prefix_outside_files",
"@composer dump-autoload -o -a"
],
"prefix-dependencies-lite": [
"@prefix-dependencies",
"npm run gulp composer:remove_pro_autoload_files",
"@composer dump-autoload --no-plugins -o -a"
],
"install-tests": [
"@composer --no-scripts --dev --prefer-dist require phpunit/phpunit:9.6.0",
"@composer --no-scripts --dev --prefer-dist require codeception/codeception:4.1.22",
"@composer --no-scripts --dev --prefer-dist require lucatume/wp-browser:3.0.17",
"@composer --no-scripts --dev --prefer-dist require codeception/module-asserts:^1.3",
"@composer --no-scripts --dev --prefer-dist require codeception/module-db:^1.0",
"@composer --no-scripts --dev --prefer-dist require codeception/module-webdriver:^1.1",
"@composer --no-scripts --dev --prefer-dist require codeception/module-cli:^1.0",
"@composer --no-scripts --dev --prefer-dist require codeception/util-universalframework:^1.0",
"@composer --no-scripts --dev --prefer-dist require brain/monkey:^2.4",
"@composer --no-scripts --dev --prefer-dist require mockery/mockery:^1.4",
"@composer --no-scripts --dev --prefer-dist require wp-cli/extension-command"
],
"dev-composer-install": [
"@create-vendor-prefix-folder",
"@composer install --prefer-dist --no-scripts",
"@install-tests",
"@prefix-dependencies",
"@phpcs-install-standards"
],
"build-lite": [
"composer update --root-reqs --no-dev --no-plugins -o -a",
"@prefix-dependencies-lite"
],
"build-pro": [
"composer update --root-reqs --no-dev -o -a",
"@prefix-dependencies-optimize"
],
"check-plugin-php-version": "@php php-scoper/check-plugin-php-version.php",
"check-build-php-version": "@php php-scoper/check-build-php-version.php",
"build-lite-step-1": [
"@check-plugin-php-version",
"composer update --root-reqs --no-dev --no-plugins",
"@composer dump-autoload --no-plugins"
],
"build-lite-step-2": [
"npm run gulp build:lite_no_composer"
],
"build-pro-step-1": [
"@check-plugin-php-version",
"composer update --root-reqs --no-dev"
],
"build-pro-step-2": [
"npm run gulp build:pro_no_composer"
]
},
"extra": {
"installer-paths": {
"vendor/{$vendor}/{$name}/": ["woocommerce/action-scheduler"]
},
"merge-plugin": {
"include": [
"src/Pro/composer.json"
],
"recurse": true,
"replace": false,
"ignore-duplicates": false,
"merge-dev": true,
"merge-extra": true,
"merge-extra-deep": false,
"merge-scripts": true
},
"phpcodesniffer-search-depth": 1
}
}