Skip to content

Commit 603fe2f

Browse files
committed
chore: Add scripts for development tools
1 parent 788b9cd commit 603fe2f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

composer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,23 @@
4141
"allow-plugins": {
4242
"dealerdirect/phpcodesniffer-composer-installer": true
4343
}
44+
},
45+
"scripts": {
46+
"test": "phpunit",
47+
"cs": "vendor/bin/phpcs",
48+
"cs:fix": "vendor/bin/phpcbf",
49+
"analyse": "vendor/bin/phpstan analyze",
50+
"rector": "vendor/bin/rector --dry-run",
51+
"rector:fix": "vendor/bin/rector",
52+
"check": [
53+
"@cs",
54+
"@analyse",
55+
"@test",
56+
"@rector"
57+
],
58+
"fix": [
59+
"@rector:fix",
60+
"@cs:fix"
61+
]
4462
}
4563
}

0 commit comments

Comments
 (0)