Update to NodeJS 20.10.0 (#547)

* feat(node): updated to 20.10.0

* chore(deps): Updated

* chore(deps): Updated

* fix(lint): fixed

* chore(deps): Updated

* fix(stylelint): upgraded to 16 and removed stylelint-config-prettier

* fix(package): add resolutions for packages that don't support ESM
This commit is contained in:
Techno Tim 2024-01-10 10:54:41 -05:00 committed by GitHub
parent 22a40272d2
commit 04f6ee9e44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 419 additions and 489 deletions

View File

@ -14,7 +14,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
with: with:
node-version: v18.18.2 node-version: v20.10.0
- name: Install Dependencies, Test, and Build - name: Install Dependencies, Test, and Build
run: | run: |
yarn install --frozen-lockfile --check-files --network-timeout 600000 yarn install --frozen-lockfile --check-files --network-timeout 600000

View File

@ -17,7 +17,7 @@ jobs:
- name: Use Node.js - name: Use Node.js
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93
with: with:
node-version: v18.18.2 node-version: v20.10.0
- name: Install Dependencies, Test, and Build - name: Install Dependencies, Test, and Build
run: | run: |
yarn install --frozen-lockfile --check-files --network-timeout 600000 yarn install --frozen-lockfile --check-files --network-timeout 600000

2
.nvmrc
View File

@ -1 +1 @@
v18.18.2 v20.10.0

View File

@ -1,6 +1,5 @@
{ {
"extends": [ "extends": [
"stylelint-config-prettier"
], ],
"rules": { "rules": {
"block-no-empty": null, "block-no-empty": null,
@ -13,7 +12,6 @@
] ]
} }
], ],
"max-empty-lines": 2,
"unit-allowed-list": [ "unit-allowed-list": [
"em", "em",
"rem", "rem",
@ -21,15 +19,6 @@
"s", "s",
"px", "px",
"deg" "deg"
],
"indentation": [
2,
{
"except": [
"value"
],
"severity": "error"
}
] ]
} }
} }

View File

@ -1,4 +1,4 @@
FROM node:18.18.2-alpine AS node-build FROM node:20.10.0-alpine AS node-build
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY package.json ./ COPY package.json ./
COPY yarn.lock ./ COPY yarn.lock ./
@ -8,7 +8,7 @@ RUN yarn install --frozen-lockfile --check-files --network-timeout 600000
RUN yarn build --noninteractive RUN yarn build --noninteractive
RUN yarn install --frozen-lockfile --check-files --production --modules-folder node_modules_prod --network-timeout 600000 RUN yarn install --frozen-lockfile --check-files --production --modules-folder node_modules_prod --network-timeout 600000
FROM node:18.18.2-alpine FROM node:20.10.0-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
ENV NODE_ENV production ENV NODE_ENV production
RUN mkdir -p /node_modules RUN mkdir -p /node_modules

View File

@ -24,7 +24,7 @@
"@fortawesome/react-fontawesome": "^0.2.0", "@fortawesome/react-fontawesome": "^0.2.0",
"compression": "^1.7.4", "compression": "^1.7.4",
"express": "^4.18.2", "express": "^4.18.2",
"helmet": "^6.2.0", "helmet": "^7.1.0",
"morgan": "^1.10.0", "morgan": "^1.10.0",
"prop-types": "^15.8.1", "prop-types": "^15.8.1",
"react": "^18.2.0", "react": "^18.2.0",
@ -38,24 +38,27 @@
"@babel/preset-react": "^7.23.3", "@babel/preset-react": "^7.23.3",
"babel-preset-razzle": "^4.2.18", "babel-preset-razzle": "^4.2.18",
"eslint": "^8.56.0", "eslint": "^8.56.0",
"eslint-config-prettier": "^8.10.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1", "eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx": "^0.1.0", "eslint-plugin-jsx": "^0.1.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1", "eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2", "eslint-plugin-react": "^7.33.2",
"html-webpack-plugin": "^5.6.0", "html-webpack-plugin": "^5.6.0",
"markdownlint-cli": "^0.33.0", "markdownlint-cli": "^0.38.0",
"mini-css-extract-plugin": "^2.7.6", "mini-css-extract-plugin": "^2.7.6",
"prettier": "^2.8.8", "prettier": "^3.1.1",
"razzle": "^4.2.18", "razzle": "^4.2.18",
"razzle-dev-utils": "^4.2.18", "razzle-dev-utils": "^4.2.18",
"react-test-renderer": "^18.2.0", "react-test-renderer": "^18.2.0",
"stylelint": "^15.11.0", "stylelint": "^16.1.0",
"stylelint-config-prettier": "^9.0.5",
"url": "^0.11.3", "url": "^0.11.3",
"webpack": "^5.88.2", "webpack": "^5.88.2",
"webpack-dev-server": "^4.15.1" "webpack-dev-server": "^4.15.1"
},
"resolutions": {
"string-width": "4.2.3",
"table": "6.8.0"
} }
} }

View File

@ -198,8 +198,8 @@ server
<script async defer data-website-id="${ <script async defer data-website-id="${
runtimeConfig.UMAMI_WEBSITE_ID runtimeConfig.UMAMI_WEBSITE_ID
}" src="${runtimeConfig.UMAMI_APP_URL}/${ }" src="${runtimeConfig.UMAMI_APP_URL}/${
runtimeConfig.UMAMI_SCRIPT_NAME || 'umami.js' runtimeConfig.UMAMI_SCRIPT_NAME || 'umami.js'
}"> }">
</script>` </script>`
: '' : ''
} }

864
yarn.lock

File diff suppressed because it is too large Load Diff