-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomposer.json
53 lines (53 loc) · 1.47 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
{
"name": "bernskioldmedia/wp-plugin-scaffold",
"description": "A WordPress plugin scaffold that we use at Bernskiold Media when developing client specific plugins.",
"type": "wordpress-plugin",
"config": {
"sort-packages": true,
"optimize-autoloader": true
},
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"php": "^7.4|^8.0",
"bernskioldmedia/wp-plugin-base": "^2.4.0",
"composer/installers": "~1.0"
},
"require-dev": {
"bernskioldmedia/bm-wp-devtools": "dev-main"
},
"license": "GPL-3.0+",
"authors": [
{
"name": "Bernskiold Media",
"email": "info@bernskioldmedia.com"
}
],
"autoload": {
"psr-4": {
"BernskioldMedia\\WP\\PluginScaffold\\": "src/"
},
"classmap": [
"vendor_prefixed/"
]
},
"scripts": {
"lint": "php-cs-fixer fix -v",
"test:cs": "phpcs-wp",
"test:types": "phpstan analyse --ansi --memory-limit=-1",
"test:lint": "php-cs-fixer fix -v --dry-run",
"test": [
"@test:lint",
"@test:types"
],
"build": [
"composer prefix-dependencies",
"composer dump-autoload"
],
"prefix-dependencies": [
"composer require humbug/php-scoper:dev-master --dev -W",
"php ./vendor/humbug/php-scoper/bin/php-scoper add-prefix --prefix=WPPS_Vendor --config config/php-scoper/bm-wp-plugin-base.php --output-dir vendor_prefixed/bernskioldmedia/wp-plugin-base --force",
"composer remove humbug/php-scoper --dev"
]
}
}