-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
46 lines (46 loc) · 1.55 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
{
"require": {
"inc2734/mimizuku": "*",
"composer/installers": "^1.2"
},
"require-dev": {
"squizlabs/php_codesniffer": "*",
"wp-coding-standards/wpcs": "*",
"phpmd/phpmd": "2.*"
},
"extra": {
"installer-paths": {
"../{$name}": ["type:wordpress-theme"],
"../../plugins/{$name}": ["type:wordpress-plugin"]
}
},
"config": {
"process-timeout": 0
},
"scripts": {
"test": [
"php vendor/bin/phpcs -p -s -v -n . --standard=./codesniffer.ruleset.xml --extensions=php",
"vendor/bin/phpmd ./ text phpmd.ruleset.xml --suffixes php --exclude /vendor/,/tests/",
"bash app/bin/phpunit.sh"
],
"build-mimizuku": [
"cd $(cd $(dirname $0) && pwd)/../mimizuku && composer install --no-dev && npm install && npm run gulp build"
],
"build-mimizuku-child": [
"cd $(cd $(dirname $0) && pwd)/ && npm install && npm run gulp build"
],
"post-install-cmd": [
"composer build-mimizuku",
"composer build-mimizuku-child"
],
"post-update-cmd": [
"composer build-mimizuku",
"npm run gulp build"
],
"scaffold-tests": "bash $(cd $(dirname $0) && pwd)/../mimizuku/app/bin/scaffold-tests.sh",
"theme-unit-test": "bash $(cd $(dirname $0) && pwd)/../mimizuku/app/bin/theme-unit-test.sh",
"theme-unit-test-ja": "bash $(cd $(dirname $0) && pwd)/../mimizuku/app/bin/theme-unit-test-ja.sh",
"wpphpunit": "bash $(cd $(dirname $0) && pwd)/../mimizuku/app/bin/wpphpunit.sh",
"phpunit": "bash $(cd $(dirname $0) && pwd)/../mimizuku/app/bin/phpunit.sh"
}
}