-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(recipes): Export providers (#27724)
- Loading branch information
Showing
7 changed files
with
20 additions
and
38 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
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
2 changes: 1 addition & 1 deletion
2
packages/gatsby-recipes/src/renderer/transform-to-plan-structure.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,14 @@ | ||
import * as fileResource from "./providers/fs/file" | ||
import * as directoryResource from "./providers/fs/directory" | ||
import * as gatsbyPageResource from "./providers/gatsby/page" | ||
import * as gatsbyPluginResource from "./providers/gatsby/plugin" | ||
import * as gatsbyShadowFileResource from "./providers/gatsby/shadow-file" | ||
import * as gatsbySiteMetadataResource from "./providers/gatsby/site-metadata" | ||
import * as npmPackageResource from "./providers/npm/package" | ||
import * as npmPackageScriptResource from "./providers/npm/script" | ||
import * as npmPackageJsonResource from "./providers/npm/package-json" | ||
import * as gitIgnoreResource from "./providers/git/ignore" | ||
import * as contentfulSpace from "./providers/contentful/space" | ||
import * as contentfulEnvironment from "./providers/contentful/environment" | ||
import * as contentfulType from "./providers/contentful/type" | ||
import * as contentfulEntry from "./providers/contentful/entry" | ||
|
||
const componentResourceMapping = { | ||
File: fileResource, | ||
Directory: directoryResource, | ||
GatsbyPage: gatsbyPageResource, | ||
GatsbyPlugin: gatsbyPluginResource, | ||
GatsbyShadowFile: gatsbyShadowFileResource, | ||
GatsbySiteMetadata: gatsbySiteMetadataResource, | ||
NPMPackage: npmPackageResource, | ||
NPMScript: npmPackageScriptResource, | ||
NPMPackageJson: npmPackageJsonResource, | ||
GitIgnore: gitIgnoreResource, | ||
ContentfulSpace: contentfulSpace, | ||
ContentfulEnvironment: contentfulEnvironment, | ||
ContentfulType: contentfulType, | ||
ContentfulEntry: contentfulEntry, | ||
} | ||
|
||
export default componentResourceMapping | ||
export * as File from "./providers/fs/file" | ||
export * as Directory from "./providers/fs/directory" | ||
export * as GatsbyPage from "./providers/gatsby/page" | ||
export * as GatsbyPlugin from "./providers/gatsby/plugin" | ||
export * as GatsbyShadowFile from "./providers/gatsby/shadow-file" | ||
export * as GatsbySiteMetadata from "./providers/gatsby/site-metadata" | ||
export * as NPMPackage from "./providers/npm/package" | ||
export * as NPMScript from "./providers/npm/script" | ||
export * as NPMPackageJson from "./providers/npm/package-json" | ||
export * as GitIgnore from "./providers/git/ignore" | ||
export * as ContentfulSpace from "./providers/contentful/space" | ||
export * as ContentfulEnvironment from "./providers/contentful/environment" | ||
export * as ContentfulType from "./providers/contentful/type" | ||
export * as ContentfulEntry from "./providers/contentful/entry" |
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