Skip to content

Commit

Permalink
[@builder.io/gatsby] update to gatsby 4 and use graphql-source to fet…
Browse files Browse the repository at this point in the history
…ch data for batching and retries (#762)

* first pass on updating to gatsby 4

* use node fetc

* prettier

* downgrade from problematic source-graphql version

* downgrade from problematic source-graphql version

* try latest

* fork it

* user resolve

* fix missing plugins

* simplify fork

* typo

* upgrade problematic packaage

* last fix for sure

* fix issues

* prettier

* last dev release

* add batching

* tweak dependencies and build

* release major

* update example
  • Loading branch information
teleaziz authored Feb 26, 2022
1 parent b6dde97 commit f247fa9
Show file tree
Hide file tree
Showing 21 changed files with 47,138 additions and 67,793 deletions.
1 change: 0 additions & 1 deletion examples/gatsby-minimal-starter/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const path = require('path');
module.exports = {
plugins: [
'gatsby-plugin-typescript',
'gatsby-plugin-react-helmet',
{
resolve: '@builder.io/gatsby',
options: {
Expand Down
50,358 changes: 22,046 additions & 28,312 deletions examples/gatsby-minimal-starter/package-lock.json

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions examples/gatsby-minimal-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"license": "MIT",
"main": "n/a",
"scripts": {
"build": "gatsby build",
"build": "gatsby clean && gatsby build",
"clean": "rimraf public",
"deploy": "gatsby build --prefix-paths && gh-pages -d public",
"dev": "gatsby develop",
"serve": "gatsby serve",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx,md}\"",
"lint": "eslint 'src/**/*.{ts,tsx}'",
"start": "npm run dev",
Expand All @@ -24,23 +25,21 @@
"node": ">=12.13.0"
},
"dependencies": {
"@builder.io/gatsby": "^2.0.5-7",
"@builder.io/gatsby": "^3.0.0",
"@builder.io/react": "^1.0.7",
"@builder.io/widgets": "^1.0.16",
"@material-ui/core": "^4.9.5",
"classnames": "^2.2.6",
"gatsby": "^3.4.0",
"gatsby": "^4.8.0",
"gatsby-image": "^2.2.1",
"gatsby-plugin-react-helmet": "^3.10.0",
"gatsby-plugin-typescript": "^2.12.1",
"gatsby-source-graphql": "^3.4.0",
"gatsby-plugin-typescript": "^4.8.0",
"polished": "^3.4.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-helmet": "^5.2.1",
"react-parallax": "^3.0.3",
"react-syntax-highlighter": "^15.4.3",
"typescript": "^3.5.2"
"typescript": "^4.5.5"
},
"devDependencies": {
"@types/classnames": "^2.2.8",
Expand Down
47 changes: 0 additions & 47 deletions examples/gatsby-minimal-starter/src/pages/example.tsx

This file was deleted.

2 changes: 2 additions & 0 deletions packages/gatsby/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/*.js
/plugins
batching/
yarn.lock
1 change: 0 additions & 1 deletion packages/gatsby/.nvmrc

This file was deleted.

Loading

0 comments on commit f247fa9

Please sign in to comment.