Skip to content

Commit d86c8df

Browse files
committed
Replace pre-commit with husky
1 parent af25519 commit d86c8df

File tree

4 files changed

+168
-116
lines changed

4 files changed

+168
-116
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.4 / 2018-12-3
4+
5+
- Replace `pre-commit` with `husky`
6+
37
## 1.0.3 / 2018-12-1
48

59
- Add PHP linting

gravity-forms-data-attributes.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Description: Add custom data attributes to Gravity Forms fields.
66
Author: Matt Mirus
77
Author URI: https://github.com/mmirus
8-
Version: 1.0.3
8+
Version: 1.0.4
99
GitHub Plugin URI: https://github.com/mmirus/gravity-forms-data-attributes
1010
*/
1111

package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gravity-forms-data-attributes",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Add custom data attributes to Gravity Forms fields.",
55
"private": true,
66
"repository": "[email protected]:mmirus/gravity-forms-data-attributes.git",
@@ -13,13 +13,15 @@
1313
"lint:styles": "stylelint \"assets/*.css\"",
1414
"test": "npm run -s lint && composer test"
1515
},
16-
"pre-commit": [
17-
"test"
18-
],
16+
"husky": {
17+
"hooks": {
18+
"pre-commit": "npm test"
19+
}
20+
},
1921
"devDependencies": {
2022
"eslint": "^5.9.0",
2123
"eslint-plugin-import": "^2.14.0",
22-
"pre-commit": "^1.2.2",
24+
"husky": "^1.2.0",
2325
"stylelint": "^9.9.0",
2426
"stylelint-config-standard": "^18.2.0"
2527
}

0 commit comments

Comments
 (0)