Skip to content

Commit

Permalink
feat: modernize project
Browse files Browse the repository at this point in the history
- Upgrade deps
- Migrate from jest to vitest
- Remove gatsby packages
- Support Node.js > 16

BREAKING CHANGE: Require Node.js v16
  • Loading branch information
gregberge committed Sep 9, 2023
1 parent 9b298c1 commit 43c9975
Show file tree
Hide file tree
Showing 37 changed files with 16,595 additions and 46,363 deletions.
10 changes: 1 addition & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,5 @@
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"overrides": [
{
"files": ["*.test.?(m|t)js"],
"env": {
"jest": true
}
}
]
}
}
17 changes: 2 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20]

runs-on: ${{ matrix.os }}

Expand All @@ -75,10 +75,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install last npm version
if: ${{ matrix.node-version == 14 }}
run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

Expand All @@ -103,13 +99,8 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20]
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
# `npm i -g npm@latest` does not work
# It is not very critical if it does not work on windows/node-14
- os: windows-latest
node-version: 14

runs-on: ${{ matrix.os }}

Expand All @@ -123,10 +114,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Install last npm version
if: ${{ matrix.node-version == 14 }}
run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

Expand Down
3 changes: 0 additions & 3 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 43c9975

Please sign in to comment.