-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
77 lines (77 loc) · 2.9 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
{
"name": "pronamic/wp-datetime",
"description": "WordPress DateTime library.",
"license": "GPL-3.0-or-later",
"type": "wordpress-plugin",
"autoload": {
"psr-4": {
"Pronamic\\WordPress\\DateTime\\": "src"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"koodimonni/composer-dropin-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"roots/wordpress-core-installer": true,
"bamarni/composer-bin-plugin": true
}
},
"repositories": [
{
"type": "composer",
"url": "https://wp-languages.github.io"
}
],
"require": {
"php": ">=7.4"
},
"require-dev": {
"automattic/wordbless": "^0.4.1",
"bamarni/composer-bin-plugin": "^1.4",
"koodimonni-language/de_de": "*",
"koodimonni-language/en_gb": "*",
"koodimonni-language/fr_fr": "*",
"koodimonni-language/ja": "*",
"koodimonni-language/nl_nl": "*",
"overtrue/phplint": "^9.0",
"php-coveralls/php-coveralls": "^2.4",
"php-stubs/wordpress-globals": "^0.2.0",
"phpmd/phpmd": "^2.9",
"pronamic/pronamic-cli": "^1.1",
"pronamic/wp-coding-standards": "^2.0",
"roots/wordpress": "^6.0",
"yoast/phpunit-polyfills": "^2.0"
},
"scripts": {
"coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover build/logs/clover.xml --coverage-text",
"coverage-clover": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover build/logs/clover.xml",
"coverage-html": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-html build/coverage-html",
"coverage-text": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text",
"coveralls": "vendor/bin/php-coveralls -v",
"phpcbf": "XDEBUG_MODE=off vendor/bin/phpcbf",
"phpcs": "XDEBUG_MODE=off vendor/bin/phpcs -s -v",
"phplint": "vendor/bin/phplint",
"phpmd": "vendor/bin/phpmd src,tests text phpmd.ruleset.xml --suffixes php",
"phpstan": "vendor/bin/phpstan analyse --memory-limit=-1",
"phpunit": "vendor/bin/phpunit",
"post-autoload-dump": [
"mkdir -p wordpress/wp-content/languages",
"mkdir -p wordpress/wp-content/languages/plugins",
"mkdir -p wordpress/wp-content/languages/themes",
"for file in languages/*.mo ; do cp $file wordpress/wp-content/languages/plugins/ ; done",
"for file in vendor/koodimonni-language/*/* ; do cp $file wordpress/wp-content/languages/ ; done",
"for file in vendor/koodimonni-language/*/* ; do cp $file wordpress/wp-content/languages/plugins/ ; done",
"for file in vendor/koodimonni-language/*/* ; do cp $file wordpress/wp-content/languages/themes/ ; done"
],
"post-install-cmd": [
"echo 'Optionally run: composer bin all install'",
"mkdir -p wordpress/wp-content && cp vendor/automattic/wordbless/src/dbless-wpdb.php wordpress/wp-content/db.php"
],
"post-update-cmd": [
"echo 'Optionally run: composer bin all update'",
"mkdir -p wordpress/wp-content && cp vendor/automattic/wordbless/src/dbless-wpdb.php wordpress/wp-content/db.php"
],
"psalm": "vendor/bin/psalm"
}
}