-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
68 lines (68 loc) · 1.82 KB
/
composer.json
File metadata and controls
68 lines (68 loc) · 1.82 KB
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
{
"name": "wpscholar/random-post-on-refresh",
"description": "A WordPress plugin that allows you to load a random post on every page load.",
"version": "1.2.3",
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Micah Wood",
"homepage": "https://wpscholar.com"
}
],
"require": {
"php": ">=7.4"
},
"require-dev": {
"phpunit/phpunit": "^9.6.0",
"wp-cli/wp-cli-bundle": "^2.11",
"wp-phpunit/wp-phpunit": "^6.8",
"wpscholar/phpcs-standards-wpscholar": "^1.0",
"yoast/phpunit-polyfills": "^4.0"
},
"scripts": {
"fix": [
"vendor/bin/phpcbf ."
],
"i18n": [
"composer run i18n:pot",
"composer run i18n:po",
"echo 'Add missing translation strings in .po files, then run composer run i18n:mo'"
],
"i18n:pot": [
"vendor/bin/wp i18n make-pot . ./languages/random-post-on-refresh.pot --headers='{\"POT-Creation-Date\":null}'"
],
"i18n:po": [
"vendor/bin/wp i18n update-po ./languages/random-post-on-refresh.pot ./languages"
],
"i18n:mo": [
"vendor/bin/wp i18n make-mo ./languages"
],
"lint": [
"vendor/bin/phpcs . -s"
],
"test": [
"vendor/bin/phpunit"
],
"test:coverage": [
"vendor/bin/phpunit --coverage-clover coverage.xml"
]
},
"scripts-descriptions": {
"fix": "Automatically fix coding standards issues where possible.",
"i18n": "Generate a .pot file for translation.",
"lint": "Check files against coding standards.",
"test": "Run PHPUnit tests.",
"test:coverage": "Run tests with full coverage reporting."
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "7.4"
},
"optimize-autoloader": true,
"sort-packages": true
}
}