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
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: My Second Post!
3+
date: '2015-05-06T23:46:37.121Z'
4+
---
5+
6+
Wow! I love blogging so much already.
7+
8+
Did you know that "despite its name, salted duck eggs can also be made from
9+
chicken eggs, though the taste and texture will be somewhat different, and the
10+
egg yolk will be less rich."?
11+
([Wikipedia Link](https://en.wikipedia.org/wiki/Salted_duck_egg))
12+
13+
Yeah, I didn't either.
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
title: New Beginnings
3+
date: '2015-05-28T22:40:32.169Z'
4+
description:
5+
This is a custom description for SEO and Open Graph purposes, rather than the
6+
default generated excerpt. Simply add a description field to the frontmatter.
7+
---
8+
9+
Far far away, behind the word mountains, far from the countries Vokalia and
10+
Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
11+
right at the coast of the Semantics, a large language ocean. A small river named
12+
Duden flows by their place and supplies it with the necessary regelialia.
13+
14+
## On deer horse aboard tritely yikes and much
15+
16+
The Big Oxmox advised her not to do so, because there were thousands of bad
17+
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
18+
didn’t listen. She packed her seven versalia, put her initial into the belt and
19+
made herself on the way.
20+
21+
- This however showed weasel
22+
- Well uncritical so misled
23+
- this is very interesting
24+
- Goodness much until that fluid owl
25+
26+
When she reached the first hills of the **Italic Mountains**, she had a last
27+
view back on the skyline of her hometown _Bookmarksgrove_, the headline of
28+
[Alphabet Village](http://google.com) and the subline of her own road, the Line
29+
Lane. Pityful a rhetoric question ran over her cheek, then she continued her
30+
way. On her way she met a copy.
31+
32+
### Overlaid the jeepers uselessly much excluding
33+
34+
But nothing the copy said could convince her and so it didn’t take long until a
35+
few insidious Copy Writers ambushed her, made her drunk with
36+
[Longe and Parole](http://google.com) and dragged her into their agency, where
37+
they abused her for their projects again and again. And if she hasn’t been
38+
rewritten, then they are still using her.
39+
40+
> Far far away, behind the word mountains, far from the countries Vokalia and
41+
> Consonantia, there live the blind texts. Separated they live in Bookmarksgrove
42+
> right at the coast of the Semantics, a large language ocean.
43+
44+
It is a paradisematic country, in which roasted parts of sentences fly into your
45+
mouth. Even the all-powerful Pointing has no control about the blind texts it is
46+
an almost unorthographic life One day however a small line of blind text by the
47+
name of Lorem Ipsum decided to leave for the far World of Grammar.
48+
49+
### According a funnily until pre-set or arrogant well cheerful
50+
51+
The Big Oxmox advised her not to do so, because there were thousands of bad
52+
Commas, wild Question Marks and devious Semikoli, but the Little Blind Text
53+
didn’t listen. She packed her seven versalia, put her initial into the belt and
54+
made herself on the way.
55+
56+
1. So baboon this
57+
2. Mounted militant weasel gregariously admonishingly straightly hey
58+
3. Dear foresaw hungry and much some overhung
59+
4. Rash opossum less because less some amid besides yikes jeepers frenetic
60+
impassive fruitlessly shut
61+
62+
When she reached the first hills of the Italic Mountains, she had a last view
63+
back on the skyline of her hometown Bookmarksgrove, the headline of Alphabet
64+
Village and the subline of her own road, the Line Lane. Pityful a rhetoric
65+
question ran over her cheek, then she continued her way. On her way she met a
66+
copy.
67+
68+
> The copy warned the Little Blind Text, that where it came from it would have
69+
> been rewritten a thousand times and everything that was left from its origin
70+
> would be the word "and" and the Little Blind Text should turn around and
71+
> return to its own, safe country.
72+
73+
But nothing the copy said could convince her and so it didn’t take long until a
74+
few insidious Copy Writers ambushed her, made her drunk with Longe and Parole
75+
and dragged her into their agency, where they abused her for their projects
76+
again and again. And if she hasn’t been rewritten, then they are still using
77+
her. Far far away, behind the word mountains, far from the countries Vokalia and
78+
Consonantia, there live the blind texts.
79+
80+
#### Silent delightfully including because before one up barring chameleon
81+
82+
Separated they live in Bookmarksgrove right at the coast of the Semantics, a
83+
large language ocean. A small river named Duden flows by their place and
84+
supplies it with the necessary regelialia. It is a paradisematic country, in
85+
which roasted parts of sentences fly into your mouth.
86+
87+
Even the all-powerful Pointing has no control about the blind texts it is an
88+
almost unorthographic life One day however a small line of blind text by the
89+
name of Lorem Ipsum decided to leave for the far World of Grammar. The Big Oxmox
90+
advised her not to do so, because there were thousands of bad Commas, wild
91+
Question Marks and devious Semikoli, but the Little Blind Text didn’t listen.
92+
93+
##### Wherever far wow thus a squirrel raccoon jeez jaguar this from along
94+
95+
She packed her seven versalia, put her initial into the belt and made herself on
96+
the way. When she reached the first hills of the Italic Mountains, she had a
97+
last view back on the skyline of her hometown Bookmarksgrove, the headline of
98+
Alphabet Village and the subline of her own road, the Line Lane. Pityful a
99+
rhetoric question ran over her cheek, then she continued her way. On her way she
100+
met a copy.
101+
102+
###### Slapped cozy a that lightheartedly and far
103+
104+
The copy warned the Little Blind Text, that where it came from it would have
105+
been rewritten a thousand times and everything that was left from its origin
106+
would be the word "and" and the Little Blind Text should turn around and return
107+
to its own, safe country. But nothing the copy said could convince her and so it
108+
didn’t take long until a few insidious Copy Writers ambushed her, made her drunk
109+
with Longe and Parole and dragged her into their agency, where they abused her
110+
for their projects again and again.

0 commit comments

Comments
 (0)