|
| 1 | +> ℹ️ This repository uses `universe` as the default branch. |
| 2 | +> When cloning, make sure you are on `universe` rather than `main`. |
1 | 3 | { |
2 | 4 | "name": "starisian/sparxstar-starter", |
3 | 5 | "description": "A WordPress plugin template by Starisian Technologies with PSR-4 autoloading and modular architecture.", |
|
9 | 11 | "homepage": "https://www.starisian.com" |
10 | 12 | } |
11 | 13 | ], |
12 | | - "require": { |
13 | | - "php": "^8.2" |
| 14 | +"require": { |
| 15 | + "php": "^8.2", |
| 16 | + "composer/installers": "^2.3" |
| 17 | + }, |
| 18 | + "require-dev": { |
| 19 | + "phpunit/phpunit": "^10", |
| 20 | + "phpstan/phpstan": "^1", |
| 21 | + "squizlabs/php_codesniffer": "^3", |
| 22 | + "dealerdirect/phpcodesniffer-composer-installer": "^1" |
14 | 23 | }, |
15 | 24 | "autoload": { |
16 | 25 | "psr-4": { |
17 | | - "Starisian\\src\\": "src/" |
| 26 | + "Starisian\\": "src/" |
18 | 27 | } |
19 | 28 | }, |
20 | 29 | "scripts": { |
21 | | - "post-install-cmd": [ |
22 | | - "@composer dump-autoload" |
23 | | - ], |
24 | | - "post-update-cmd": [ |
25 | | - "@composer dump-autoload" |
26 | | - ] |
| 30 | + "lint:php": "phpcs -q", |
| 31 | + "analyze:php": "phpstan analyse -c phpstan.neon.dist --no-progress", |
| 32 | + "test:php": "phpunit", |
| 33 | + "post-install-cmd": ["@composer dump-autoload"], |
| 34 | + "post-update-cmd": ["@composer dump-autoload"] |
27 | 35 | }, |
28 | 36 | "config": { |
29 | 37 | "optimize-autoloader": true, |
30 | 38 | "preferred-install": "dist", |
31 | | - "sort-packages": true |
| 39 | + "sort-packages": true, |
| 40 | + "allow-plugins": { |
| 41 | + "dealerdirect/phpcodesniffer-composer-installer": true |
| 42 | + } |
32 | 43 | }, |
33 | 44 | "minimum-stability": "dev", |
34 | | - "prefer-stable": true |
| 45 | + "prefer-stable": true, |
| 46 | + "extra": { |
| 47 | + "installer-name": "starisian-plugin-template" |
| 48 | + } |
35 | 49 | } |
0 commit comments