-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
composer.json
83 lines (83 loc) · 2.48 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
{
"name": "pedro-mendonca/gp-format-csv",
"description": "Adds the CSV format to GlotPress to export/import translations and originals.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"authors": [
{
"name": "Pedro Mendonça",
"email": "ped.gaspar@gmail.com",
"homepage": "https://pedromendonca.pt"
}
],
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/pedro-mendonca"
}
],
"require": {
"php": ">=7.4"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"ergebnis/composer-normalize": "^2.44.0",
"johnbillion/wp-compat": "^0.2.3",
"pedro-mendonca/glotpress-stubs": "4.0.1",
"phpcompatibility/phpcompatibility-wp": "^2.1.5",
"phpmd/phpmd": "^2.15.0",
"sirbrillig/phpcs-variable-analysis": "^2.11.19",
"szepeviktor/phpstan-wordpress": "^1.3.5",
"phpstan/extension-installer": "^1.4.3",
"wp-coding-standards/wpcs": "^3.1.0"
},
"archive": {
"exclude": [
"composer.*"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
},
"optimize-autoloader": true
},
"scripts": {
"compat:php": "phpcs -v --standard=phpcompat.xml.dist",
"format:php": "phpcbf -v --standard=phpcs.xml.dist",
"lint": [
"@lint:php",
"@compat:php",
"@lint:phpstan",
"@lint:md:docs",
"@lint:pkg-json"
],
"lint:md:docs": "npm run lint:md:docs",
"lint:php": "phpcs -v --standard=phpcs.xml.dist",
"lint:phpmd": "phpmd . text phpmd.xml.dist",
"lint:phpstan": "phpstan analyse -c phpstan.neon.dist --memory-limit=1G",
"lint:pkg-json": "npm run lint:pkg-json",
"phpcs-i": "phpcs -i",
"scripts-list": "composer run-script --list",
"zip": [
"composer install --no-dev",
"composer archive --file=gp-format-csv --format=zip",
"composer install"
]
},
"scripts-descriptions": {
"compat:php": "Runs the PHPCompatibilityWP code sniffer.",
"format:php": "Runs the PHP code sniffer and automatically fix errors.",
"lint": "Runs all available code linting (PHP_CodeSniffer, JS and MD lint).",
"lint:md:docs": "Run npm MD linter.",
"lint:php": "Runs the PHP code sniffer.",
"lint:phpmd": "Runs the PHPMD code static analysis.",
"lint:phpstan": "Runs the PHPStan code static analysis.",
"lint:pkg-json": "Run npm package.json linter.",
"phpcs-i": "Log PHPCS debug information.",
"scripts-list": "List all Composer scripts.",
"zip": "Build production zip archive."
}
}