-
Notifications
You must be signed in to change notification settings - Fork 22
/
composer.json
80 lines (80 loc) · 2.31 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
{
"name": "material-components/material-design-for-wordpress",
"type": "wordpress-plugin",
"description": "Material Design plugin for WordPress.",
"homepage": "https://github.com/material-components/material-design-for-wordpress",
"license": "Apache-2.0",
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
"sort-packages": true,
"platform": {
"php": "7.4.2",
"ext-filter": "7.1"
},
"allow-plugins": {
"xwp/wordpress-tests-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"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 ./plugin",
"phpcbf ./theme --standard=phpcs-theme.xml"
],
"lint": [
"@composer validate --strict",
"phpcs ./plugin",
"phpcs ./theme --standard=phpcs-theme.xml"
],
"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 plugin/tests/coverage/html"
],
"test-coveralls": [
"phpunit --coverage-clover plugin/tests/coverage/clover.xml",
"php-coveralls --coverage_clover=plugin/tests/coverage/clover.xml -v"
]
},
"extra": {
"installer-name": "material-design",
"copy-file": {
"plugin/tests/wp-tests-config.php": "vendor/xwp/wordpress-tests/phpunit/wp-tests-config.php"
}
}
}