-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(babel-plugin-flow-runtime): support babel 7
also: * build flow-runtime with babel 7 * build babel-plugin-flow-runtime with babel 7 * build flow-runtime-validators with babel 7 * build flow-config-parser with babel 7 * fix flow 0.88 errors in babel-plugin-flow-runtime There are still a bunch of flow 0.88 errors in flow-runtime.
- Loading branch information
1 parent
3eb1e23
commit 9ec3aac
Showing
96 changed files
with
9,831 additions
and
16,189 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,42 @@ | ||
[ignore] | ||
|
||
# Ugh | ||
.*/node_modules/.*/src.* | ||
.*/node_modules/binary-extensions/.* | ||
.*/node_modules/fbjs/.* | ||
.*/node_modules/url-regex/.* | ||
.*/node_modules/spdx.* | ||
.*/node_modules/builtin-modules.* | ||
.*/node_modules/resolve.* | ||
.*/test/.*json$ | ||
|
||
# Ignore tests | ||
.*/node_modules/.*/test/.* | ||
|
||
[include] | ||
|
||
[libs] | ||
|
||
[options] | ||
module.system=node | ||
|
||
munge_underscores=true | ||
|
||
module.name_mapper='.*\(.css\)' -> 'empty/object' | ||
module.name_mapper='.*\(.scss\)' -> 'empty/object' | ||
module.name_mapper='.*\(.png\)' -> 'empty/object' | ||
|
||
suppress_type=$FlowIssue | ||
suppress_type=$FlowIgnore | ||
suppress_type=$FlowFixme | ||
suppress_type=$Fixme | ||
|
||
suppress_comment=\\(.\\|\n\\)*\\@flowFixme.* | ||
suppress_comment=\\(.\\|\n\\)*\\@flowIgnore.* | ||
suppress_comment=\\(.\\|\n\\)*\\@flowIssue.* | ||
|
||
esproposal.class_instance_fields=enable | ||
esproposal.class_static_fields=enable | ||
esproposal.decorators=ignore | ||
|
||
[version] |
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,17 +1,19 @@ | ||
{ | ||
"presets": [ | ||
["env", { | ||
["@babel/preset-env", { | ||
"targets": { | ||
"browsers": ["last 2 versions"] | ||
}, | ||
"exclude": [ | ||
"transform-regenerator" | ||
] | ||
}], | ||
"stage-0", | ||
"react" | ||
"@babel/preset-react", | ||
"@babel/preset-flow" | ||
], | ||
"plugins": [ | ||
"transform-decorators-legacy" | ||
"@babel/plugin-proposal-object-rest-spread", | ||
["@babel/plugin-proposal-decorators", { "legacy": true }], | ||
["@babel/plugin-proposal-class-properties", { "loose" : true }] | ||
] | ||
} |
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
This file was deleted.
Oops, something went wrong.
87 changes: 87 additions & 0 deletions
87
packages/babel-plugin-flow-runtime/flow-typed/npm/@babel/cli_vx.x.x.js
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,87 @@ | ||
// flow-typed signature: f73b2b98bfc1369d470d587fe99be64b | ||
// flow-typed version: <<STUB>>/@babel/cli_v^7.2.0/flow_v0.88.0 | ||
|
||
/** | ||
* This is an autogenerated libdef stub for: | ||
* | ||
* '@babel/cli' | ||
* | ||
* Fill this stub out by replacing all the `any` types. | ||
* | ||
* Once filled out, we encourage you to share your work with the | ||
* community by sending a pull request to: | ||
* https://github.com/flowtype/flow-typed | ||
*/ | ||
|
||
declare module '@babel/cli' { | ||
declare module.exports: any; | ||
} | ||
|
||
/** | ||
* We include stubs for each file inside this npm package in case you need to | ||
* require those files directly. Feel free to delete any files that aren't | ||
* needed. | ||
*/ | ||
declare module '@babel/cli/bin/babel-external-helpers' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module '@babel/cli/bin/babel' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module '@babel/cli/lib/babel-external-helpers' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module '@babel/cli/lib/babel/dir' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module '@babel/cli/lib/babel/file' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module '@babel/cli/lib/babel/index' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module '@babel/cli/lib/babel/options' { | ||
declare module.exports: any; | ||
} | ||
|
||
declare module '@babel/cli/lib/babel/util' { | ||
declare module.exports: any; | ||
} | ||
|
||
// Filename aliases | ||
declare module '@babel/cli/bin/babel-external-helpers.js' { | ||
declare module.exports: $Exports<'@babel/cli/bin/babel-external-helpers'>; | ||
} | ||
declare module '@babel/cli/bin/babel.js' { | ||
declare module.exports: $Exports<'@babel/cli/bin/babel'>; | ||
} | ||
declare module '@babel/cli/index' { | ||
declare module.exports: $Exports<'@babel/cli'>; | ||
} | ||
declare module '@babel/cli/index.js' { | ||
declare module.exports: $Exports<'@babel/cli'>; | ||
} | ||
declare module '@babel/cli/lib/babel-external-helpers.js' { | ||
declare module.exports: $Exports<'@babel/cli/lib/babel-external-helpers'>; | ||
} | ||
declare module '@babel/cli/lib/babel/dir.js' { | ||
declare module.exports: $Exports<'@babel/cli/lib/babel/dir'>; | ||
} | ||
declare module '@babel/cli/lib/babel/file.js' { | ||
declare module.exports: $Exports<'@babel/cli/lib/babel/file'>; | ||
} | ||
declare module '@babel/cli/lib/babel/index.js' { | ||
declare module.exports: $Exports<'@babel/cli/lib/babel/index'>; | ||
} | ||
declare module '@babel/cli/lib/babel/options.js' { | ||
declare module.exports: $Exports<'@babel/cli/lib/babel/options'>; | ||
} | ||
declare module '@babel/cli/lib/babel/util.js' { | ||
declare module.exports: $Exports<'@babel/cli/lib/babel/util'>; | ||
} |
Oops, something went wrong.