-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(husky): expose husky config (#126)
* Expose husky config * Resolve discussions
- Loading branch information
1 parent
412b3d5
commit 4dd19fa
Showing
5 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./src/config/huskyrc') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./dist/config/huskyrc') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,14 @@ | |
"format": "node src format", | ||
"validate": "node src validate" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "node src pre-commit" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"babel.js", | ||
"eslint.js", | ||
"config.js", | ||
"prettier.js", | ||
"jest.js" | ||
"eslint.js", | ||
"husky.js", | ||
"jest.js", | ||
"prettier.js" | ||
], | ||
"keywords": [], | ||
"author": "Kent C. Dodds <[email protected]> (https://kentcdodds.com)", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const {resolveKcdScripts} = require('../utils') | ||
|
||
const kcdScripts = resolveKcdScripts() | ||
|
||
module.exports = { | ||
hooks: { | ||
'pre-commit': `${kcdScripts} pre-commit`, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters