Skip to content

Commit ba596fd

Browse files
authored
Gatsby 5.16.1, node 24, deps updates and cleanups (#1992)
* delete *.mini.svg and dupes, move nebula button in src * replace gatsby-plugin-react-svg with @svgr/webpack * update all svg import paths * huge homepage train SVG optimization * colocate the pages css modules with their components * replace prop-types with JSDoc * replace React Helmet with Gatsby head API * Node 24, upgrade deps (Gatsby 5.16, React 19) * Remove `gatsby-plugin-netlify`, Netlify will use `gatsby-adapter-netlify` automatically * allow sharp post install script * increase node's heap allocation for Netlify builds to go through * override sharp, react and react-dom versions to latest * undo heap space change * add gatsby-adapter-netlify to deps only, remove overrides for react and react-dom * revert back to React 18 * fix potential css name clash * remove filters from URL when every one of them has the "all" value * remove dead CSS, dead code and unused exports * remove unused `google-auth-library` dep
1 parent 76cbba4 commit ba596fd

52 files changed

Lines changed: 7065 additions & 5108 deletions

Some content is hidden

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

‎.github/workflows/node.js.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests
2-
31
name: Content and unit tests
42

53
on:
@@ -8,17 +6,20 @@ on:
86
pull_request:
97
branches: ['main']
108

9+
permissions:
10+
contents: read
11+
1112
jobs:
1213
build:
1314
runs-on: ubuntu-latest
1415

1516
steps:
16-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v7
1718

18-
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@v4
19+
- name: Use Node.js from .nvmrc
20+
uses: actions/setup-node@v7
2021
with:
21-
node-version: '20.x'
22+
node-version-file: '.nvmrc'
2223
cache: 'npm'
2324

2425
- run: npm ci

‎.github/workflows/typos.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ on:
66
pull_request:
77
branches: ['main']
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: ubuntu-latest
1215

1316
steps:
14-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v7
1518

1619
- name: Check spelling in content directory
1720
uses: crate-ci/typos@master

‎.nvmrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
24

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ To find an issue that you want to fix, scan through the list. You may find that
4949

5050
### Development Environment
5151

52-
Make sure you have Node.js version `20.x` as well as npm installed. You can find how to test your changes locally [here](https://github.com/CodingTrain/thecodingtrain.com#development-info).
52+
Make sure you have Node.js version `24.x` as well as npm installed. You can find how to test your changes locally [here](https://github.com/CodingTrain/thecodingtrain.com#development-info).

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This repo holds the website for [thecodingtrain.com](https://thecodingtrain.com/
1919

2020
## Development info
2121

22-
When updating the website, it is helpful to run the website locally in order to quickly see the changes made. Make sure you have Node.js version `20.x` installed and then perform the following steps:
22+
When updating the website, it is helpful to run the website locally in order to quickly see the changes made. Make sure you have Node.js version `24.x` installed and then perform the following steps:
2323

2424
1. Clone down the repo to your computer and `cd` into the folder
2525
2. Run `npm install`

‎gatsby-config.mjs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ export default {
2828
}
2929
},
3030
'gatsby-plugin-image',
31-
'gatsby-plugin-react-helmet',
3231
'gatsby-plugin-sharp',
3332
'gatsby-transformer-sharp',
3433
{
@@ -144,7 +143,6 @@ export default {
144143
name: '404-page-data',
145144
path: './content/pages/404'
146145
}
147-
},
148-
'gatsby-plugin-netlify'
146+
}
149147
]
150148
};

‎netlify.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
command = "npm run build-ci"
33
# skip build when changes are isolated to README.md or .all-contributorsrc
44
ignore = "git diff --quiet HEAD^ HEAD ':(exclude)README.md' ':(exclude).all-contributorsrc' "
5+
56
[dev]
67
framework = "gatsby"
78
targetPort = 8000

0 commit comments

Comments
 (0)