Skip to content

Commit

Permalink
Merge pull request #54 from MrBenJ/bugfix/fix-fouc
Browse files Browse the repository at this point in the history
Upgrade emotion. Use gatsby emotion plugin
  • Loading branch information
MrBenJ committed Jan 5, 2019
2 parents a571e41 + 5c6e2f1 commit f2a9183
Show file tree
Hide file tree
Showing 44 changed files with 795 additions and 827 deletions.
7 changes: 6 additions & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Note: @emotion/core is throwing a bad 'context.js' typecheck error.
# I'm ignoring @emotion/core for now and supressing flow checking
# on any files that are importing it for now.
# There's a pull request that supposedly fixes this issue here:
# https://github.com/emotion-js/emotion/pull/1126
[ignore]

.*/node_modules/@emotion/core
[include]

[libs]
Expand Down
11 changes: 2 additions & 9 deletions flow-typed/npm/@babel/core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 5409d204a09964e1fceb4d5416d36af2
// flow-typed version: <<STUB>>/@babel/core_v^7.1.2/flow_v0.87.0
// flow-typed signature: bea4e4dff70d00e7bb4e8efb677c037a
// flow-typed version: <<STUB>>/@babel/core_v^7.2.2/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -134,10 +134,6 @@ declare module '@babel/core/lib/transform-file-browser' {
declare module.exports: any;
}

declare module '@babel/core/lib/transform-file-sync-browser' {
declare module.exports: any;
}

declare module '@babel/core/lib/transform-file' {
declare module.exports: any;
}
Expand Down Expand Up @@ -267,9 +263,6 @@ declare module '@babel/core/lib/transform-ast.js' {
declare module '@babel/core/lib/transform-file-browser.js' {
declare module.exports: $Exports<'@babel/core/lib/transform-file-browser'>;
}
declare module '@babel/core/lib/transform-file-sync-browser.js' {
declare module.exports: $Exports<'@babel/core/lib/transform-file-sync-browser'>;
}
declare module '@babel/core/lib/transform-file.js' {
declare module.exports: $Exports<'@babel/core/lib/transform-file'>;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 96480fea2ce5167749855915a82e2a12
// flow-typed version: <<STUB>>/@babel/plugin-proposal-class-properties_v^7.1.0/flow_v0.87.0
// flow-typed signature: dcd8647f79beab267bbd3f4ee5b12220
// flow-typed version: <<STUB>>/@babel/plugin-proposal-class-properties_v^7.2.3/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: fbab4b11b9d747af8c66c602a689d7ca
// flow-typed version: <<STUB>>/@babel/plugin-proposal-optional-chaining_v^7.0.0/flow_v0.87.0
// flow-typed signature: 6de77e2f50c1b32b172786168cda9a61
// flow-typed version: <<STUB>>/@babel/plugin-proposal-optional-chaining_v^7.2.0/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@babel/preset-env_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 942679b2440da4a35014801eec7a4fbf
// flow-typed version: <<STUB>>/@babel/preset-env_v^7.1.6/flow_v0.87.0
// flow-typed signature: ed31663cebb0882e95fac545356c1107
// flow-typed version: <<STUB>>/@babel/preset-env_v^7.2.3/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/@babel/preset-flow_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: ccbd018d0c9fa4ac04d124fee1c64b35
// flow-typed version: <<STUB>>/@babel/preset-flow_v^7.0.0/flow_v0.87.0
// flow-typed signature: 54da517e485dcc2bf700267f247434d7
// flow-typed version: <<STUB>>/@babel/preset-flow_v^7.0.0/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/alex_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 1b775b98d9f50134ffa8cd533ac60358
// flow-typed version: <<STUB>>/alex_v^6.0.0/flow_v0.87.0
// flow-typed signature: 58796fd3e5424bd92ffa06b80ecb5184
// flow-typed version: <<STUB>>/alex_v^7.0.0/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 765430a943af7d6105086fd09fac38f6
// flow-typed version: <<STUB>>/babel-core_v^7.0.0-bridge.0/flow_v0.87.0
// flow-typed signature: fe88ce82383d6e9bbb950cba85e015ef
// flow-typed version: <<STUB>>/babel-core_v^7.0.0-bridge.0/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 0597ecc484bf4e3b23610c5e14c7b895
// flow-typed version: <<STUB>>/babel-jest_v^23.6.0/flow_v0.87.0
// flow-typed signature: 50c12110efd7b091f9bfb951295b3601
// flow-typed version: <<STUB>>/babel-jest_v^23.6.0/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/babel-preset-gatsby_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 250ad751170a812388724ca9c121e887
// flow-typed version: <<STUB>>/babel-preset-gatsby_v^0.1.5/flow_v0.87.0
// flow-typed signature: f7d33facb238726bd385ce2df1d520b2
// flow-typed version: <<STUB>>/babel-preset-gatsby_v^0.1.6/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 479780059724c78074546953a7466875
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.7.1/flow_v0.87.0
// flow-typed signature: d522a18cc9ff275794dfcadf34e52283
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.7.1/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-plugin-babel_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 3a65002f8eaa80154832e0fec1aef996
// flow-typed version: <<STUB>>/eslint-plugin-babel_v^5.3.0/flow_v0.87.0
// flow-typed signature: 32e490a1391d3430b01872fc45493b62
// flow-typed version: <<STUB>>/eslint-plugin-babel_v^5.3.0/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-plugin-css-modules_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 2f2e00db45bfeeb11086e46ea85921cc
// flow-typed version: <<STUB>>/eslint-plugin-css-modules_v^2.10.0/flow_v0.87.0
// flow-typed signature: 912dd7e34b63cccfae37dc899c5d794a
// flow-typed version: <<STUB>>/eslint-plugin-css-modules_v^2.10.0/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/eslint-plugin-jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 07d4336a3a1b27908af6397fd4441188
// flow-typed version: <<STUB>>/eslint-plugin-jest_v^22.1.0/flow_v0.87.0
// flow-typed signature: 5f91c7b3895994c3b45669f9b8679c44
// flow-typed version: <<STUB>>/eslint-plugin-jest_v^22.1.2/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
46 changes: 30 additions & 16 deletions flow-typed/npm/eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: ece416ff575831c459f73c0033e7e7ef
// flow-typed version: <<STUB>>/eslint_v^5.9.0/flow_v0.87.0
// flow-typed signature: 2b26fff941356259f65c9f6910343aa4
// flow-typed version: <<STUB>>/eslint_v^5.11.1/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -174,10 +174,6 @@ declare module 'eslint/lib/formatters/visualstudio' {
declare module.exports: any;
}

declare module 'eslint/lib/ignored-paths' {
declare module.exports: any;
}

declare module 'eslint/lib/linter' {
declare module.exports: any;
}
Expand All @@ -190,10 +186,6 @@ declare module 'eslint/lib/options' {
declare module.exports: any;
}

declare module 'eslint/lib/report-translator' {
declare module.exports: any;
}

declare module 'eslint/lib/rules' {
declare module.exports: any;
}
Expand Down Expand Up @@ -986,6 +978,10 @@ declare module 'eslint/lib/rules/no-useless-call' {
declare module.exports: any;
}

declare module 'eslint/lib/rules/no-useless-catch' {
declare module.exports: any;
}

declare module 'eslint/lib/rules/no-useless-computed-key' {
declare module.exports: any;
}
Expand Down Expand Up @@ -1322,6 +1318,10 @@ declare module 'eslint/lib/util/ast-utils' {
declare module.exports: any;
}

declare module 'eslint/lib/util/config-comment-parser' {
declare module.exports: any;
}

declare module 'eslint/lib/util/file-finder' {
declare module.exports: any;
}
Expand All @@ -1342,6 +1342,10 @@ declare module 'eslint/lib/util/hash' {
declare module.exports: any;
}

declare module 'eslint/lib/util/ignored-paths' {
declare module.exports: any;
}

declare module 'eslint/lib/util/interpolate' {
declare module.exports: any;
}
Expand Down Expand Up @@ -1382,6 +1386,10 @@ declare module 'eslint/lib/util/patterns/letters' {
declare module.exports: any;
}

declare module 'eslint/lib/util/report-translator' {
declare module.exports: any;
}

declare module 'eslint/lib/util/rule-fixer' {
declare module.exports: any;
}
Expand Down Expand Up @@ -1549,9 +1557,6 @@ declare module 'eslint/lib/formatters/unix.js' {
declare module 'eslint/lib/formatters/visualstudio.js' {
declare module.exports: $Exports<'eslint/lib/formatters/visualstudio'>;
}
declare module 'eslint/lib/ignored-paths.js' {
declare module.exports: $Exports<'eslint/lib/ignored-paths'>;
}
declare module 'eslint/lib/linter.js' {
declare module.exports: $Exports<'eslint/lib/linter'>;
}
Expand All @@ -1561,9 +1566,6 @@ declare module 'eslint/lib/load-rules.js' {
declare module 'eslint/lib/options.js' {
declare module.exports: $Exports<'eslint/lib/options'>;
}
declare module 'eslint/lib/report-translator.js' {
declare module.exports: $Exports<'eslint/lib/report-translator'>;
}
declare module 'eslint/lib/rules.js' {
declare module.exports: $Exports<'eslint/lib/rules'>;
}
Expand Down Expand Up @@ -2158,6 +2160,9 @@ declare module 'eslint/lib/rules/no-use-before-define.js' {
declare module 'eslint/lib/rules/no-useless-call.js' {
declare module.exports: $Exports<'eslint/lib/rules/no-useless-call'>;
}
declare module 'eslint/lib/rules/no-useless-catch.js' {
declare module.exports: $Exports<'eslint/lib/rules/no-useless-catch'>;
}
declare module 'eslint/lib/rules/no-useless-computed-key.js' {
declare module.exports: $Exports<'eslint/lib/rules/no-useless-computed-key'>;
}
Expand Down Expand Up @@ -2410,6 +2415,9 @@ declare module 'eslint/lib/util/apply-disable-directives.js' {
declare module 'eslint/lib/util/ast-utils.js' {
declare module.exports: $Exports<'eslint/lib/util/ast-utils'>;
}
declare module 'eslint/lib/util/config-comment-parser.js' {
declare module.exports: $Exports<'eslint/lib/util/config-comment-parser'>;
}
declare module 'eslint/lib/util/file-finder.js' {
declare module.exports: $Exports<'eslint/lib/util/file-finder'>;
}
Expand All @@ -2425,6 +2433,9 @@ declare module 'eslint/lib/util/glob.js' {
declare module 'eslint/lib/util/hash.js' {
declare module.exports: $Exports<'eslint/lib/util/hash'>;
}
declare module 'eslint/lib/util/ignored-paths.js' {
declare module.exports: $Exports<'eslint/lib/util/ignored-paths'>;
}
declare module 'eslint/lib/util/interpolate.js' {
declare module.exports: $Exports<'eslint/lib/util/interpolate'>;
}
Expand Down Expand Up @@ -2455,6 +2466,9 @@ declare module 'eslint/lib/util/path-utils.js' {
declare module 'eslint/lib/util/patterns/letters.js' {
declare module.exports: $Exports<'eslint/lib/util/patterns/letters'>;
}
declare module 'eslint/lib/util/report-translator.js' {
declare module.exports: $Exports<'eslint/lib/util/report-translator'>;
}
declare module 'eslint/lib/util/rule-fixer.js' {
declare module.exports: $Exports<'eslint/lib/util/rule-fixer'>;
}
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/flow-typed_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 9709c4dfa24edaaeabd6d5baf175fc6d
// flow-typed version: <<STUB>>/flow-typed_v^2.5.1/flow_v0.87.0
// flow-typed signature: 8ad7a34a148d9093b705408c6e582e44
// flow-typed version: <<STUB>>/flow-typed_v^2.5.1/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/font-awesome_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 5c1ec7470be953a352cda22636cfad16
// flow-typed version: <<STUB>>/font-awesome_v^4.7.0/flow_v0.87.0
// flow-typed signature: 6508b534d6ea109c0b6c36b94e73d2b6
// flow-typed version: <<STUB>>/font-awesome_v^4.7.0/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
38 changes: 38 additions & 0 deletions flow-typed/npm/gatsby-plugin-emotion_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// flow-typed signature: a3a5bee54bff6d0793872a437e8c7829
// flow-typed version: <<STUB>>/gatsby-plugin-emotion_v^4.0.1/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
*
* 'gatsby-plugin-emotion'
*
* 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 'gatsby-plugin-emotion' {
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 'gatsby-plugin-emotion/gatsby-node' {
declare module.exports: any;
}

// Filename aliases
declare module 'gatsby-plugin-emotion/gatsby-node.js' {
declare module.exports: $Exports<'gatsby-plugin-emotion/gatsby-node'>;
}
declare module 'gatsby-plugin-emotion/index' {
declare module.exports: $Exports<'gatsby-plugin-emotion'>;
}
declare module 'gatsby-plugin-emotion/index.js' {
declare module.exports: $Exports<'gatsby-plugin-emotion'>;
}
45 changes: 45 additions & 0 deletions flow-typed/npm/gatsby-plugin-google-analytics_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// flow-typed signature: 1dd86cf94cf9fab70e5460cbd31b571a
// flow-typed version: <<STUB>>/gatsby-plugin-google-analytics_v^2.0.8/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
*
* 'gatsby-plugin-google-analytics'
*
* 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 'gatsby-plugin-google-analytics' {
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 'gatsby-plugin-google-analytics/gatsby-browser' {
declare module.exports: any;
}

declare module 'gatsby-plugin-google-analytics/gatsby-ssr' {
declare module.exports: any;
}

// Filename aliases
declare module 'gatsby-plugin-google-analytics/gatsby-browser.js' {
declare module.exports: $Exports<'gatsby-plugin-google-analytics/gatsby-browser'>;
}
declare module 'gatsby-plugin-google-analytics/gatsby-ssr.js' {
declare module.exports: $Exports<'gatsby-plugin-google-analytics/gatsby-ssr'>;
}
declare module 'gatsby-plugin-google-analytics/index' {
declare module.exports: $Exports<'gatsby-plugin-google-analytics'>;
}
declare module 'gatsby-plugin-google-analytics/index.js' {
declare module.exports: $Exports<'gatsby-plugin-google-analytics'>;
}
4 changes: 2 additions & 2 deletions flow-typed/npm/gatsby-plugin-manifest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 38d1784fd49df7056ff2a5bf8c3a19d6
// flow-typed version: <<STUB>>/gatsby-plugin-manifest_v^2.0.5/flow_v0.87.0
// flow-typed signature: 757a14cb7fdd386ed33b23f9e8824312
// flow-typed version: <<STUB>>/gatsby-plugin-manifest_v^2.0.13/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/gatsby-plugin-offline_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: c7246a7810c9ad23df3bb74744e96c94
// flow-typed version: <<STUB>>/gatsby-plugin-offline_v^2.0.6/flow_v0.87.0
// flow-typed signature: 17ec75cc493413c757064f63c2b3feff
// flow-typed version: <<STUB>>/gatsby-plugin-offline_v^2.0.20/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions flow-typed/npm/gatsby-plugin-react-helmet_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 5c10f078699880b39ceebf52c0493879
// flow-typed version: <<STUB>>/gatsby-plugin-react-helmet_v^3.0.0/flow_v0.87.0
// flow-typed signature: b1d8291ea024487ec366f77d696e46e1
// flow-typed version: <<STUB>>/gatsby-plugin-react-helmet_v^3.0.5/flow_v0.89.0

/**
* This is an autogenerated libdef stub for:
Expand Down

0 comments on commit f2a9183

Please sign in to comment.