-
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(gatsby): Add internal types export (#25921)
* Handle webpack in state machine * Add internal export
- Loading branch information
Showing
12 changed files
with
62 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* This is an internal API. It does not follow semver. Use at your own risk. | ||
*/ | ||
export * from "./dist/internal" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* This is an internal API. It does not follow semver. Use at your own risk. | ||
*/ | ||
|
||
module.exports = require("./dist/internal") |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export * from "./state-machines" | ||
export * from "./services" | ||
export * from "./redux/types" | ||
export * from "./query/types" | ||
export * from "./commands/types" |
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,65 +1,21 @@ | ||
import { ServiceConfig } from "xstate" | ||
import { IBuildContext } from "./" | ||
export { startWebpackServer } from "./start-webpack-server" | ||
export { rebuildSchemaWithSitePage } from "./rebuild-schema-with-site-pages" | ||
export { extractQueries } from "./extract-queries" | ||
export { writeOutRedirects } from "./write-out-redirects" | ||
export { postBootstrap } from "./post-bootstrap" | ||
export { buildSchema } from "./build-schema" | ||
export { createPages } from "./create-pages" | ||
export { createPagesStatefully } from "./create-pages-statefully" | ||
export { customizeSchema } from "./customize-schema" | ||
export { initialize } from "./initialize" | ||
export { sourceNodes } from "./source-nodes" | ||
export { writeOutRequires } from "./write-out-requires" | ||
export { calculateDirtyQueries } from "./calculate-dirty-queries" | ||
export { runStaticQueries } from "./run-static-queries" | ||
export { runPageQueries } from "./run-page-queries" | ||
|
||
import { startWebpackServer } from "./start-webpack-server" | ||
import { rebuildSchemaWithSitePage } from "./rebuild-schema-with-site-pages" | ||
import { extractQueries } from "./extract-queries" | ||
import { writeOutRedirects } from "./write-out-redirects" | ||
import { postBootstrap } from "./post-bootstrap" | ||
import { buildSchema } from "./build-schema" | ||
import { createPages } from "./create-pages" | ||
import { createPagesStatefully } from "./create-pages-statefully" | ||
import { customizeSchema } from "./customize-schema" | ||
import { initialize } from "./initialize" | ||
import { sourceNodes } from "./source-nodes" | ||
import { writeOutRequires } from "./write-out-requires" | ||
import { calculateDirtyQueries } from "./calculate-dirty-queries" | ||
import { runStaticQueries } from "./run-static-queries" | ||
import { runPageQueries } from "./run-page-queries" | ||
|
||
import { waitUntilAllJobsComplete } from "../utils/wait-until-jobs-complete" | ||
import { runMutationBatch } from "./run-mutation-batch" | ||
import { recompile } from "./recompile" | ||
export { waitUntilAllJobsComplete } from "../utils/wait-until-jobs-complete" | ||
export { runMutationBatch } from "./run-mutation-batch" | ||
export { recompile } from "./recompile" | ||
|
||
export * from "./types" | ||
|
||
export { | ||
customizeSchema, | ||
sourceNodes, | ||
createPages, | ||
buildSchema, | ||
createPagesStatefully, | ||
extractQueries, | ||
writeOutRequires, | ||
calculateDirtyQueries, | ||
runStaticQueries, | ||
runPageQueries, | ||
initialize, | ||
waitUntilAllJobsComplete, | ||
postBootstrap, | ||
writeOutRedirects, | ||
startWebpackServer, | ||
rebuildSchemaWithSitePage, | ||
runMutationBatch, | ||
recompile, | ||
} | ||
|
||
export const buildServices: Record<string, ServiceConfig<IBuildContext>> = { | ||
customizeSchema, | ||
sourceNodes, | ||
createPages, | ||
buildSchema, | ||
createPagesStatefully, | ||
extractQueries, | ||
writeOutRequires, | ||
calculateDirtyQueries, | ||
runStaticQueries, | ||
runPageQueries, | ||
initialize, | ||
waitUntilAllJobsComplete, | ||
postBootstrap, | ||
writeOutRedirects, | ||
startWebpackServer, | ||
rebuildSchemaWithSitePage, | ||
recompile, | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export { | ||
initializeDataMachine, | ||
reloadDataMachine, | ||
recreatePagesMachine, | ||
} from "./data-layer" | ||
export { queryRunningMachine } from "./query-running" | ||
export { waitingMachine } from "./waiting" | ||
export { IDataLayerContext } from "./data-layer/types" | ||
export { IQueryRunningContext } from "./query-running/types" | ||
export { IWaitingContext } from "./waiting/types" | ||
export { buildActions } from "./develop/actions" |
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,3 +1,5 @@ | ||
{ | ||
"extends": "../../tsconfig.json" | ||
"extends": "../../tsconfig.json", | ||
// This is for typegen purposes only. For now index.d.ts is manually-created, but gatsby/internal is auto-generated | ||
"include": ["./src/internal.ts"] | ||
} |