Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
fix(deps): update gatsby monorepo (major) (#88)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| gatsby | dependencies | major | `1.9.277` -> `2.0.28` | [source](https://renovatebot.com/gh/gatsbyjs/gatsby) |
| gatsby-link | dependencies | major | `1.6.46` -> `2.0.4` | [source](https://renovatebot.com/gh/gatsbyjs/gatsby) |
| gatsby-plugin-manifest | dependencies | major | `1.0.27` -> `2.0.5` | [source](https://renovatebot.com/gh/gatsbyjs/gatsby) |
| gatsby-plugin-offline | dependencies | major | `1.0.18` -> `2.0.7` | [source](https://renovatebot.com/gh/gatsbyjs/gatsby) |
| gatsby-plugin-react-helmet | dependencies | major | `2.0.11` -> `3.0.0` | [source](https://renovatebot.com/gh/gatsbyjs/gatsby) |
| gatsby-transformer-remark | dependencies | major | `1.7.44` -> `2.1.8` | [source](https://renovatebot.com/gh/gatsbyjs/gatsby) |

---

### Release Notes

<details>
<summary>gatsbyjs/gatsby</summary>

### [`v2.0.28`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/9057427080128d6b78356efc799adcc4cda6c7da...89fb257298b50bfef01634675d95a3e254ac2445)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/9057427080128d6b78356efc799adcc4cda6c7da...89fb257298b50bfef01634675d95a3e254ac2445)

### [`v2.0.27`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/b48fb5d0c05be328b70e7c7ee2ceea858b2eeb52...9057427080128d6b78356efc799adcc4cda6c7da)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/b48fb5d0c05be328b70e7c7ee2ceea858b2eeb52...9057427080128d6b78356efc799adcc4cda6c7da)

### [`v2.0.26`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/221990ccdffaacd7c0f034efc773d404059d0d9b...b48fb5d0c05be328b70e7c7ee2ceea858b2eeb52)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/221990ccdffaacd7c0f034efc773d404059d0d9b...b48fb5d0c05be328b70e7c7ee2ceea858b2eeb52)

### [`v2.0.25`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/9b09293d8150dd9ba7cdbf2a5501a6904a56ee4c...221990ccdffaacd7c0f034efc773d404059d0d9b)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/9b09293d8150dd9ba7cdbf2a5501a6904a56ee4c...221990ccdffaacd7c0f034efc773d404059d0d9b)

### [`v2.0.24`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/1b1b1d1df229d98431020a6ff10004a8c50e5d32...9b09293d8150dd9ba7cdbf2a5501a6904a56ee4c)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/1b1b1d1df229d98431020a6ff10004a8c50e5d32...9b09293d8150dd9ba7cdbf2a5501a6904a56ee4c)

### [`v2.0.23`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/aa9bc1b353c2f83dad7d39d07f5a7c1b8ac092a0...1b1b1d1df229d98431020a6ff10004a8c50e5d32)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/aa9bc1b353c2f83dad7d39d07f5a7c1b8ac092a0...1b1b1d1df229d98431020a6ff10004a8c50e5d32)

### [`v2.0.22`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/2d2e29b97a1e9a5dc49cd9763a8ab9f468e695e6...aa9bc1b353c2f83dad7d39d07f5a7c1b8ac092a0)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/2d2e29b97a1e9a5dc49cd9763a8ab9f468e695e6...aa9bc1b353c2f83dad7d39d07f5a7c1b8ac092a0)

### [`v2.0.21`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/fd0266f5e028a1db8729581c7db37406a9eeade3...2d2e29b97a1e9a5dc49cd9763a8ab9f468e695e6)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/fd0266f5e028a1db8729581c7db37406a9eeade3...2d2e29b97a1e9a5dc49cd9763a8ab9f468e695e6)

### [`v2.0.20`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/4339821df003d0ea6ffbff3adb53a4ba4d0c5241...fd0266f5e028a1db8729581c7db37406a9eeade3)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/4339821df003d0ea6ffbff3adb53a4ba4d0c5241...fd0266f5e028a1db8729581c7db37406a9eeade3)

### [`v2.0.19`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/f0165839a52e44d2c3cb6a1e65b0c1174fb2406a...4339821df003d0ea6ffbff3adb53a4ba4d0c5241)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/f0165839a52e44d2c3cb6a1e65b0c1174fb2406a...4339821df003d0ea6ffbff3adb53a4ba4d0c5241)

### [`v2.0.18`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/61257691d338188130926f83509a393a743eaacb...f0165839a52e44d2c3cb6a1e65b0c1174fb2406a)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/61257691d338188130926f83509a393a743eaacb...f0165839a52e44d2c3cb6a1e65b0c1174fb2406a)

### [`v2.0.17`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/8799a9b1890eee759bf4ac998317c406db458fa1...61257691d338188130926f83509a393a743eaacb)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/8799a9b1890eee759bf4ac998317c406db458fa1...61257691d338188130926f83509a393a743eaacb)

### [`v2.0.16`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/21fb186dfb61222b612fe96cfe0e259c19ea6989...8799a9b1890eee759bf4ac998317c406db458fa1)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/21fb186dfb61222b612fe96cfe0e259c19ea6989...8799a9b1890eee759bf4ac998317c406db458fa1)

### [`v2.0.15`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/803179b7636cd4be22e70db4d86525f531918bdc...21fb186dfb61222b612fe96cfe0e259c19ea6989)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/803179b7636cd4be22e70db4d86525f531918bdc...21fb186dfb61222b612fe96cfe0e259c19ea6989)

### [`v2.0.14`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/32f503d63b29eae4a517ebc6bdbe1c7e7d8a75c4...803179b7636cd4be22e70db4d86525f531918bdc)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/32f503d63b29eae4a517ebc6bdbe1c7e7d8a75c4...803179b7636cd4be22e70db4d86525f531918bdc)

### [`v2.0.13`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/5ad1bb5cfeb9b53653655e97c21ffeb5b9297fb7...32f503d63b29eae4a517ebc6bdbe1c7e7d8a75c4)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/5ad1bb5cfeb9b53653655e97c21ffeb5b9297fb7...32f503d63b29eae4a517ebc6bdbe1c7e7d8a75c4)

### [`v2.0.12`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/17b9dc2b2d3a11ff2663832a6df417af59db5944...5ad1bb5cfeb9b53653655e97c21ffeb5b9297fb7)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/17b9dc2b2d3a11ff2663832a6df417af59db5944...5ad1bb5cfeb9b53653655e97c21ffeb5b9297fb7)

### [`v2.0.11`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/401b8de6abb9e9aa9927f9b78a695298c7d764e9...17b9dc2b2d3a11ff2663832a6df417af59db5944)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/401b8de6abb9e9aa9927f9b78a695298c7d764e9...17b9dc2b2d3a11ff2663832a6df417af59db5944)

### [`v2.0.10`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/3e48ea91cc8cd96b7bac2bf9cd0f61f34a9fad87...401b8de6abb9e9aa9927f9b78a695298c7d764e9)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/3e48ea91cc8cd96b7bac2bf9cd0f61f34a9fad87...401b8de6abb9e9aa9927f9b78a695298c7d764e9)

### [`v2.0.9`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/fe384a3554c1c2024cba1c9e7167569593814f18...3e48ea91cc8cd96b7bac2bf9cd0f61f34a9fad87)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/fe384a3554c1c2024cba1c9e7167569593814f18...3e48ea91cc8cd96b7bac2bf9cd0f61f34a9fad87)

### [`v2.0.8`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/1fe06670f848efdd091fa982cb869332ea256b7f...fe384a3554c1c2024cba1c9e7167569593814f18)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/1fe06670f848efdd091fa982cb869332ea256b7f...fe384a3554c1c2024cba1c9e7167569593814f18)

### [`v2.0.7`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/fd0266f5e028a1db8729581c7db37406a9eeade3...221990ccdffaacd7c0f034efc773d404059d0d9b)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/fd0266f5e028a1db8729581c7db37406a9eeade3...221990ccdffaacd7c0f034efc773d404059d0d9b)

### [`v2.0.6`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/dc95450df6e853d04b0b8c7bd1b6e1a17aaae6b0...fd0266f5e028a1db8729581c7db37406a9eeade3)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/dc95450df6e853d04b0b8c7bd1b6e1a17aaae6b0...fd0266f5e028a1db8729581c7db37406a9eeade3)

### [`v2.0.5`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/3e48ea91cc8cd96b7bac2bf9cd0f61f34a9fad87...b0463a9df3f785395277363308b1ee46b1a0a3e5)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/3e48ea91cc8cd96b7bac2bf9cd0f61f34a9fad87...b0463a9df3f785395277363308b1ee46b1a0a3e5)

### [`v2.0.4`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/fd0266f5e028a1db8729581c7db37406a9eeade3...1b1b1d1df229d98431020a6ff10004a8c50e5d32)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/fd0266f5e028a1db8729581c7db37406a9eeade3...1b1b1d1df229d98431020a6ff10004a8c50e5d32)

### [`v2.0.3`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/96359acdc7649360545e661cc0f84da7405af884...4d96dc5b2643d15d3b8d691111916180d4f05037)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/96359acdc7649360545e661cc0f84da7405af884...4d96dc5b2643d15d3b8d691111916180d4f05037)

### [`v2.0.2`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/c82f2a87e6f7d6c63982a003062f48aae099819b...96359acdc7649360545e661cc0f84da7405af884)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/c82f2a87e6f7d6c63982a003062f48aae099819b...96359acdc7649360545e661cc0f84da7405af884)

### [`v2.0.1`](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/dc95450df6e853d04b0b8c7bd1b6e1a17aaae6b0...c82f2a87e6f7d6c63982a003062f48aae099819b)

[Compare Source](https://renovatebot.com/gh/gatsbyjs/gatsby/compare/dc95450df6e853d04b0b8c7bd1b6e1a17aaae6b0...c82f2a87e6f7d6c63982a003062f48aae099819b)

### [`v2.0.0`](https://renovatebot.com/gh/gatsbyjs/gatsby/blob/master/CHANGELOG.md#&#8203;200---2018-09-13)

##### Added

-   Improve Gatsby's routing accessibility by integrating [@&#8203;reach/router](https://renovatebot.com/gh/reach/router) ([#&#8203;6918](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6918)) [@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Add new onPreRenderHTML SSR API to manage head components in html.js ([#&#8203;6760](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6760)) [@&#8203;octalmage](https://renovatebot.com/gh/octalmage)
-   Improve build speeds on larger sites (HulkSmash!)	([#&#8203;6226](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6226)) [@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Add multi-process HTML rendering support([#&#8203;6417](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6417))	[@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Add babel-plugin-macros for custom babel config	([#&#8203;7129](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7129)) [@&#8203;porfirioribeiro](https://renovatebot.com/gh/porfirioribeiro)
-   Upgrade webpack to v3, improve webpack utils ([#&#8203;3126](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/3126)) [@&#8203;jquense](https://renovatebot.com/gh/jquense)
-   Add gatsby-remark-graphviz plugin to render dot (graphviz) code blocks to SVG	([#&#8203;7341](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7341)) [@&#8203;Moocar](https://renovatebot.com/gh/Moocar)
-   Improve support for non-latin language content in gatsby-transformer-remark ([#&#8203;6992](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6992)) [@&#8203;youngboy](https://renovatebot.com/gh/youngboy)
-   Improve support for Drupal relationships in gatsby-source-drupal ([#&#8203;5020](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/5020)) [@&#8203;pieh](https://renovatebot.com/gh/pieh)
-   Add support for extra connection string params in gatsby-source-mongodb	([#&#8203;5972](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/5972)) [@&#8203;lcostea](https://renovatebot.com/gh/lcostea)
-   Add support for additional options supplied to gatsby-plugin-styled-components ([#&#8203;5240](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/5240)) [@&#8203;nihgwu](https://renovatebot.com/gh/nihgwu)
-   Add guide on debugging the Gatsby build process	([#&#8203;6369](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6369)) [@&#8203;pieh](https://renovatebot.com/gh/pieh)
-   Add docs on unit testing, Cypress, react-testing-library and testing CSS-in-JS	([#&#8203;6678](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6678), [#&#8203;6708](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6708)) [@&#8203;ascorbic](https://renovatebot.com/gh/ascorbic), [@&#8203;LeKoArts](https://renovatebot.com/gh/LeKoArts)
-   Redesigned docs navigation and expanded docs topics	([#&#8203;6245](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6245), [#&#8203;6610](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6610)) [@&#8203;shannonbux](https://renovatebot.com/gh/shannonbux), [@&#8203;fk](https://renovatebot.com/gh/fk)
-   Allow plugins to override core prefetching behavior	([#&#8203;5320](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/5320)) [@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Add gatsby-codemods package to assist v1 -> v2 transition	([#&#8203;6122](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6122)) [@&#8203;jquense](https://renovatebot.com/gh/jquense)
-   Add gatsby-plugin-layout package to allow use of v1 layout components in v2 ([#&#8203;7204](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7204)) [@&#8203;pieh](https://renovatebot.com/gh/pieh)
-   Add support for service worker caching of prefetched resources in gatsby-plugin-offline	([#&#8203;6566](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6566)) [@&#8203;kkemple](https://renovatebot.com/gh/kkemple)
-   Add critical scripts and links to static file globs in service worker in gatsby-plugin-offline ([#&#8203;6316](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6316)) [@&#8203;kkemple](https://renovatebot.com/gh/kkemple)
-   Add snapshot testing for gatsby-link ([#&#8203;7090](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7090)) [@&#8203;alexandernanberg](https://renovatebot.com/gh/alexandernanberg)
-   Introduce REPL command to gatsby-cli	([#&#8203;7262](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7262)) [@&#8203;kkemple](https://renovatebot.com/gh/kkemple)
-   Add support for webpackPrefetch	([#&#8203;5901](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/5901)) [@&#8203;pistachiology](https://renovatebot.com/gh/pistachiology)
-   Explicitly export graphql tag from Gatsby ([#&#8203;5415](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/5415)) [@&#8203;pieh](https://renovatebot.com/gh/pieh)
-   Add eslint-loader and eslint configuration ([#&#8203;4893](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/4893)) [@&#8203;kkemple](https://renovatebot.com/gh/kkemple)
-   Improve loading graphql query results ("ludicrous mode!") ([#&#8203;4555](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/4555)) [@&#8203;m-allanson](https://renovatebot.com/gh/m-allanson)
-   Improve error messaging when Gatsby is not installed	([#&#8203;7106](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7106)) [@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Improve modifyWebpackConfig error messaging	([#&#8203;7152](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7152)) [@&#8203;m-allanson](https://renovatebot.com/gh/m-allanson)
-   Add support for open tracing with zipkin ([#&#8203;6347](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6347)) [@&#8203;Moocar](https://renovatebot.com/gh/Moocar)
-   Improve error messaging when plugin can't be loaded	([#&#8203;7023](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7023)) [@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Display formatted message for graphql resolver errors	([#&#8203;6142](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6142)) [@&#8203;pieh](https://renovatebot.com/gh/pieh)
-   Improve error formatting on HTML build errors	([#&#8203;6188](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6188)) [@&#8203;pieh](https://renovatebot.com/gh/pieh)

##### Fixed

-   Fix out of memory error by saving state to after bootstrap is complete ([#&#8203;6636](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6636)) [@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Fix out of memory error by flattening entry values ([#&#8203;6797](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6797)) [@&#8203;chuntley](https://renovatebot.com/gh/chuntley)
-   Fix code syntax formatting bug which highlighted keywords in plaintext ([#&#8203;7342](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7342)) [@&#8203;tryzniak](https://renovatebot.com/gh/tryzniak)
-   Remove dependency on react-lifecycles-compat ([#&#8203;7070](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7070)) [@&#8203;alexandernanberg](https://renovatebot.com/gh/alexandernanberg)
-   Prevent both preloading and inlining css in head ([#&#8203;6009](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6009)) [@&#8203;thescientist13](https://renovatebot.com/gh/thescientist13)
-   Fix service worker bug originating from inlining webpack-runtime ([#&#8203;5540](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/5540)) [@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Fix bug producing duplicates when naming GraphQL queries ([#&#8203;6765](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6765)) [@&#8203;fusepilot](https://renovatebot.com/gh/fusepilot)
-   Fix typo in type annotation ([#&#8203;6288](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/6288)) [@&#8203;sudodoki](https://renovatebot.com/gh/sudodoki)
-   Fix showing 404 page in development	([#&#8203;7140](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7140)) [@&#8203;KyleAMathews](https://renovatebot.com/gh/KyleAMathews)
-   Tighten externals matching to prevent code imports from causing build errors ([#&#8203;7325](https://renovatebot.com/gh/gatsbyjs/gatsby/issues/7325)) [@&#8203;m-allanson](https://renovatebot.com/gh/m-allanson)

</details>

---

@rdela 
- two point oh
- Update gatsby monorepo: gatsby(2.0.29), gatsby-plugin-offline(2.0.8)
- Update react monorepo to v16.6.0
- bump pkg json version to 2.0.0
  • Loading branch information
renovate[bot] authored and rdela committed Oct 24, 2018
1 parent fc76134 commit 4dce360
Show file tree
Hide file tree
Showing 16 changed files with 5,911 additions and 4,525 deletions.
6 changes: 3 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
siteMetadata: {
title: `Gatsby with GraphCMS`
title: `Gatsby Source GraphCMS Example`
},
plugins: [
`gatsby-plugin-react-helmet`,
Expand All @@ -15,8 +15,8 @@ module.exports = {
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsby with GraphCMS`,
short_name: `Gatsby GCMS`,
name: `Gatsby Source GraphCMS Example`,
short_name: `Gatsby + GraphCMS`,
start_url: `/`,
background_color: `#fff`,
theme_color: `#61045f`,
Expand Down
8 changes: 4 additions & 4 deletions gatsby-node.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const path = require(`path`);
const queryAll = require(`./gatsby/queryAll.js`);

exports.onCreateNode = ({ node, boundActionCreators }) => {
const { createNode } = boundActionCreators;
exports.onCreateNode = ({ node, actions }) => {
const { createNode } = actions;
if (node.internal.type === `Review`) {
createNode({
id: `md-${node.id}`,
Expand All @@ -18,8 +18,8 @@ exports.onCreateNode = ({ node, boundActionCreators }) => {
}
};

exports.createPages = ({ boundActionCreators, graphql }) => {
const { createPage } = boundActionCreators;
exports.createPages = ({ actions, graphql }) => {
const { createPage } = actions;

return new Promise((resolve, reject) => {
const artistDetailPageTemplate = path.resolve(
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.1",
"version": "2.0.0",
"name": "gatsby-graphcms-example",
"description": "Gatsby example site using the GraphCMS source plugin",
"keywords": [
Expand All @@ -23,13 +23,15 @@
"Ricky de Laveaga (https://rdela.com)"
],
"dependencies": {
"gatsby": "1.9.277",
"gatsby-link": "1.6.46",
"gatsby-plugin-manifest": "1.0.27",
"gatsby-plugin-offline": "1.0.18",
"gatsby-plugin-react-helmet": "2.0.11",
"gatsby": "2.0.29",
"gatsby-link": "2.0.4",
"gatsby-plugin-manifest": "2.0.5",
"gatsby-plugin-offline": "2.0.8",
"gatsby-plugin-react-helmet": "3.0.0",
"gatsby-source-graphcms": "1.0.0-alpha.3",
"gatsby-transformer-remark": "1.7.44",
"gatsby-transformer-remark": "2.1.8",
"react": "16.6.0",
"react-dom": "16.6.0",
"react-helmet": "5.2.0",
"react-star-rating-component": "1.4.1"
},
Expand Down
34 changes: 34 additions & 0 deletions src/components/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from "react";
import { Link } from "gatsby";

const Header = ({ siteTitle }) => (
<div
style={{
background: `rebeccapurple`,
marginBottom: `1.45rem`,
textAlign: `center`
}}
>
<div
style={{
margin: `0 auto`,
maxWidth: 960,
padding: `1.45rem 1.0875rem`
}}
>
<h1 style={{ margin: 0 }}>
<Link
to="/"
style={{
color: `white`,
textDecoration: `none`
}}
>
{siteTitle}
</Link>
</h1>
</div>
</div>
);

export default Header;
File renamed without changes.
51 changes: 51 additions & 0 deletions src/components/layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import React from "react";
import PropTypes from "prop-types";
import Helmet from "react-helmet";
import { StaticQuery, graphql } from "gatsby";

import Header from "./header";
import "./layout.css";

const Layout = ({ children }) => (
<StaticQuery
query={graphql`
query SiteTitleQuery {
site {
siteMetadata {
title
}
}
}
`}
render={data => (
<>
<Helmet
title={data.site.siteMetadata.title}
meta={[
{ name: `description`, content: `Gatsby GraphCMS Example` },
{ name: `keywords`, content: `gatsby, graphcms, example` }
]}
>
<html lang="en" />
</Helmet>
<Header siteTitle={data.site.siteMetadata.title} />
<div
style={{
margin: `0 auto`,
maxWidth: 960,
padding: `0px 1.0875rem 1.45rem`,
paddingTop: 0
}}
>
{children}
</div>
</>
)}
/>
);

Layout.propTypes = {
children: PropTypes.node.isRequired
};

export default Layout;
65 changes: 0 additions & 65 deletions src/layouts/index.js

This file was deleted.

5 changes: 3 additions & 2 deletions src/pages/404.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from "react";
import Layout from "../components/layout";

const NotFoundPage = () => (
<div>
<Layout>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn&#39;t exist... the sadness.</p>
</div>
</Layout>
);

export default NotFoundPage;
8 changes: 5 additions & 3 deletions src/pages/artists.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import React, { Component } from "react";
import Link from "gatsby-link";
import { graphql, Link } from "gatsby";

import Layout from "../components/layout";

class ArtistPage extends Component {
render() {
const artists = this.props.data.artists.edges;
return (
<div>
<Layout>
<section className="artists" style={{ textAlign: `center` }}>
<h1>Artists</h1>
<nav>
Expand Down Expand Up @@ -67,7 +69,7 @@ class ArtistPage extends Component {
</ul>
</nav>
</section>
</div>
</Layout>
);
}
}
Expand Down
Loading

0 comments on commit 4dce360

Please sign in to comment.