Skip to content

Commit 36e79d3

Browse files
authored
devops: git hooks locked to dev environment installs (#911)
1 parent 2f3cef0 commit 36e79d3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

composer.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,17 @@
8181
"@php bin/strauss.phar",
8282
"composer dump-autoload --optimize"
8383
],
84-
"cghooks": "vendor/bin/cghooks",
84+
"cghooks": [
85+
"echo 'Installing git hooks'",
86+
"vendor/bin/cghooks"
87+
],
8588
"post-install-cmd": [
8689
"@strauss",
87-
"@cghooks add -i"
90+
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer cghooks add -i"
8891
],
8992
"post-update-cmd": [
9093
"@strauss",
91-
"@cghooks update"
94+
"[ $COMPOSER_DEV_MODE -eq 0 ] || composer cghooks update"
9295
]
9396
},
9497
"support": {

0 commit comments

Comments
 (0)