-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
composer.json
92 lines (92 loc) · 2.92 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
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "lloc/multisite-language-switcher",
"description": "Multisite Language Switcher",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"homepage": "http://msls.co",
"require": {
"php": ">=7.4",
"composer/installers": "~2.3.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^10",
"brain/monkey": "^2.6",
"phpstan/phpstan": "^1.11",
"szepeviktor/phpstan-wordpress": "^1.3",
"phpstan/extension-installer": "^1.3",
"antecedent/patchwork": "^2.1",
"squizlabs/php_codesniffer": "^3.9",
"phpcompatibility/php-compatibility": "^9.3",
"wp-coding-standards/wpcs": "^3.0",
"smeghead/php-class-diagram": "^1.3",
"phpstan/phpstan-mockery": "^1.1"
},
"autoload": {
"psr-4": {
"lloc\\Msls\\": "includes/"
}
},
"autoload-dev": {
"psr-4": {
"lloc\\MslsTests\\": "tests/phpunit/"
}
},
"scripts": {
"test": "vendor/bin/phpunit",
"coverage": "php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-html tests/coverage",
"analyze": "vendor/bin/phpstan analyze",
"playwright": "npx playwright test",
"php74": "phpcs -p ./*.php includes/ --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 7.4",
"php81": "phpcs -p ./*.php includes/ --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1",
"php82": "phpcs -p ./*.php includes/ --standard=vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.2",
"prepare": "wget -O build/translations.json http://api.wordpress.org/translations/core/1.0/",
"flags-png": "php bin/flags-png.php > flags/flags.php",
"flags-svg": "php bin/flags-svg.php > css/flags.php",
"diagram:class": "vendor/bin/php-class-diagram --php8 includes > diagrams/msls-class.puml",
"diagram:package": "vendor/bin/php-class-diagram --package-diagram --php8 includes > diagrams/msls-package.puml",
"git-release": "bin/git-release.sh",
"build": [
"@prepare",
"@flags-png",
"@flags-svg",
"npm install",
"npm run build",
"npm run uglify",
"npm run less",
"npm run build-msls-block",
"@git-release"
],
"githooks": [
"if [ -e bin/githooks/pre-commit ]; then cp bin/githooks/pre-commit ./.git/hooks/; fi",
"if [ -e .git/hooks/pre-commit ]; then chmod 0755 .git/hooks/pre-commit; fi"
],
"post-install-cmd": [
"@githooks"
],
"post-update-cmd": [
"@githooks"
]
},
"authors": [
{
"name": "Dennis Ploetner",
"email": "[email protected]",
"homepage": "http://lloc.de"
}
],
"keywords": [
"multilingual",
"multisite",
"language",
"switcher",
"localization"
],
"config": {
"allow-plugins": {
"composer/installers": true,
"phpstan/extension-installer": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}