-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
60 lines (60 loc) · 1.95 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
{
"name": "pluginwp/pluginwp",
"description": "",
"license": "GPL-2.0-only",
"authors": [
{
"name": "Plugin Author",
"homepage": "https://pluginwp.com"
}
],
"autoload": {
"psr-4": {
"PluginWP\\": "includes"
},
"classmap": [
"vendor_prefixed/"
]
},
"require": {
"league/container": "^4.2"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"johnpbloch/wordpress-core": "^6.0",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"wp-cli/dist-archive-command": "^2.0",
"wp-cli/wp-cli-bundle": "^2.6",
"wp-coding-standards/wpcs": "^2.3",
"wp-phpunit/wp-phpunit": "^6.0",
"yoast/phpunit-polyfills": "^1.0"
},
"config": {
"platform": {
"php": "7.4"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"sort-packages": true
},
"scripts": {
"lint": "phpcs --standard=phpcs.xml.dist",
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source",
"test": "phpunit",
"makepot": "wp i18n make-pot . --exclude=\"node_modules,vendor\" --headers='{\"Last-Translator\":\"[email protected]\",\"Language-Team\":\"[email protected]\",\"Report-Msgid-Bugs-To\":\"https://pluginwp.com/contact\"}'",
"build-release": [
"rm -r ./vendor",
"@composer dump-autoload",
"wp dist-archive ./",
"@composer install"
],
"phpscoper": [
"rm -rf ./vendor ./vendor_prefixed",
"@composer install --no-autoloader --no-dev --prefer-dist",
"php-scoper add-prefix --prefix='PluginWP\\Dependencies' --output-dir=./vendor_prefixed --force",
"rm -rf ./vendor",
"@composer dump-autoload --optimize"
]
}
}