diff --git a/.gitattributes b/.gitattributes index d516774..78cd589 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,11 +1,11 @@ -/.github export-ignore -/examples export-ignore -/tests export-ignore -.* export-ignore -/captainhook.json export-ignore -/composer.json -/composer.lock export-ignore -/composer-dependency-analyser.php export-ignore -/phpstan.neon export-ignore -/phpstan.php export-ignore -/phpunit.xml export-ignore +# Ignore everything by default +* export-ignore + +# Include only these in distribution +bin/ -export-ignore +bin/** -export-ignore +src/ -export-ignore +src/** -export-ignore +composer.json -export-ignore +extension.neon -export-ignore +LICENSE -export-ignore diff --git a/captainhook.json b/captainhook.json deleted file mode 100644 index 874130d..0000000 --- a/captainhook.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "commit-msg": { - "enabled": true, - "actions": [] - }, - "pre-commit": { - "enabled": true, - "actions": [ - { - "action": "bin/graphql-client-code-generator --config=examples/config.php --config=tests/config.php --ensure-sync" - }, - { - "action": "\\Ruudk\\ReadmeExamplesSyncHook\\SyncReadmeExamples" - }, - { - "action": "composer validate --strict" - }, - { - "action": "composer normalize --diff --dry-run" - }, - { - "action": "vendor/bin/composer-dependency-analyser" - }, - { - "action": "\\CaptainHook\\App\\Hook\\PHP\\Action\\Linting" - }, - { - "action": "vendor/bin/php-cs-fixer fix" - }, - { - "action": "vendor/bin/twig-cs-fixer fix" - }, - { - "action": "vendor/bin/phpstan" - }, - { - "action": "vendor/bin/phpunit" - } - ] - } -}