Move webcomponents.js polyfill to mocks (#8993)
* Move webcomponents.js polyfill to mocks I'd like to move it out of shared to make it easier to sync this to RN. Since this is only used for testing and a polyfill is essentially a mock. Maybe this makes sense? Rename to camel case to be consistent with providesModule. * Update path to ignore in configs
Sebastian Markbåge committed
Feb 27, 2017 at 18:35 UTC
e35724a03d66bb73dbbec4dc4b12a5170bfe2615
4 files changed
+2
-7
.eslintignore
+1
-1
@@ -1,6 +1,6 @@
1
# We can probably lint these later but not important at this point
2
src/renderers/art
3
-src/shared/vendor
3
+src/__mocks__/vendor
4
# But not in docs/_js/examples/*
5
docs/_js/*.js
6
docs/js/
gulpfile.js
-5
@@ -39,7 +39,6 @@ var paths = {
39
40
'src/ReactVersion.js',
41
'src/shared/**/*.js',
42
- '!src/shared/vendor/**/*.js',
42
'!src/**/__benchmarks__/**/*.js',
43
'!src/**/__tests__/**/*.js',
44
'!src/**/__mocks__/**/*.js',
@@ -57,7 +56,6 @@ var paths = {
56
57
'src/ReactVersion.js',
58
'src/shared/**/*.js',
60
- '!src/shared/vendor/**/*.js',
59
'!src/**/__benchmarks__/**/*.js',
60
'!src/**/__tests__/**/*.js',
61
'!src/**/__mocks__/**/*.js',
@@ -71,7 +69,6 @@ var paths = {
69
70
'src/ReactVersion.js',
71
'src/shared/**/*.js',
74
- '!src/shared/vendor/**/*.js',
72
'!src/**/__benchmarks__/**/*.js',
73
'!src/**/__tests__/**/*.js',
74
'!src/**/__mocks__/**/*.js',
@@ -85,7 +82,6 @@ var paths = {
82
83
'src/ReactVersion.js',
84
'src/shared/**/*.js',
88
- '!src/shared/vendor/**/*.js',
85
'!src/**/__benchmarks__/**/*.js',
86
'!src/**/__tests__/**/*.js',
87
'!src/**/__mocks__/**/*.js',
@@ -99,7 +95,6 @@ var paths = {
95
96
'src/ReactVersion.js',
97
'src/shared/**/*.js',
102
- '!src/shared/vendor/**/*.js',
98
'!src/**/__benchmarks__/**/*.js',
99
'!src/**/__tests__/**/*.js',
100
'!src/**/__mocks__/**/*.js',
package.json
+1
-1
@@ -122,7 +122,7 @@
122
],
123
"collectCoverageFrom": [
124
"src/**/*.js",
125
- "!src/shared/vendor/third_party/*.js",
125
+ "!src/__mocks__/vendor/third_party/*.js",
126
"!src/test/*.js"
127
],
128
"timers": "fake"