We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2841675 commit fac4a8aCopy full SHA for fac4a8a
composer.json
@@ -84,7 +84,11 @@
84
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
85
"Illuminate\\Foundation\\ComposerScripts::postUpdate"
86
],
87
- "post-install-cmd": [],
+ "post-install-cmd": [
88
+ "cp -r 'hooks/' '.git/hooks/'",
89
+ "php -r \"copy('hooks/pre-commit', '.git/hooks/pre-commit');\"",
90
+ "php -r \"chmod('.git/hooks/pre-commit', 0777);\""
91
+ ],
92
"post-root-package-install": [
93
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
94
hooks/pre-commit
@@ -0,0 +1,7 @@
1
+#!/bin/sh
2
+# Detect whether /dev/tty is available & functional
3
+if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then
4
+ exec < /dev/tty
5
+fi
6
+
7
+$(pwd)/vendor/bin/pint
0 commit comments