Skip to content

Commit abd7276

Browse files
authored
Refactor composer.json scripts and dependencies
1 parent d4e7018 commit abd7276

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

composer.json

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,19 @@
1313
"brain/monkey": "2.*",
1414
"phpstan/phpstan": "^1.8",
1515
"szepeviktor/phpstan-wordpress": "^1.1",
16-
"phpstan/extension-installer": "^1.1",
17-
"wp-coding-standards/wpcs": "^3.0"
16+
"phpstan/extension-installer": "^1.1"
1817
},
1918
"autoload-dev": {
2019
"files": [ "MslsMenu.php" ]
2120
},
2221
"scripts": {
2322
"test": "vendor/bin/pest",
2423
"coverage": "php -d xdebug.mode=coverage vendor/bin/pest --coverage",
25-
"phpstan": "vendor/bin/phpstan analyze",
24+
"analyze": "vendor/bin/phpstan analyze",
2625
"git-release": "bin/git-release.sh",
26+
"build": [
2727
"@composer update --no-dev",
2828
"@git-release"
29-
],
30-
"githooks": [
31-
"if [ -e bin/githooks/pre-commit ]; then cp bin/githooks/pre-commit ./.git/hooks/; fi",
32-
"if [ -e .git/hooks/pre-commit ]; then chmod 0755 .git/hooks/pre-commit; fi"
33-
],
34-
"post-install-cmd": [
35-
"@githooks"
36-
],
37-
"post-update-cmd": [
38-
"@githooks"
3929
]
4030
},
4131
"authors": [
@@ -56,8 +46,7 @@
5646
"allow-plugins": {
5747
"composer/installers": true,
5848
"phpstan/extension-installer": true,
59-
"pestphp/pest-plugin": true,
60-
"dealerdirect/phpcodesniffer-composer-installer": true
49+
"pestphp/pest-plugin": true
6150
}
6251
}
6352
}

0 commit comments

Comments
 (0)