Skip to content

Commit

Permalink
Merge pull request #1226 from EcrituresNumeriques/chore/node22
Browse files Browse the repository at this point in the history
Mise à jour vers node@22
  • Loading branch information
thom4parisot authored Feb 11, 2025
2 parents 17fdc55 + c1eb138 commit 0419b31
Show file tree
Hide file tree
Showing 17 changed files with 2,132 additions and 1,825 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:

# Allow one concurrent deployment
concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18"
node-version-file: docs/.node-version
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: 'run-front,run-graphql,run-export'
carryforward: 'run-front,run-graphql'
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v22
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Plus d'informations sur [la documentation](http://stylo-doc.ecrituresnumeriques.

# Pré-requis

- Node.js v18+
- MongoDB
- Node.js v22+
- MongoDB 4.4

## Sous MacOS

Expand Down
8 changes: 4 additions & 4 deletions docs/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = "npm run build"
publish = "_site"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
environment = { NODE_VERSION = "18.20.4" }
command = "npm run build"
publish = "_site"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ."
environment = { NODE_VERSION = "18" }
2 changes: 1 addition & 1 deletion front/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
plugins: ['react', 'vitest', 'jsdoc'],
settings: {
react: {
version: '16.13',
version: '18.3',
},
},
globals: {
Expand Down
28 changes: 16 additions & 12 deletions front/babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
/* eslint-disable no-undef */
module.exports = {
"presets": [
['@babel/preset-react', {
runtime: 'automatic',
development: process.env.NODE_ENV === 'development',
importSource: '@welldone-software/why-did-you-render',
}],
presets: [
[
'@babel/preset-env', {
corejs: "3.21",
useBuiltIns: "entry"
}
]
]
'@babel/preset-react',
{
runtime: 'automatic',
development: process.env.NODE_ENV === 'development',
importSource: '@welldone-software/why-did-you-render',
},
],
[
'@babel/preset-env',
{
corejs: '3.38',
useBuiltIns: 'entry',
},
],
],
}
8 changes: 4 additions & 4 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"> 0.2%"
],
"engines": {
"node": ">=18",
"node": ">=22",
"npm": ">=10"
},
"scripts": {
Expand Down Expand Up @@ -110,7 +110,7 @@
"vitest": "^3.0.3"
},
"volta": {
"node": "18.20.4",
"npm": "10.9.0"
"node": "22.13.1",
"npm": "10.9.2"
}
}
}
4 changes: 1 addition & 3 deletions graphql/dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Alpine 3.17 and Node 18 uses OpenSSL 3.0 but humanid.huma-num.fr does not yet support this version
# if you want to upgrade to Alpine 3.17 or Node 18 make sure that humanid.huma-num.fr supports OpenSSL 3.0 otherwise OAuth won't work!
FROM node:16.20-alpine3.16
FROM node:22-alpine

WORKDIR /usr/src/app

Expand Down
Loading

0 comments on commit 0419b31

Please sign in to comment.