-
Notifications
You must be signed in to change notification settings - Fork 17
/
composer.json
70 lines (70 loc) · 1.81 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
{
"name": "xwp/wp-foo-bar",
"type": "wordpress-plugin",
"description": "Plugin Scaffolding for WordPress.",
"homepage": "https://github.com/xwp/wp-foo-bar",
"license": "GPL-2.0-or-later",
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"platform": {
"php": "7.4.2",
"ext-filter": "7.1"
}
},
"require": {
"php": ">=5.6.20"
},
"require-dev": {
"automattic/vipwpcs": "@stable",
"dealerdirect/phpcodesniffer-composer-installer": "@stable",
"php-coveralls/php-coveralls": "^2.2.0",
"phpcompatibility/phpcompatibility-wp": "@stable",
"phpunit/phpcov": "^5.0",
"phpunit/phpunit": "^7",
"slowprog/composer-copy-file": "@stable",
"wp-coding-standards/wpcs": "@stable",
"xwp/wordpress-tests-installer": "@stable",
"xwp/wp-dev-lib": "@stable",
"yoast/phpunit-polyfills": "^1.0"
},
"scripts": {
"build": [
"composer install --no-dev --prefer-dist --optimize-autoloader --no-scripts"
],
"format": [
"phpcbf ."
],
"lint": [
"@composer validate --strict",
"phpcs ."
],
"post-install-cmd": [
"@setup"
],
"post-update-cmd": [
"@setup"
],
"readme": [
"vendor/xwp/wp-dev-lib/scripts/generate-markdown-readme"
],
"setup": [
"SlowProg\\CopyFile\\ScriptHandler::copy",
"if [ ! -f .git/hooks/pre-commit ]; then vendor/xwp/wp-dev-lib/scripts/install-pre-commit-hook.sh; fi",
"if [ ! -f .env ]; then cp .env.dist .env; fi"
],
"test": [
"phpunit"
],
"test-coverage": [
"phpunit --coverage-html tests/coverage/phpunit"
]
},
"extra": {
"installer-name": "foo-bar",
"copy-file": {
"tests/wp-tests-config.php": "vendor/xwp/wordpress-tests/phpunit/wp-tests-config.php"
}
}
}