-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
composer.json
103 lines (103 loc) · 2.83 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
93
94
95
96
97
98
99
100
101
102
103
{
"name": "pedro-mendonca/translation-tools",
"description": "Translation tools for your WordPress install.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"authors": [
{
"name": "Pedro Mendonça",
"email": "[email protected]",
"homepage": "https://pedromendonca.pt"
}
],
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/pedro-mendonca"
}
],
"require": {
"php": ">=7.4",
"gettext/gettext": "^4.8.12"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"ergebnis/composer-normalize": "^2.43.0",
"phpcompatibility/phpcompatibility-wp": "^2.1.5",
"phpmd/phpmd": "^2.15.0",
"phpstan/extension-installer": "^1.4.1",
"sirbrillig/phpcs-variable-analysis": "^2.11.19",
"szepeviktor/phpstan-wordpress": "^1.3.5",
"wp-coding-standards/wpcs": "^3.1.0"
},
"autoload": {
"classmap": [
"includes/",
"assets/lib/locales/"
]
},
"archive": {
"exclude": [
"composer.*",
"!/vendor"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true
},
"optimize-autoloader": true
},
"scripts": {
"build": [
"@lint",
"@compile"
],
"compat:php": "phpcs -v --standard=phpcompat.xml.dist",
"compile": [
"@compile:js"
],
"compile:js": "npm run compile:js",
"format:php": "phpcbf -v --standard=phpcs.xml.dist",
"lint": [
"@lint:php",
"@compat:php",
"@lint:phpstan",
"@lint:js",
"@lint:md:docs",
"@lint:pkg-json"
],
"lint:js": "npm run lint:js",
"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 --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=translation-tools --format=zip",
"composer install"
]
},
"scripts-descriptions": {
"build": "Lint, test and compile all PHP, JS and MD.",
"compat:php": "Runs the PHPCompatibilityWP code sniffer.",
"compile": "Compile all JavaScript",
"compile:js": "Run npm UglifyJS to compile minified JS.",
"format:php": "Runs the PHP code sniffer and automatically fix errors.",
"lint": "Runs all available code linting (PHP_CodeSniffer, JS and MD lint).",
"lint:js": "Run npm JS linter.",
"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."
}
}