Skip to content

Commit

Permalink
"Update composer script for testing
Browse files Browse the repository at this point in the history
Added new script 'test' to composer.json file. This script combines two existing scripts, 'phpcs' and 'phpunit', making it more efficient to run both scripts for testing. Also, 'phpcs' script has been updated with '--basepath=.' argument to set the base directory for relative paths."
  • Loading branch information
attackant committed Oct 30, 2023
1 parent 8b86909 commit dd69381
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
},
"scripts": {
"phpcbf" : "phpcbf .",
"phpcs" : "phpcs .",
"phpunit" : "phpunit"
"phpcs" : "phpcs . --basepath=.",
"phpunit" : "phpunit",
"test": [
"@phpcs",
"@phpunit"
]
},
"config": {
"allow-plugins": {
Expand Down

0 comments on commit dd69381

Please sign in to comment.