|
18 | 18 | "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", |
19 | 19 | "wp-coding-standards/wpcs": "^2.3.0", |
20 | 20 | "phpcompatibility/phpcompatibility-wp": "^2.1.1", |
21 | | - "szepeviktor/phpstan-wordpress": "^0.7.5" |
| 21 | + "szepeviktor/phpstan-wordpress": "^0.7.6" |
22 | 22 | }, |
23 | 23 | "config": { |
24 | 24 | "optimize-autoloader": true |
|
33 | 33 | "format": "phpcbf -v --standard=phpcs.xml", |
34 | 34 | "compat": "phpcs -v --standard=phpcompat.xml", |
35 | 35 | "analyse": "phpstan analyse -c phpstan.neon --memory-limit=1G", |
36 | | - "scripts-list": "composer run-script --list" |
| 36 | + "scripts-list": "composer run-script --list", |
| 37 | + "build": [ |
| 38 | + "composer install --no-dev", |
| 39 | + "composer archive --file=translation-tools --format=zip" |
| 40 | + ] |
37 | 41 | }, |
38 | 42 | "scripts-descriptions": { |
39 | 43 | "test": "Runs all available code tests (PHP_CodeSniffer and PHPStan).", |
|
42 | 46 | "format": "Runs the PHP code sniffer and automatically fix errors.", |
43 | 47 | "compat": "Runs the PHPCompatibilityWP code sniffer.", |
44 | 48 | "analyse": "Runs the PHPStan code static analysis.", |
45 | | - "scripts-list": "List all Composer scripts." |
46 | | - } |
| 49 | + "scripts-list": "List all Composer scripts.", |
| 50 | + "build": "Remove dev dependencies, build zip archive." |
| 51 | + }, |
| 52 | + "archive": { |
| 53 | + "exclude": [ |
| 54 | + "composer.*", |
| 55 | + "!/vendor" |
| 56 | + ] |
| 57 | + }, |
| 58 | + "funding": [ |
| 59 | + { |
| 60 | + "type": "github", |
| 61 | + "url": "https://github.com/sponsors/pedro-mendonca" |
| 62 | + } |
| 63 | + ] |
47 | 64 | } |
0 commit comments