Browse Source

delete flowconfig use npm instead of yarn for package.json

KaFai Choi 5 years ago
parent
commit
b0a71e2ccf
3 changed files with 1 additions and 177 deletions
  1. 0
    88
      .flowconfig
  2. 0
    88
      .flowconfig.android
  3. 1
    1
      package.json

+ 0
- 88
.flowconfig View File

@@ -1,88 +0,0 @@
1
-[ignore]
2
-; This flowconfig is forked by platform - the only difference between them is which suffix is ignored.
3
-.*/*[.]android.js
4
-;.*/*[.]ios.js
5
-
6
-; Ignore templates for 'react-native init'
7
-.*/local-cli/templates/.*
8
-
9
-; Ignore the Dangerfile
10
-node_modules/react-native/bots/dangerfile.js
11
-
12
-; Ignore "BUCK" generated dirs
13
-node_modules/react-native/\.buckd/
14
-
15
-; Ignore unexpected extra "@providesModule"
16
-.*/node_modules/.*/node_modules/fbjs/.*
17
-
18
-; Ignore duplicate module providers
19
-; For RN Apps installed via npm, "Libraries" folder is inside
20
-; "node_modules/react-native" but in the source repo it is in the root
21
-.*/Libraries/react-native/React.js
22
-
23
-; Ignore polyfills
24
-.*/Libraries/polyfills/.*
25
-
26
-; Ignore metro
27
-.*/node_modules/metro/.*
28
-
29
-; Ignore "config-chain"'s test folder - it has a corrupt JSON file that's tripping flow
30
-.*/node_modules/config-chain/test/*.
31
-
32
-; These should not be required directly
33
-; require from fbjs/lib instead: require('fbjs/lib/invariant')
34
-.*/node_modules/invariant/.*
35
-.*/node_modules/warning/.*
36
-
37
-[include]
38
-
39
-[libs]
40
-node_modules/react-native/Libraries/react-native/react-native-interface.js
41
-node_modules/react-native/flow/
42
-node_modules/react-native/flow-github/
43
-
44
-[lints]
45
-
46
-[options]
47
-emoji=true
48
-
49
-esproposal.optional_chaining=enable
50
-esproposal.nullish_coalescing=enable
51
-
52
-module.system=haste
53
-module.system.haste.use_name_reducers=true
54
-# keep the following in sync with server/haste/hasteImpl.js
55
-# get basename
56
-module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
57
-# strip .js or .js.flow suffix
58
-module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
59
-# strip platform suffix
60
-module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
61
-module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
62
-module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
63
-module.system.haste.paths.blacklist=.*/__tests__/.*
64
-module.system.haste.paths.blacklist=.*/__mocks__/.*
65
-module.system.haste.paths.whitelist=<PROJECT_ROOT>/js/.*
66
-module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
67
-module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
68
-module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
69
-module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
70
-; Surpress error `Duplicate module provider` until the slimmening is done
71
-module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WebView/*.
72
-module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WKWebView/*.
73
-
74
-munge_underscores=true
75
-
76
-module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
77
-
78
-suppress_type=$FlowIssue
79
-suppress_type=$FlowFixMe
80
-suppress_type=$FlowFixMeProps
81
-suppress_type=$FlowFixMeState
82
-
83
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)
84
-suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
85
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
86
-suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
87
-
88
-[strict]

+ 0
- 88
.flowconfig.android View File

@@ -1,88 +0,0 @@
1
-[ignore]
2
-; This flowconfig is forked by platform - the only difference between them is which suffix is ignored.
3
-;.*/*[.]android.js
4
-.*/*[.]ios.js
5
-
6
-; Ignore templates for 'react-native init'
7
-.*/local-cli/templates/.*
8
-
9
-; Ignore the Dangerfile
10
-node_modules/react-native/bots/dangerfile.js
11
-
12
-; Ignore "BUCK" generated dirs
13
-node_modules/react-native/\.buckd/
14
-
15
-; Ignore unexpected extra "@providesModule"
16
-.*/node_modules/.*/node_modules/fbjs/.*
17
-
18
-; Ignore duplicate module providers
19
-; For RN Apps installed via npm, "Libraries" folder is inside
20
-; "node_modules/react-native" but in the source repo it is in the root
21
-.*/Libraries/react-native/React.js
22
-
23
-; Ignore polyfills
24
-.*/Libraries/polyfills/.*
25
-
26
-; Ignore metro
27
-.*/node_modules/metro/.*
28
-
29
-; Ignore "config-chain"'s test folder - it has a corrupt JSON file that's tripping flow
30
-.*/node_modules/config-chain/test/*.
31
-
32
-; These should not be required directly
33
-; require from fbjs/lib instead: require('fbjs/lib/invariant')
34
-.*/node_modules/invariant/.*
35
-.*/node_modules/warning/.*
36
-
37
-[include]
38
-
39
-[libs]
40
-node_modules/react-native/Libraries/react-native/react-native-interface.js
41
-node_modules/react-native/flow/
42
-node_modules/react-native/flow-github/
43
-
44
-[lints]
45
-
46
-[options]
47
-emoji=true
48
-
49
-esproposal.optional_chaining=enable
50
-esproposal.nullish_coalescing=enable
51
-
52
-module.system=haste
53
-module.system.haste.use_name_reducers=true
54
-# keep the following in sync with server/haste/hasteImpl.js
55
-# get basename
56
-module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
57
-# strip .js or .js.flow suffix
58
-module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
59
-# strip platform suffix
60
-module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
61
-module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
62
-module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
63
-module.system.haste.paths.blacklist=.*/__tests__/.*
64
-module.system.haste.paths.blacklist=.*/__mocks__/.*
65
-module.system.haste.paths.whitelist=<PROJECT_ROOT>/js/.*
66
-module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
67
-module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
68
-module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
69
-module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
70
-; Surpress error `Duplicate module provider` until the slimmening is done
71
-module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WebView/*.
72
-module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WKWebView/*.
73
-
74
-munge_underscores=true
75
-
76
-module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
77
-
78
-suppress_type=$FlowIssue
79
-suppress_type=$FlowFixMe
80
-suppress_type=$FlowFixMeProps
81
-suppress_type=$FlowFixMeState
82
-
83
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)
84
-suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
85
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
86
-suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
87
-
88
-[strict]

+ 1
- 1
package.json View File

@@ -12,7 +12,7 @@
12 12
   "homepage": "https://github.com/react-native-community/react-native-webview#readme",
13 13
   "scripts": {
14 14
     "prebuild": "rimraf lib",
15
-    "prepare": "yarn run build",
15
+    "prepare": "npm run build",
16 16
     "build": "tsc -p tsconfig.base.json && cp ./index.js ./lib/index.js",
17 17
     "ci:publish": "yarn semantic-release",
18 18
     "ci:test": "yarn ci:test:build",