Skip to content

Commit bb3f98c

Browse files
Gatsby V3 (#146)
* 💯 Fixed testing * 💯 Fixed indentation * 🐛 Removed packages that are not needed * 🐛 Removed additional dependency * Fix dependencies and update snapshots * Update node versions checked in CI * 🔨 Upgraded packages * 🧹 Changed github reference * Remove package-lock.json * Allow gatsby 2 or 3 Co-authored-by: Andrew Branch <andrew@wheream.io>
1 parent 7bf5c03 commit bb3f98c

File tree

10 files changed

+19202
-23175
lines changed

10 files changed

+19202
-23175
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
node: [ '10', '12' ]
25+
node: [ '12', '14' ]
2626
name: build and test (node ${{ matrix.node }})
2727
steps:
2828
- uses: actions/checkout@v1

examples/example-site/gatsby-config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ module.exports = {
5656
},
5757
`gatsby-transformer-sharp`,
5858
`gatsby-plugin-sharp`,
59-
{
60-
resolve: `gatsby-plugin-google-analytics`,
61-
options: {
62-
//trackingId: `ADD YOUR TRACKING ID HERE`,
63-
},
64-
},
59+
// {
60+
// resolve: `gatsby-plugin-google-analytics`,
61+
// options: {
62+
// //trackingId: `ADD YOUR TRACKING ID HERE`,
63+
// },
64+
// },
6565
`gatsby-plugin-feed`,
6666
{
6767
resolve: `gatsby-plugin-manifest`,

examples/example-site/package-lock.json

Lines changed: 0 additions & 17896 deletions
This file was deleted.

examples/example-site/package.json

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,40 @@
88
"url": "https://github.com/gatsbyjs/gatsby/issues"
99
},
1010
"dependencies": {
11-
"gatsby": "^2.17.4",
12-
"gatsby-image": "^2.2.29",
13-
"gatsby-plugin-feed": "^2.3.19",
14-
"gatsby-plugin-google-analytics": "^2.1.23",
15-
"gatsby-plugin-manifest": "^2.2.23",
16-
"gatsby-plugin-offline": "^3.0.16",
17-
"gatsby-plugin-react-helmet": "^3.1.13",
18-
"gatsby-plugin-sharp": "^2.2.32",
19-
"gatsby-plugin-typography": "^2.3.14",
20-
"gatsby-remark-copy-linked-files": "^2.1.28",
21-
"gatsby-remark-images": "^3.1.28",
22-
"gatsby-remark-prismjs": "^3.3.20",
23-
"gatsby-remark-responsive-iframe": "^2.2.25",
24-
"gatsby-remark-smartypants": "^2.1.14",
25-
"gatsby-source-filesystem": "^2.1.33",
26-
"gatsby-transformer-remark": "^2.6.30",
27-
"gatsby-transformer-sharp": "^2.3.0",
28-
"prismjs": "^1.17.1",
29-
"react": "^16.11.0",
30-
"react-dom": "^16.11.0",
31-
"react-helmet": "^5.2.1",
11+
"babel-eslint": "^10.1.0",
12+
"gatsby": "^3.1.1",
13+
"gatsby-image": "^3.1.0",
14+
"gatsby-plugin-feed": "^3.1.0",
15+
"gatsby-plugin-google-analytics": "^3.1.0",
16+
"gatsby-plugin-manifest": "^3.1.0",
17+
"gatsby-plugin-offline": "^4.1.0",
18+
"gatsby-plugin-react-helmet": "^4.1.0",
19+
"gatsby-plugin-sharp": "^3.1.1",
20+
"gatsby-plugin-typography": "^3.1.0",
21+
"gatsby-remark-copy-linked-files": "^3.1.0",
22+
"gatsby-remark-images": "^4.1.0",
23+
"gatsby-remark-prismjs": "^4.1.0",
24+
"gatsby-remark-responsive-iframe": "^3.1.0",
25+
"gatsby-remark-smartypants": "^3.1.0",
26+
"gatsby-source-filesystem": "^3.1.0",
27+
"gatsby-transformer-remark": "^3.1.0",
28+
"gatsby-transformer-sharp": "^3.1.0",
29+
"graphql": "^15.5.0",
30+
"prismjs": "^1.23.0",
31+
"react": "^17.0.1",
32+
"react-dom": "^17.0.1",
33+
"react-helmet": "^6.1.0",
3234
"react-typography": "^0.16.19",
33-
"rehype-react": "^4.0.1",
34-
"typeface-merriweather": "0.0.72",
35-
"typeface-montserrat": "0.0.75",
35+
"rehype-react": "^6.2.0",
36+
"typeface-merriweather": "^1.1.13",
37+
"typeface-montserrat": "^1.1.13",
38+
"typescript": "^4.2.3",
3639
"typography": "^0.16.19",
3740
"typography-theme-wordpress-2016": "^0.16.19",
38-
"vscode-styled-components": "github:styled-components/vscode-styled-components"
41+
"vscode-styled-components": "git://github.com/styled-components/vscode-styled-components"
3942
},
4043
"devDependencies": {
44+
"eslint": "^7.22.0",
4145
"prettier": "^1.18.2"
4246
},
4347
"homepage": "https://github.com/gatsbyjs/gatsby-starter-blog#readme",

examples/example-site/yarn.lock

Lines changed: 14167 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,26 @@
3939
"@types/json5": "0.0.30",
4040
"@types/node": "^12.12.5",
4141
"@types/plist": "^3.0.2",
42-
"gatsby": "^2.22.9",
43-
"gatsby-cli": "^2.12.58",
44-
"gatsby-source-filesystem": "^2.3.8",
45-
"gatsby-transformer-remark": "^2.8.13",
42+
"babel-eslint": "^10.1.0",
43+
"eslint": "^7.22.0",
44+
"gatsby": "^3.1.1",
45+
"gatsby-cli": "^3.1.0",
46+
"gatsby-source-filesystem": "^3.1.0",
47+
"gatsby-transformer-remark": "^3.1.0",
4648
"glob": "^7.1.5",
47-
"graphql": "^14.6.0",
4849
"hast-util-raw": "^5.0.1",
49-
"jest": "^26.0.1",
50+
"jest": "^26.6.3",
5051
"mdast-util-to-hast": "^6.0.2",
5152
"open": "^7.0.0",
5253
"prettier": "^1.18.2",
53-
"react-dom": "^16.13.1",
54+
"react": "^17.0.1",
55+
"react-dom": "^17.0.1",
5456
"rehype-stringify": "^6.0.0",
5557
"remark-parse": "^7.0.1",
5658
"remark-rehype": "^5.0.0",
5759
"rimraf": "^3.0.2",
58-
"synthwave-vscode": "github:robb0wen/synthwave-vscode",
59-
"typescript": "^3.6.4",
60+
"synthwave-vscode": "git://github.com/robb0wen/synthwave-vscode",
61+
"typescript": "^4.2.3",
6062
"unified": "^8.4.1"
6163
},
6264
"dependencies": {
@@ -69,7 +71,7 @@
6971
"vscode-textmate": "^5.2.0"
7072
},
7173
"peerDependencies": {
72-
"gatsby": "^2.12.1"
74+
"gatsby": "^2.12.1 || ^3.1.1"
7375
},
7476
"jest": {
7577
"testMatch": [

0 commit comments

Comments
 (0)