|
11 | 11 | } |
12 | 12 | ], |
13 | 13 | "require" : { |
14 | | - "php" : ">=5.6", |
15 | | - "php-school/php-workshop": "^2.0" |
| 14 | + "php" : ">=7.3", |
| 15 | + "php-school/php-workshop": "^3.0" |
16 | 16 | }, |
17 | 17 | "require-dev": { |
18 | | - "phpunit/phpunit": "~4.1", |
19 | | - "squizlabs/php_codesniffer": "~2.0", |
20 | | - "composer/composer": "^1.0" |
| 18 | + "phpunit/phpunit": "^9", |
| 19 | + "squizlabs/php_codesniffer": "^3.5", |
| 20 | + "composer/composer": "^2.0", |
| 21 | + "phpstan/phpstan": "^0.12.52" |
21 | 22 | }, |
22 | 23 | "autoload" : { |
23 | 24 | "psr-4" : { |
|
31 | 32 | "pre-install-cmd": "WorkshopCreator\\Creator::install", |
32 | 33 | "pre-update-cmd": "WorkshopCreator\\Creator::install", |
33 | 34 | "post-install-cmd": "WorkshopCreator\\Creator::summary", |
34 | | - "post-update-cmd": "WorkshopCreator\\Creator::summary" |
| 35 | + "post-update-cmd": "WorkshopCreator\\Creator::summary", |
| 36 | + "test": [ |
| 37 | + "@unit-tests", |
| 38 | + "@cs", |
| 39 | + "@static" |
| 40 | + ], |
| 41 | + "unit-tests": "phpunit", |
| 42 | + "cs" : [ |
| 43 | + "phpcs src --standard=PSR12", |
| 44 | + "phpcs test --standard=PSR12" |
| 45 | + ], |
| 46 | + "cs-fix" : [ |
| 47 | + "phpcbf src --standard=PSR12 --encoding=UTF-8", |
| 48 | + "phpcbf test --standard=PSR12 --encoding=UTF-8" |
| 49 | + ], |
| 50 | + "static": "phpstan --ansi analyse --level max src" |
35 | 51 | }, |
36 | 52 | "bin": ["bin/my-workshop"] |
37 | 53 | } |
0 commit comments