-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: initial release #6
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
7a8b5a6
feat: initial release
8d7d4b3
docs: document valid pre-push modes in readme
198b174
docs: recommend subset of hooks
9bd2aec
fix: make dist/bin file executable
d1cfbc4
fix: exports
335989b
feat: include husky
a0447aa
feat: support single non-origin remote
7d9498b
fix: correct opt-in functionality
skeggse 9a17d65
refactor: create utils file for git
0a8eecc
feat: bail on incompatible git versions
19a6e66
Merge remote-tracking branch 'origin/master' into eli/initial-release
481d3fe
chore(deps): update dependencies
27d6a11
chore: get ci to pass
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
"extends": ["mixmax/node/withJest", "mixmax/node/disable-require-atomic", "mixmax/flow/strict"] | ||
"extends": ["mixmax/node/withJest", "mixmax/node/disable-require-atomic", "mixmax/flow/strict"], | ||
"overrides": [ | ||
{ | ||
"files": ["src/bin/**"], | ||
"rules": { | ||
"no-console": "off" | ||
} | ||
} | ||
] | ||
} |
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
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,25 @@ | ||
module.exports = require('./').getHooks('node dist/bin'); | ||
|
||
// Husky explicitly greps for the hook itself to determine whether to run the hook. Here are all the | ||
// hooks, to bypass this check: | ||
// | ||
// - applypatch-msg | ||
// - post-applypatch | ||
// - post-commit | ||
// - post-receive | ||
// - post-update | ||
// - pre-auto-gc | ||
// - pre-merge-commit | ||
// - pre-push | ||
// - pre-receive | ||
// - sendemail-validate | ||
// - commit-msg | ||
// - post-checkout | ||
// - post-merge | ||
// - post-rewrite | ||
// - pre-applypatch | ||
// - pre-commit | ||
// - prepare-commit-msg | ||
// - pre-rebase | ||
// - push-to-checkout | ||
// - update |
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
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
module.exports = (api) => ({ | ||
// The idiom for transpiling import/export syntax for use under jest without interfering with | ||
// rollup's module bundling process. The test will yield true under jest, and false under rollup. | ||
plugins: api.env('test') ? ['@babel/plugin-transform-modules-commonjs'] : [], | ||
presets: ['@babel/preset-flow'], | ||
}); | ||
module.exports = { | ||
...require('./babel.rollup.config.js'), | ||
plugins: ['@babel/plugin-transform-modules-commonjs'], | ||
}; |
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,3 @@ | ||
module.exports = { | ||
presets: ['@babel/preset-flow'], | ||
}; |
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,10 @@ | ||
declare type Pojo = { [string]: mixed }; | ||
|
||
// Workaround for https://github.com/facebook/flow/pull/8275. | ||
declare var require: { | ||
(id: string): any, | ||
resolve: (id: string, options?: { paths?: string[] }) => string, | ||
cache: any, | ||
main: typeof module, | ||
... | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typicode/husky#662