Skip to content

Commit

Permalink
chore: create description for composer run command
Browse files Browse the repository at this point in the history
Some commands used in multiple projects can be abstracted on composer
run workflow.

The intent behind it is to reduce the cognitive load for developers.

The commands will be listed on `composer list` and can be executed
interactively with `composer run`.

Signed-off-by: 💻 Eher <[email protected]>
  • Loading branch information
EHER committed Jun 25, 2023
1 parent 3cc0a99 commit c06a74a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,16 @@
}
},
"scripts": {
"phpcbf": "vendor/bin/phpcbf",
"phpcs": "vendor/bin/phpcs",
"phpunit": "vendor/bin/phpunit",
"fix": [
"phpcbf"
],
"test": [
"@phpcs",
"@phpunit"
"phpcs",
"phpunit"
]
},
"scripts-descriptions": {
"fix": "Fix some detected issues",
"test": "Run all tests"
}
}

0 comments on commit c06a74a

Please sign in to comment.