refactor(gatsby): change bootstrap to use services (#24816)

* Add typings for action arrays and thunks

* Switch back to non-null assertion

* Add comment

* Refactor bootstrap into services

* Use separate gql runner for bootstrap

* Import reporter typings

* Switch to new bootstrap

* Fix imports

* Add create pages

* Add extract queries

* Fix typings

* Rebuild schema with sitepage

* Rename context vars

* Fix types

* Update packages/gatsby/src/services/source-nodes.ts

More descriptive name

Co-authored-by: Ward Peeters <ward@coding-tech.com>

* Changes from review

* Bikeshed the function name

* Better unhandled rejection handling

* Update packages/gatsby/src/services/initialize.ts

Co-authored-by: Peter van der Zee <209817+pvdz@users.noreply.github.com>

* Changes from review

* Format

Co-authored-by: Ward Peeters <ward@coding-tech.com>
Co-authored-by: Peter van der Zee <209817+pvdz@users.noreply.github.com>
This commit is contained in:
GatsbyJS Bot
2020-06-19 12:45:11 +00:00
co-authored by Ward Peeters Peter van der Zee
parent d459a452fe
commit 277ce800fc
+6 -1
View File
@@ -1884,7 +1884,12 @@
dependencies:
"@types/node" "*"
"@types/node@*", "@types/node@^8.5.7":
"@types/node@*":
version "14.0.13"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.13.tgz#ee1128e881b874c371374c1f72201893616417c9"
integrity sha512-rouEWBImiRaSJsVA+ITTFM6ZxibuAlTuNOCyxVbwreu6k6+ujs7DfnU9o+PShFhET78pMBl3eH+AGSI5eOTkPA==
"@types/node@^8.5.7":
version "8.10.61"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.61.tgz#d299136ce54bcaf1abaa4a487f9e4bedf6b0d393"
integrity sha512-l+zSbvT8TPRaCxL1l9cwHCb0tSqGAGcjPJFItGGYat5oCTiq1uQQKYg5m7AF1mgnEBzFXGLJ2LRmNjtreRX76Q==