-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: initial release ref CORE-1846 Co-Authored-By: Shil Sinha <shil.sinha@gmail.com>
- Loading branch information
Showing
24 changed files
with
11,088 additions
and
7,435 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 |
---|---|---|
@@ -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.