Skip to content

Commit ec1deec

Browse files
Update composer.json
Signed-off-by: Max Barrett <maximilliangroup@gmail.com>
1 parent 52b06ad commit ec1deec

1 file changed

Lines changed: 25 additions & 11 deletions

File tree

composer.json

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
> ℹ️ This repository uses `universe` as the default branch.
2+
> When cloning, make sure you are on `universe` rather than `main`.
13
{
24
"name": "starisian/sparxstar-starter",
35
"description": "A WordPress plugin template by Starisian Technologies with PSR-4 autoloading and modular architecture.",
@@ -9,27 +11,39 @@
911
"homepage": "https://www.starisian.com"
1012
}
1113
],
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"
1423
},
1524
"autoload": {
1625
"psr-4": {
17-
"Starisian\\src\\": "src/"
26+
"Starisian\\": "src/"
1827
}
1928
},
2029
"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"]
2735
},
2836
"config": {
2937
"optimize-autoloader": true,
3038
"preferred-install": "dist",
31-
"sort-packages": true
39+
"sort-packages": true,
40+
"allow-plugins": {
41+
"dealerdirect/phpcodesniffer-composer-installer": true
42+
}
3243
},
3344
"minimum-stability": "dev",
34-
"prefer-stable": true
45+
"prefer-stable": true,
46+
"extra": {
47+
"installer-name": "starisian-plugin-template"
48+
}
3549
}

0 commit comments

Comments
 (0)