From a7883fe4f048d4487f086283e15950fc4a9589c5 Mon Sep 17 00:00:00 2001 From: Marco Biedermann Date: Wed, 20 Dec 2017 12:24:22 +0100 Subject: [PATCH] add graphql as dependency --- package.json | 1 + src/pages/index.jsx | 1 + src/templates/about-page.jsx | 1 + src/templates/blog-post.jsx | 1 + src/templates/product-page.jsx | 1 + yarn.lock | 8 +++++++- 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1a9fb67..8e7d493 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "gatsby-source-filesystem": "^1.5.5", "gatsby-transformer-remark": "^1.7.17", "gatsby-transformer-sharp": "^1.6.13", + "graphql": "^0.12.3", "prop-types": "^15.6.0", "react": "^16.2.0", "react-helmet": "^5.2.0", diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 22f891e..74196a9 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,6 +1,7 @@ import React from 'react'; import Link from 'gatsby-link'; import Script from 'react-load-script'; +import graphql from 'graphql'; export default class IndexPage extends React.Component { static handleScriptLoad() { diff --git a/src/templates/about-page.jsx b/src/templates/about-page.jsx index 30ffdc5..22204c9 100644 --- a/src/templates/about-page.jsx +++ b/src/templates/about-page.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import graphql from 'graphql'; import Content, { HTMLContent } from '../components/Content'; export const AboutPageTemplate = ({ title, content, contentComponent }) => { diff --git a/src/templates/blog-post.jsx b/src/templates/blog-post.jsx index 10f7181..22b3f0d 100644 --- a/src/templates/blog-post.jsx +++ b/src/templates/blog-post.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import graphql from 'graphql'; import Content, { HTMLContent } from '../components/Content'; import Helmet from 'react-helmet'; diff --git a/src/templates/product-page.jsx b/src/templates/product-page.jsx index 4ce8be4..f104cef 100644 --- a/src/templates/product-page.jsx +++ b/src/templates/product-page.jsx @@ -1,4 +1,5 @@ import React from 'react'; +import graphql from 'graphql'; import Features from '../components/Features'; import Testimonials from '../components/Testimonials'; import Pricing from '../components/Pricing'; diff --git a/yarn.lock b/yarn.lock index e4b25b3..2da58a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3942,6 +3942,12 @@ graphql@^0.10.3, graphql@^0.10.5: dependencies: iterall "^1.1.0" +graphql@^0.12.3: + version "0.12.3" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.12.3.tgz#11668458bbe28261c0dcb6e265f515ba79f6ce07" + dependencies: + iterall "1.1.3" + gray-matter@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/gray-matter/-/gray-matter-2.1.1.tgz#3042d9adec2a1ded6a7707a9ed2380f8a17a430e" @@ -4876,7 +4882,7 @@ items@2.x.x: version "2.1.1" resolved "https://registry.yarnpkg.com/items/-/items-2.1.1.tgz#8bd16d9c83b19529de5aea321acaada78364a198" -iterall@^1.1.0: +iterall@1.1.3, iterall@^1.1.0: version "1.1.3" resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.3.tgz#1cbbff96204056dde6656e2ed2e2226d0e6d72c9"