Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.0] Combine typegen and transformer plugins fixes #918 #926

Merged
merged 4 commits into from
May 5, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update example websites
  • Loading branch information
KyleAMathews committed May 5, 2017
commit eb54de02675ee102ea9f2f0d11447ccf741608ed
2 changes: 0 additions & 2 deletions examples/gatsbygram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"gatsby-source-filesystem": "canary",
"gatsby-transformer-json": "canary",
"gatsby-transformer-sharp": "canary",
"gatsby-typegen-filesystem": "canary",
"gatsby-typegen-sharp": "canary",
"instagram-screen-scrape": "^2.0.0",
"lodash": "^4.16.4",
"mkdirp": "^0.5.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-transformer-remark/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const headingsCacheKey = node => {
return `transformer-remark-markdown-headings-${node.contentDigest}-${pluginsCacheStr}`
}

exports.extendNodeType = (
module.exports = (
{ type, allNodes, linkPrefix, getNode, cache },
pluginOptions
) => {
Expand Down
17 changes: 7 additions & 10 deletions www/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,32 @@ module.exports = {
path: `${__dirname}/../packages/`,
},
},
`gatsby-transformer-remark`,
`gatsby-transformer-sharp`,
`gatsby-transformer-yaml`,
{
resolve: `gatsby-typegen-remark`,
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-typegen-remark-responsive-image`,
resolve: `gatsby-remark-responsive-image`,
options: {
maxWidth: 690,
backgroundColor: `#f7f0eb`,
},
},
{
resolve: `gatsby-typegen-remark-responsive-iframe`,
resolve: `gatsby-remark-responsive-iframe`,
options: {
wrapperStyle: `margin-bottom: 1.05rem`,
},
},
`gatsby-typegen-remark-prismjs`,
`gatsby-typegen-remark-copy-linked-files`,
`gatsby-typegen-remark-smartypants`,
`gatsby-typegen-remark-autolink-headers`,
`gatsby-remark-prismjs`,
`gatsby-remark-copy-linked-files`,
`gatsby-remark-smartypants`,
`gatsby-remark-autolink-headers`,
],
},
},
`gatsby-typegen-filesystem`,
`gatsby-typegen-sharp`,
`gatsby-plugin-glamor`,
`gatsby-plugin-sharp`,
`gatsby-plugin-catch-links`,
Expand Down
16 changes: 7 additions & 9 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@
"gatsby-plugin-offline": "canary",
"gatsby-plugin-sharp": "canary",
"gatsby-source-filesystem": "canary",
"gatsby-typegen-filesystem": "canary",
"gatsby-typegen-remark": "canary",
"gatsby-typegen-remark-autolink-headers": "canary",
"gatsby-typegen-remark-copy-linked-files": "canary",
"gatsby-typegen-remark-prismjs": "canary",
"gatsby-typegen-remark-responsive-iframe": "canary",
"gatsby-typegen-remark-responsive-image": "canary",
"gatsby-typegen-remark-smartypants": "canary",
"gatsby-typegen-sharp": "canary",
"gatsby-remark-autolink-headers": "canary",
"gatsby-remark-copy-linked-files": "canary",
"gatsby-remark-prismjs": "canary",
"gatsby-remark-responsive-iframe": "canary",
"gatsby-remark-responsive-image": "canary",
"gatsby-remark-smartypants": "canary",
"gatsby-sharp": "canary",
"lodash": "^4.16.6",
"parse-filepath": "^1.0.1",
"react-helmet": "^4.0.0",
Expand Down