mirror of
https://github.com/status-im/react-native.git
synced 2025-02-27 08:30:34 +00:00
Merge pull request #2976 from AaaChiuuu/flow
merge the root .flowconfig and local-cli/generator/templates/_flowconfig
This commit is contained in:
commit
0c8e910ed8
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var yeoman = require('yeoman-generator');
|
var yeoman = require('yeoman-generator');
|
||||||
|
var utils = require('../generator-utils');
|
||||||
|
|
||||||
module.exports = yeoman.generators.NamedBase.extend({
|
module.exports = yeoman.generators.NamedBase.extend({
|
||||||
constructor: function() {
|
constructor: function() {
|
||||||
@ -33,10 +34,12 @@ module.exports = yeoman.generators.NamedBase.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
configuring: function() {
|
configuring: function() {
|
||||||
this.fs.copy(
|
utils.copyAndReplace(
|
||||||
this.templatePath('_flowconfig'),
|
this.templatePath('../../../.flowconfig'),
|
||||||
this.destinationPath('.flowconfig')
|
this.destinationPath('.flowconfig'),
|
||||||
|
{ 'Libraries\/react-native\/react-native-interface.js' : 'node_modules/react-native/Libraries/react-native/react-native-interface.js' }
|
||||||
);
|
);
|
||||||
|
|
||||||
this.fs.copy(
|
this.fs.copy(
|
||||||
this.templatePath('_gitignore'),
|
this.templatePath('_gitignore'),
|
||||||
this.destinationPath('.gitignore')
|
this.destinationPath('.gitignore')
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
[ignore]
|
|
||||||
|
|
||||||
# We fork some components by platform.
|
|
||||||
.*/*.web.js
|
|
||||||
.*/*.android.js
|
|
||||||
|
|
||||||
# Some modules have their own node_modules with overlap
|
|
||||||
.*/node_modules/node-haste/.*
|
|
||||||
|
|
||||||
# Ignore react-tools where there are overlaps, but don't ignore anything that
|
|
||||||
# react-native relies on
|
|
||||||
.*/node_modules/react-tools/src/React.js
|
|
||||||
.*/node_modules/react-tools/src/renderers/shared/event/EventPropagators.js
|
|
||||||
.*/node_modules/react-tools/src/renderers/shared/event/eventPlugins/ResponderEventPlugin.js
|
|
||||||
.*/node_modules/react-tools/src/shared/vendor/core/ExecutionEnvironment.js
|
|
||||||
|
|
||||||
# Ignore commoner tests
|
|
||||||
.*/node_modules/commoner/test/.*
|
|
||||||
|
|
||||||
# See https://github.com/facebook/flow/issues/442
|
|
||||||
.*/react-tools/node_modules/commoner/lib/reader.js
|
|
||||||
|
|
||||||
# Ignore jest
|
|
||||||
.*/react-native/node_modules/jest-cli/.*
|
|
||||||
|
|
||||||
[include]
|
|
||||||
|
|
||||||
[libs]
|
|
||||||
node_modules/react-native/Libraries/react-native/react-native-interface.js
|
|
||||||
|
|
||||||
[options]
|
|
||||||
module.system=haste
|
|
||||||
|
|
||||||
munge_underscores=true
|
|
||||||
|
|
||||||
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
|
|
||||||
module.name_mapper='^[./a-zA-Z0-9$_-]+\.png$' -> 'RelativeImageStub'
|
|
||||||
|
|
||||||
suppress_type=$FlowIssue
|
|
||||||
suppress_type=$FlowFixMe
|
|
||||||
suppress_type=$FixMe
|
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-6]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-6]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
|
||||||
|
|
||||||
[version]
|
|
||||||
0.16.0
|
|
Loading…
x
Reference in New Issue
Block a user