chore: initialize project using ramsey/php-library-starter-kit
This commit is contained in:
commit
3d602ddd69
35 changed files with 1119 additions and 0 deletions
113
captainhook.json
Normal file
113
captainhook.json
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
{
|
||||
"config": {
|
||||
"ansi-colors": true,
|
||||
"fail-on-first-error": false,
|
||||
"plugins": [],
|
||||
"verbosity": "normal"
|
||||
},
|
||||
"commit-msg": {
|
||||
"enabled": true,
|
||||
"actions": [
|
||||
{
|
||||
"action": "\\Ramsey\\CaptainHook\\ValidateConventionalCommit"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pre-push": {
|
||||
"enabled": true,
|
||||
"actions": [
|
||||
{
|
||||
"action": "composer test"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pre-commit": {
|
||||
"enabled": true,
|
||||
"actions": [
|
||||
{
|
||||
"action": "composer validate",
|
||||
"conditions": [
|
||||
{
|
||||
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\Any",
|
||||
"args": [["composer.json"]]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "composer normalize --dry-run",
|
||||
"conditions": [
|
||||
{
|
||||
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\Any",
|
||||
"args": [["composer.json"]]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "composer dev:lint:syntax -- {$STAGED_FILES|of-type:php}",
|
||||
"conditions": [
|
||||
{
|
||||
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
|
||||
"args": ["php"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"action": "composer dev:lint:style -- {$STAGED_FILES|of-type:php}",
|
||||
"conditions": [
|
||||
{
|
||||
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileStaged\\OfType",
|
||||
"args": ["php"]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"prepare-commit-msg": {
|
||||
"enabled": true,
|
||||
"actions": [
|
||||
{
|
||||
"action": "\\Ramsey\\CaptainHook\\PrepareConventionalCommit"
|
||||
}
|
||||
]
|
||||
},
|
||||
"post-commit": {
|
||||
"enabled": false,
|
||||
"actions": []
|
||||
},
|
||||
"post-merge": {
|
||||
"enabled": true,
|
||||
"actions": [
|
||||
{
|
||||
"action": "composer install --ansi",
|
||||
"conditions": [
|
||||
{
|
||||
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
|
||||
"args": [["composer.json", "composer.lock"]]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"post-checkout": {
|
||||
"enabled": true,
|
||||
"actions": [
|
||||
{
|
||||
"action": "composer install --ansi",
|
||||
"conditions": [
|
||||
{
|
||||
"exec": "\\CaptainHook\\App\\Hook\\Condition\\FileChanged\\Any",
|
||||
"args": [["composer.json", "composer.lock"]]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"post-rewrite": {
|
||||
"enabled": false,
|
||||
"actions": []
|
||||
},
|
||||
"post-change": {
|
||||
"enabled": false,
|
||||
"actions": []
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue