-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathcomposer.json
More file actions
131 lines (131 loc) · 4.11 KB
/
composer.json
File metadata and controls
131 lines (131 loc) · 4.11 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "yoast/duplicate-post",
"description": "The go-to tool for cloning posts and pages, including the powerful Rewrite & Republish feature.",
"license": "GPL-2.0-or-later",
"type": "wordpress-plugin",
"keywords": [
"wordpress",
"post",
"copy",
"clone"
],
"authors": [
{
"name": "Enrico Battocchi & Team Yoast",
"email": "support@yoast.com",
"homepage": "https://yoast.com"
}
],
"homepage": "https://wordpress.org/plugins/duplicate-post/",
"support": {
"issues": "https://github.com/Yoast/duplicate-post/issues",
"forum": "https://wordpress.org/support/plugin/duplicate-post",
"source": "https://github.com/Yoast/duplicate-post",
"security": "https://yoast.com/security-program/"
},
"require": {
"php": "^7.4 || ^8.0",
"composer/installers": "^1.12.0 || ^2.0"
},
"require-dev": {
"yoast/wp-test-utils": "^1.2.1",
"yoast/yoastcs": "^3.4.0"
},
"minimum-stability": "alpha",
"prefer-stable": true,
"autoload": {
"classmap": [
"src/"
]
},
"autoload-dev": {
"psr-4": {
"Yoast\\WP\\Duplicate_Post\\Tests\\": "tests/"
},
"classmap": [
"config/"
]
},
"config": {
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"classmap-authoritative": true,
"lock": false
},
"scripts": {
"lint": [
"@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . -e php --show-deprecated --exclude vendor --exclude node_modules --exclude .git"
],
"cs": [
"Yoast\\WP\\Duplicate_Post\\Config\\Composer\\Actions::check_coding_standards"
],
"check-cs-thresholds": [
"@putenv YOASTCS_THRESHOLD_ERRORS=57",
"@putenv YOASTCS_THRESHOLD_WARNINGS=0",
"Yoast\\WP\\Duplicate_Post\\Config\\Composer\\Actions::check_cs_thresholds"
],
"check-cs": [
"@check-cs-warnings -n"
],
"check-cs-warnings": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcs"
],
"check-staged-cs": [
"@check-cs-warnings --filter=GitStaged"
],
"check-branch-cs": [
"Yoast\\WP\\Duplicate_Post\\Config\\Composer\\Actions::check_branch_cs"
],
"fix-cs": [
"@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf"
],
"test": [
"@php ./vendor/phpunit/phpunit/phpunit --no-coverage"
],
"coverage": [
"@php ./vendor/phpunit/phpunit/phpunit"
],
"test-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist --no-coverage"
],
"coverage-wp": [
"@php ./vendor/phpunit/phpunit/phpunit -c phpunit-wp.xml.dist"
],
"test-wp-env": [
"config/scripts/run-wp-env-tests.sh"
],
"coverage-wp-env": [
"config/scripts/run-wp-env-tests.sh --coverage"
],
"wp-env:stop": [
"npx wp-env stop"
],
"integration-test": [
"@test-wp"
],
"integration-coverage": [
"@coverage-wp"
]
},
"scripts-descriptions": {
"lint": "Check the PHP files for parse errors.",
"cs": "See a menu with the code style checking script options.",
"check-cs-thresholds": "Check the PHP files for code style violations and best practices and verify the number of issues does not exceed predefined thresholds.",
"check-cs": "Check the PHP files for code style violations and best practices, ignoring warnings.",
"check-cs-warnings": "Check the PHP files for code style violations and best practices, including warnings.",
"check-staged-cs": "Check the staged PHP files for code style violations and best practices.",
"check-branch-cs": "Check the PHP files changed in the current branch for code style violations and best practices.",
"fix-cs": "Auto-fix code style violations in the PHP files.",
"test": "Run the unit tests without code coverage.",
"coverage": "Run the unit tests with code coverage.",
"test-wp": "Run the WP unit tests without code coverage.",
"coverage-wp": "Run the WP unit tests with code coverage.",
"test-wp-env": "Run the WP integration tests via wp-env (Docker) without code coverage.",
"coverage-wp-env": "Run the WP integration tests via wp-env (Docker) with code coverage.",
"wp-env:stop": "Stop the wp-env Docker environment.",
"integration-test": "Deprecated. Alias for the \"test-wp\" script.",
"integration-coverage": "Deprecated. Alias for the \"coverage-wp\" script."
}
}