Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for plugin dependencies (#27995)
* feat(create-gatsby): Add support for plugin dependencies * Fix extra plugin handling
- Loading branch information
Showing
5 changed files
with
113 additions
and
27 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,9 +1,47 @@ | ||
{ | ||
"gatsby-plugin-google-analytics": {"message": "Add the Google Analytics tracking script"}, | ||
"gatsby-plugin-react-helmet": {"message": "Add page metadata", "dependencies": ["react-helmet"]}, | ||
"gatsby-plugin-sitemap": {"message": "Add an automatic sitemap"}, | ||
"gatsby-plugin-offline": {"message": "Enable offline functionality"}, | ||
"gatsby-plugin-manifest": {"message": "Generate a manifest file"}, | ||
"gatsby-plugin-mdx": {"message": "Add MDX support", "dependencies": ["@mdx-js/react", "@mdx-js/mdx"]} | ||
|
||
"gatsby-plugin-google-analytics": { | ||
"message": "Add the Google Analytics tracking script" | ||
}, | ||
"gatsby-plugin-image": { | ||
"message": "Add responsive images", | ||
"plugins": [ | ||
"gatsby-plugin-sharp", | ||
"gatsby-transformer-sharp", | ||
"gatsby-source-filesystem:images" | ||
], | ||
"options": { | ||
"gatsby-source-filesystem:images": { | ||
"name": "images", | ||
"path": "./src/images/" | ||
} | ||
} | ||
}, | ||
"gatsby-plugin-react-helmet": { | ||
"message": "Add page meta tags with React Helmet", | ||
"dependencies": ["react-helmet"] | ||
}, | ||
"gatsby-plugin-sitemap": { "message": "Add an automatic sitemap" }, | ||
"gatsby-plugin-offline": { "message": "Enable offline functionality" }, | ||
"gatsby-plugin-manifest": { "message": "Generate a manifest file" }, | ||
"gatsby-transformer-remark": { | ||
"message": "Add Markdown support (without MDX)", | ||
"plugins": ["gatsby-source-filesystem:pages"], | ||
"options": { | ||
"gatsby-source-filesystem:pages": { | ||
"name": "pages", | ||
"path": "./src/pages/" | ||
} | ||
} | ||
}, | ||
"gatsby-plugin-mdx": { | ||
"message": "Add Markdown and MDX support", | ||
"plugins": ["gatsby-source-filesystem:pages"], | ||
"dependencies": ["@mdx-js/react", "@mdx-js/mdx"], | ||
"options": { | ||
"gatsby-source-filesystem:pages": { | ||
"name": "pages", | ||
"path": "./src/pages/" | ||
} | ||
} | ||
} | ||
} |
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