This repository has been archived by the owner on May 25, 2021. It is now read-only.
forked from facebook/fbt
-
Notifications
You must be signed in to change notification settings - Fork 0
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-fbt): enable writing Flow types in source code and …
…publish to dist folder Reviewed By: jrwats Differential Revision: D25121590 fbshipit-source-id: d305bdb45f7d8af55655cc80555d1d89abcc1b9c
- Loading branch information
1 parent
114e9b5
commit 04df833
Showing
16 changed files
with
239 additions
and
83 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
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 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,48 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @format | ||
* @noflow | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// TODO T40028530: Remove this when we can convert to fbjs | ||
// Depends on https://github.com/facebook/fbt/issues/40 | ||
module.exports = { | ||
PLUGINS: [ | ||
require('@babel/plugin-proposal-optional-catch-binding'), | ||
require('@babel/plugin-syntax-class-properties'), | ||
require('@babel/plugin-syntax-flow'), | ||
require('babel-plugin-syntax-trailing-function-commas'), | ||
require('@babel/plugin-syntax-object-rest-spread'), | ||
require('babel-preset-fbjs/plugins/dev-expression'), | ||
require('@babel/plugin-transform-template-literals'), | ||
require('@babel/plugin-transform-literals'), | ||
require('@babel/plugin-transform-function-name'), | ||
require('@babel/plugin-transform-arrow-functions'), | ||
require('@babel/plugin-transform-block-scoped-functions'), | ||
require('@babel/plugin-proposal-class-properties'), | ||
require('@babel/plugin-proposal-nullish-coalescing-operator'), | ||
require('@babel/plugin-proposal-optional-chaining'), | ||
[require('@babel/plugin-transform-classes'), {loose: true}], | ||
require('@babel/plugin-transform-object-super'), | ||
require('@babel/plugin-transform-shorthand-properties'), | ||
require('@babel/plugin-transform-computed-properties'), | ||
require('@babel/plugin-transform-flow-strip-types'), | ||
require('@babel/plugin-transform-for-of'), | ||
[require('@babel/plugin-transform-spread'), {loose: true}], | ||
require('@babel/plugin-transform-parameters'), | ||
[require('@babel/plugin-transform-destructuring'), {loose: true}], | ||
require('@babel/plugin-transform-block-scoping'), | ||
require('@babel/plugin-transform-modules-commonjs'), | ||
require('@babel/plugin-transform-member-expression-literals'), | ||
require('@babel/plugin-transform-property-literals'), | ||
require('@babel/plugin-proposal-object-rest-spread'), | ||
require('@babel/plugin-transform-react-display-name'), | ||
require('babel-preset-fbjs/plugins/object-assign'), | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
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 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 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,6 @@ | ||
node_modules | ||
dist | ||
yarn.lock | ||
|
||
# file checksums used by gulp-once | ||
.checksums |
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,8 +1,9 @@ | ||
# Since .gitignore is not considered when .npmignore is present | ||
node_modules | ||
|
||
translate/__tests__ | ||
bin/__fixtures__ | ||
bin/__tests__ | ||
__mocks__ | ||
__tests__ | ||
# Example of expected npm output files: P150537602 | ||
** | ||
!dist/** | ||
**/__tests__ | ||
**/__fixtures__ | ||
**/__mocks__ |
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
Oops, something went wrong.