Skip to content

Commit 464bfc8

Browse files
authored
feat: support for Gatsby v5 (#547)
* chore: add demo site for Gatsby v5 Include .nvmrc files in both demos to specify minimum node versions. * test: remove ignore command in order to test builds * test: revert commenting out of 'ignore' in the netlify.toml * test: update minimum version of react to 18 * test: comment out the ignore * refactor: move reach-router to prod dependency * chore(deps): update deps * refactor: add react as dev dep for gatsby/reach-router * style: 🔥 n/no-missing-import * test: remove ignore for testing purposes * fix: add logic to determine which 'match' method to use in reach-router * style: lint * chore(deps): use gatsby-plugin-netlify version containing gatsby v5 updates * test: duplicate e2e tests want to test them against both v4 and v5 of Gatsby * test: update permissions also update the github workflow yaml as it was using an invalid value * test: run sequentially rather than in parallel the parallelization needs to happen within the GH containers instead * test: update paths
1 parent 2ba54c2 commit 464bfc8

File tree

227 files changed

+96950
-12788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+96950
-12788
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
// This is a duplicate of `import/no-duplicates` but can handle "import type"
1111
'no-duplicate-imports': 'off',
1212
'max-depth': ['error', 4],
13+
'n/no-missing-import': 'off',
1314
},
1415
env: {
1516
jest: true,

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- run: npm test
3636

3737
build-mac:
38-
runs-on: macOS-latest
38+
runs-on: macos-latest
3939
if: github.ref_name == 'main'
4040
steps:
4141
- uses: actions/checkout@v3

demo-v5/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules/
2+
.cache/
3+
public
4+
5+
# Local Netlify folder
6+
.netlify/cache
7+
.netlify/functions
8+
9+
netlify/functions/gatsby/functions
10+
deployment.json

demo-v5/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
legacy-peer-deps=true

demo-v5/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lts/hydrogen
Lines changed: 233 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,233 @@
1+
---
2+
title: Hello World
3+
date: '2015-05-01T22:12:03.284Z'
4+
description: 'Hello World'
5+
---
6+
7+
This is my first post on my new fake blog! How exciting!
8+
9+
I'm sure I'll write a lot more interesting things in the future.
10+
11+
Oh, and here's a great quote from this Wikipedia on
12+
[salted duck eggs](https://en.wikipedia.org/wiki/Salted_duck_egg).
13+
14+
> A salted duck egg is a Chinese preserved food product made by soaking duck
15+
> eggs in brine, or packing each egg in damp, salted charcoal. In Asian
16+
> supermarkets, these eggs are sometimes sold covered in a thick layer of salted
17+
> charcoal paste. The eggs may also be sold with the salted paste removed,
18+
> wrapped in plastic, and vacuum packed. From the salt curing process, the
19+
> salted duck eggs have a briny aroma, a gelatin-like egg white and a
20+
> firm-textured, round yolk that is bright orange-red in color.
21+
22+
![Chinese Salty Egg](./salty_egg.jpg)
23+
24+
You can also write code blocks here!
25+
26+
```js
27+
const saltyDuckEgg = 'chinese preserved food product'
28+
```
29+
30+
| Number | Title | Year |
31+
| :----- | :--------------------------------------- | ---: |
32+
| 1 | Harry Potter and the Philosopher’s Stone | 2001 |
33+
| 2 | Harry Potter and the Chamber of Secrets | 2002 |
34+
| 3 | Harry Potter and the Prisoner of Azkaban | 2004 |
35+
36+
[View raw (TEST.md)](https://raw.github.com/adamschwartz/github-markdown-kitchen-sink/master/README.md)
37+
38+
This is a paragraph.
39+
40+
This is a paragraph.
41+
42+
# Header 1
43+
44+
## Header 2
45+
46+
Header 1
47+
========
48+
49+
Header 2
50+
--------
51+
52+
# Header 1
53+
54+
## Header 2
55+
56+
### Header 3
57+
58+
#### Header 4
59+
60+
##### Header 5
61+
62+
###### Header 6
63+
64+
# Header 1
65+
## Header 2
66+
### Header 3
67+
#### Header 4
68+
##### Header 5
69+
###### Header 6
70+
71+
# Header 1
72+
73+
## Header 2
74+
75+
### Header 3
76+
77+
#### Header 4
78+
79+
##### Header 5
80+
81+
###### Header 6
82+
83+
# Header 1 #
84+
## Header 2 ##
85+
### Header 3 ###
86+
#### Header 4 ####
87+
##### Header 5 #####
88+
###### Header 6 ######
89+
90+
> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi
91+
> posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet
92+
> vitae, risus.
93+
94+
> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
95+
96+
> ## This is a header.
97+
>
98+
> 1. This is the first list item.
99+
> 2. This is the second list item.
100+
>
101+
> Here's some example code:
102+
>
103+
> Markdown.generate();
104+
105+
> ## This is a header.
106+
> 1. This is the first list item.
107+
> 2. This is the second list item.
108+
>
109+
> Here's some example code:
110+
>
111+
> Markdown.generate();
112+
113+
- Red
114+
- Green
115+
- Blue
116+
117+
* Red
118+
* Green
119+
* Blue
120+
121+
- Red
122+
- Green
123+
- Blue
124+
125+
```markdown
126+
- Red
127+
- Green
128+
- Blue
129+
130+
* Red
131+
* Green
132+
* Blue
133+
134+
- Red
135+
- Green
136+
- Blue
137+
```
138+
139+
- `code goes` here in this line
140+
- **bold** goes here
141+
142+
```markdown
143+
- `code goes` here in this line
144+
- **bold** goes here
145+
```
146+
147+
1. Buy flour and salt
148+
1. Mix together with water
149+
1. Bake
150+
151+
```markdown
152+
1. Buy flour and salt
153+
1. Mix together with water
154+
1. Bake
155+
```
156+
157+
1. `code goes` here in this line
158+
1. **bold** goes here
159+
160+
```markdown
161+
1. `code goes` here in this line
162+
1. **bold** goes here
163+
```
164+
165+
Paragraph:
166+
167+
Code
168+
169+
<!-- -->
170+
171+
Paragraph:
172+
173+
Code
174+
175+
---
176+
177+
---
178+
179+
---
180+
181+
---
182+
183+
---
184+
185+
* * *
186+
187+
***
188+
189+
*****
190+
191+
- - -
192+
193+
---------------------------------------
194+
195+
This is [an example](http://example.com 'Example') link.
196+
197+
[This link](http://example.com) has no title attr.
198+
199+
This is [an example][id] reference-style link.
200+
201+
[id]: http://example.com 'Optional Title'
202+
203+
This is [an example](http://example.com "Example") link.
204+
205+
[This link](http://example.com) has no title attr.
206+
207+
This is [an example] [id] reference-style link.
208+
209+
[id]: http://example.com "Optional Title"
210+
211+
_single asterisks_
212+
213+
_single underscores_
214+
215+
**double asterisks**
216+
217+
**double underscores**
218+
219+
*single asterisks*
220+
221+
_single underscores_
222+
223+
**double asterisks**
224+
225+
__double underscores__
226+
227+
This paragraph has some `code` in it.
228+
229+
This paragraph has some `code` in it.
230+
231+
![Alt Text](https://placehold.it/200x50 'Image Title')
232+
233+
![Alt Text](https://placehold.it/200x50 "Image Title")
Loading

0 commit comments

Comments
 (0)