Updated frontend deps and use node:20

This commit is contained in:
Jamie Curnow
2024-05-08 09:41:32 +10:00
parent e1b757e177
commit fb880616c7
7 changed files with 8653 additions and 3751 deletions

View File

@ -1,6 +1,5 @@
#!/bin/bash
set -e
set +x
BACKEND_ASSETS=backend/embed/assets
@ -14,7 +13,7 @@ docker_cmd() {
-e "VITE_APP_COMMIT=${BUILD_COMMIT:-0000000}" \
-v "$(pwd):/app" \
-w "/app/frontend" \
node:18 \
node:20 \
${*}
}

View File

@ -7,7 +7,7 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if hash docker 2>/dev/null; then
cd "${DIR}/.."
echo -e "${BLUE} ${CYAN}Linting Frontend ...${RESET}"
docker run --rm -e CI=true -v "$(pwd)/frontend:/app/frontend" -w /app/frontend node:latest sh -c "yarn install && yarn eslint src;chown -R $(id -u):$(id -g) /app/frontend"
docker run --rm -e CI=true -v "$(pwd)/frontend:/app/frontend" -w /app/frontend node:20 sh -c "yarn install && yarn eslint src;chown -R $(id -u):$(id -g) /app/frontend"
RES=$?
echo -e "${BLUE} ${GREEN}Linting Frontend Complete${RESET}"
exit $RES