Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit 86bf7b2

Browse files
authored
Merge pull request #39 from liquidweb/feature/git-hooks
Include the WooCommerce git hooks
2 parents 178cf15 + b6e89bf commit 86bf7b2

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

composer.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
1515
"wimg/php-compatibility": "^8.1",
1616
"woocommerce/woocommerce": "dev-feature/more-order-tests",
17+
"woocommerce/woocommerce-git-hooks": "*",
1718
"woocommerce/woocommerce-sniffs": "^0.0.1",
1819
"wp-coding-standards/wpcs": "^0.14"
1920
},
@@ -27,6 +28,18 @@
2728
]
2829
},
2930
"scripts": {
31+
"pre-update-cmd": [
32+
"WooCommerce\\GitHooks\\Hooks::preHooks"
33+
],
34+
"pre-install-cmd": [
35+
"WooCommerce\\GitHooks\\Hooks::preHooks"
36+
],
37+
"post-install-cmd": [
38+
"WooCommerce\\GitHooks\\Hooks::postHooks"
39+
],
40+
"post-update-cmd": [
41+
"WooCommerce\\GitHooks\\Hooks::postHooks"
42+
],
3043
"test-coverage": [
3144
"phpunit --testsuite=plugin --coverage-html=tests/coverage"
3245
]

composer.lock

Lines changed: 34 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)