This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade to Gatsby v2 * Remove unnecessary polyfills since gatsby already provides them * Move global styles to gatsby-browser * Add fb comment and convert to cjs * Revert to use pageQuery again * Add back html.js * Update dependencies * Move TitleAndMetaTags * Replace glamor/reset with normalize.css which fixes style order in prod * Prettier formatting * Remove unused types * Remove old layout * Fix versions link * Update deps * Update deps * Remove hack since it's no longer needed * Update dependencies * Fix build error * Fix prettier config resolution * Update gatsby * Remove custom onCreatePage logic * Update dependencies * Fix build * Update dependencies * prettier formatting * update dependencies * add custom babel config for flow * upgrade dependencies * update dependencies * use stable gatsby release
- Loading branch information
1 parent
12f003c
commit 71b0348
Showing
41 changed files
with
4,277 additions
and
4,191 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,41 @@ | ||
{ | ||
"presets": ['react', 'es2015', 'stage-1'], | ||
"plugins": ['add-module-exports'] | ||
} | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"loose": true, | ||
"modules": false, | ||
"useBuiltIns": "usage", | ||
"shippedProposals": true, | ||
"targets": { | ||
"browsers": [">0.25%", "not dead"], | ||
} | ||
} | ||
], | ||
[ | ||
"@babel/preset-react", | ||
{ | ||
"useBuiltIns": true, | ||
"pragma": "React.createElement", | ||
} | ||
], | ||
"@babel/flow" | ||
], | ||
"plugins": [ | ||
[ | ||
"@babel/plugin-proposal-class-properties", | ||
{ | ||
"loose": true | ||
} | ||
], | ||
"@babel/plugin-syntax-dynamic-import", | ||
"babel-plugin-macros", | ||
[ | ||
"@babel/plugin-transform-runtime", | ||
{ | ||
"helpers": true, | ||
"regenerator": true | ||
} | ||
] | ||
] | ||
} |
File renamed without changes.
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,3 +1,3 @@ | ||
declare module 'gatsby-link' { | ||
declare module 'gatsby' { | ||
declare module.exports: any; | ||
} |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* | ||
* @emails react-core | ||
*/ | ||
|
||
'use strict'; | ||
|
||
// Import global styles | ||
require('normalize.css'); | ||
require('./src/css/reset.css'); | ||
require('./src/prism-styles'); | ||
require('./src/css/algolia.css'); | ||
|
||
// A stub function is needed because gatsby won't load this file otherwise | ||
// (https://github.com/gatsbyjs/gatsby/issues/6759) | ||
exports.onClientEntry = () => {}; |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* | ||
* @emails react-core | ||
*/ | ||
|
||
'use strict'; | ||
|
||
const {resolve} = require('path'); | ||
const webpack = require('webpack'); | ||
|
||
module.exports = ({stage, actions}) => { | ||
actions.setWebpackConfig({ | ||
resolve: { | ||
modules: [ | ||
resolve(__dirname, '../src'), | ||
resolve(__dirname, '../node_modules'), | ||
], | ||
}, | ||
// See https://github.com/FormidableLabs/react-live/issues/5 | ||
plugins: [new webpack.IgnorePlugin(/^(xor|props)$/)], | ||
}); | ||
}; |
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
Oops, something went wrong.