mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
Update recommended version to Node.js 18 (#1117)
After #1115, new Node.js versions will be able to be used for development of the frontend. This PR changes the recommended Node.js version to 18 (the current LTS version). I have also tested with 16 and 20 and it works. I also took the opportunity to: - move the build script that was at the project root to the `bin/` folder - update the `browserslist` to target Electron 24 (which is the version we currently build against). This results in a slightly smaller bundle due to no longer having to transpile optional chaining.
This commit is contained in:
2
.github/actions/setup/action.yml
vendored
2
.github/actions/setup/action.yml
vendored
@@ -6,7 +6,7 @@ runs:
|
|||||||
- name: Install node
|
- name: Install node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16.15.0
|
node-version: 18.16.0
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: cache
|
id: cache
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
###################################################
|
###################################################
|
||||||
# This Dockerfile is used by the docker-compose.yml
|
# This Dockerfile is used by the docker-compose.yml
|
||||||
# file to build the development container.
|
# file to build the development container.
|
||||||
# Do not make any changes here unless you know what
|
# Do not make any changes here unless you know what
|
||||||
# you are doing.
|
# you are doing.
|
||||||
###################################################
|
###################################################
|
||||||
|
|
||||||
FROM node:16-bullseye as dev
|
FROM node:18-bullseye as dev
|
||||||
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y openssl
|
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y openssl
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD ["sh", "./docker-start.sh"]
|
CMD ["sh", "./bin/docker-start"]
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
#####################################################
|
#####################################################
|
||||||
# This startup script is used by the docker container
|
# This startup script is used by the docker container
|
||||||
# to check if the node_modules folder is empty and
|
# to check if the node_modules folder is empty and
|
||||||
# if so, run yarn to install the dependencies.
|
# if so, run yarn to install the dependencies.
|
||||||
#####################################################
|
#####################################################
|
||||||
|
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
if [ ! -d "node_modules" ] || [ "$(ls -A node_modules)" = "" ]; then
|
if [ ! -d "node_modules" ] || [ "$(ls -A node_modules)" = "" ]; then
|
||||||
yarn
|
yarn
|
||||||
fi
|
fi
|
||||||
@@ -53,9 +53,12 @@
|
|||||||
"resolutions": {
|
"resolutions": {
|
||||||
"react-error-overlay": "6.0.9"
|
"react-error-overlay": "6.0.9"
|
||||||
},
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=18.0.0"
|
||||||
|
},
|
||||||
"packageManager": "yarn@3.5.1",
|
"packageManager": "yarn@3.5.1",
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"electron 12.0",
|
"electron 24.0",
|
||||||
"defaults"
|
"defaults"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
6
upcoming-release-notes/1117.md
Normal file
6
upcoming-release-notes/1117.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
category: Maintenance
|
||||||
|
authors: [j-f1]
|
||||||
|
---
|
||||||
|
|
||||||
|
Recommend that the frontend be developed on using Node 18, correct Electron target version
|
||||||
Reference in New Issue
Block a user