|
1 | 1 | { |
2 | 2 | "name": "automattic/zoninator", |
3 | | - "type": "wordpress-plugin", |
4 | 3 | "description": "Zone Editor", |
5 | | - "homepage": "https://github.com/Automattic/zoninator/", |
6 | 4 | "license": "GPL-2.0-or-later", |
| 5 | + "type": "wordpress-plugin", |
7 | 6 | "authors": [ |
8 | 7 | { |
9 | 8 | "name": "Automattic", |
10 | 9 | "homepage": "https://automattic.com/" |
11 | 10 | } |
12 | 11 | ], |
| 12 | + "homepage": "https://github.com/Automattic/zoninator/", |
| 13 | + "support": { |
| 14 | + "issues": "https://github.com/Automattic/zoninator/issues", |
| 15 | + "source": "https://github.com/Automattic/zoninator" |
| 16 | + }, |
13 | 17 | "require": { |
14 | 18 | "php": ">=7.4", |
15 | | - "composer/installers": "~1.0" |
| 19 | + "composer/installers": "^1.0 || ^2.0" |
16 | 20 | }, |
17 | 21 | "require-dev": { |
18 | 22 | "automattic/vipwpcs": "^3", |
19 | 23 | "php-parallel-lint/php-parallel-lint": "^1.0", |
20 | 24 | "phpcompatibility/phpcompatibility-wp": "^2.1", |
21 | 25 | "phpunit/phpunit": "^9", |
22 | | - "wp-coding-standards/wpcs": "^3", |
23 | | - "yoast/phpunit-polyfills": "^1", |
24 | | - "rector/rector": "^1.2" |
| 26 | + "rector/rector": "^1.2", |
| 27 | + "yoast/phpunit-polyfills": "^1" |
| 28 | + }, |
| 29 | + "config": { |
| 30 | + "allow-plugins": { |
| 31 | + "composer/installers": true, |
| 32 | + "dealerdirect/phpcodesniffer-composer-installer": true |
| 33 | + }, |
| 34 | + "sort-packages": true |
25 | 35 | }, |
26 | 36 | "scripts": { |
27 | | - "cbf": [ |
28 | | - "@php ./vendor/bin/phpcbf" |
29 | | - ], |
30 | 37 | "coverage": [ |
31 | 38 | "@php ./vendor/bin/phpunit --coverage-html ./build/coverage-html" |
32 | 39 | ], |
33 | 40 | "coverage-ci": [ |
34 | 41 | "@php ./vendor/bin/phpunit" |
35 | 42 | ], |
36 | 43 | "cs": [ |
37 | | - "@php ./vendor/bin/phpcs" |
| 44 | + "@php ./vendor/bin/phpcs -q" |
| 45 | + ], |
| 46 | + "cs-fix": [ |
| 47 | + "@php ./vendor/bin/phpcbf -q" |
38 | 48 | ], |
39 | 49 | "i18n": [ |
40 | 50 | "@php wp i18n make-pot . ./languages/zoninator.pot" |
|
48 | 58 | "test-integration": "wp-env run tests-cli --env-cwd=wp-content/plugins/zoninator ./vendor/bin/phpunit --testsuite WP_Tests", |
49 | 59 | "test-integration-ms": "wp-env run tests-cli --env-cwd=wp-content/plugins/zoninator /bin/bash -c 'WP_MULTISITE=1 ./vendor/bin/phpunit --testsuite WP_Tests'" |
50 | 60 | }, |
51 | | - "support": { |
52 | | - "issues": "https://github.com/Automattic/zoninator/issues", |
53 | | - "source": "https://github.com/Automattic/zoninator" |
54 | | - }, |
55 | | - "config": { |
56 | | - "allow-plugins": { |
57 | | - "composer/installers": true, |
58 | | - "dealerdirect/phpcodesniffer-composer-installer": true |
59 | | - } |
| 61 | + "scripts-descriptions": { |
| 62 | + "coverage": "Run tests with code coverage reporting", |
| 63 | + "coverage-ci": "Run tests with code coverage reporting and send results to stdout", |
| 64 | + "cs": "Run PHP Code Sniffer", |
| 65 | + "cs-fix": "Run PHP Code Sniffer and fix violations", |
| 66 | + "i18n": "Generate a POT file for translation", |
| 67 | + "lint": "Run PHP linting", |
| 68 | + "lint-ci": "Run PHP linting and send results to stdout", |
| 69 | + "test-integration": "Run all integration tests for the Zoninator plugin", |
| 70 | + "test-integration-ms": "Run integration tests for the Zoninator plugin in multisite mode" |
60 | 71 | } |
61 | 72 | } |
0 commit comments