Skip to content

Commit

Permalink
Update using-javascript-transforms example to Gatsby v2
Browse files Browse the repository at this point in the history
  • Loading branch information
m-allanson committed Jun 28, 2018
1 parent f7b88e0 commit cc26240
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
13 changes: 7 additions & 6 deletions examples/using-javascript-transforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
"dependencies": {
"bulma": "0.4.2",
"d3": "4.9.1",
"gatsby": "latest",
"gatsby-plugin-sass": "^1.0.16",
"gatsby-remark-prismjs": "latest",
"gatsby-source-filesystem": "latest",
"gatsby-transformer-javascript-frontmatter": "latest",
"gatsby-transformer-remark": "latest",
"gatsby": "next",
"gatsby-plugin-sass": "next",
"gatsby-remark-prismjs": "next",
"gatsby-source-filesystem": "next",
"gatsby-transformer-javascript-frontmatter": "next",
"gatsby-transformer-remark": "next",
"moment": "^2.14.1",
"node-sass": "^4.9.0",
"normalize.css": "^7.0.0",
"prismjs": "^1.13.0",
"prop-types": "^15.5.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { findDOMNode } from "react-dom"
var d3 = require(`d3`)

// this is one method to export data and make it usable elsewhere
exports.frontmatter = {
export const frontmatter = {
title: `Choropleth on d3v4`,
written: `2017-03-09`,
updated: `2017-04-28`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Helmet from "react-helmet"
import SiteLinks from "../components/SiteLinks"
import InsetPageLayout from "../components/Layouts/insetPage"

exports.frontmatter = {
export const frontmatter = {
layoutType: `page`,
path: `/contact/`,
}
Expand Down
3 changes: 1 addition & 2 deletions examples/using-javascript-transforms/src/mainPages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import sortBy from "lodash/sortBy"
import moment from "moment"
import InsetPageLayout from "../components/Layouts/insetPage"

exports.frontmatter = {
export const frontmatter = {
layoutType: `page`,
path: `/`,
}
Expand Down Expand Up @@ -116,7 +116,6 @@ export const pageQuery = graphql`
title
path
layoutType
parent
written
updated
category
Expand Down

0 comments on commit cc26240

Please sign in to comment.