From bda9b4fc27bd55029901b3362f3932a318747b4e Mon Sep 17 00:00:00 2001 From: shats Date: Wed, 24 Dec 2025 16:19:52 +0700 Subject: [PATCH] chore: Update Dockerfile for faster npm installation and enhance package.json with additional testing dependencies to improve development and testing capabilities. --- Dockerfile.fast | 5 ++--- frontend/package.json | 12 ++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile.fast b/Dockerfile.fast index 3fb86f1..209bad0 100644 --- a/Dockerfile.fast +++ b/Dockerfile.fast @@ -12,10 +12,9 @@ RUN npm config set registry https://registry.npmjs.org/ \ COPY frontend/package*.json ./ -# Ускоряем установку: --ignore-scripts пропускает postinstall скрипты +# npm install с кэшем для ускорения RUN --mount=type=cache,target=/root/.npm \ - npm ci --no-audit --no-fund --ignore-scripts --no-optional || \ - npm install --no-audit --no-fund --ignore-scripts --no-optional + npm install --no-audit --no-fund COPY frontend/src/ ./src/ COPY frontend/public/ ./public/ diff --git a/frontend/package.json b/frontend/package.json index ac641ad..4a5377c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -27,6 +27,8 @@ }, "devDependencies": { "@eslint/js": "^9.29.0", + "@testing-library/jest-dom": "^6.6.3", + "@testing-library/react": "^16.2.0", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@vitejs/plugin-react": "^4.5.2", @@ -34,15 +36,13 @@ "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.20", "globals": "^16.2.0", + "jsdom": "^26.0.0", "typescript": "^5.7.2", - "vite": "^7.0.0" + "vite": "^7.0.0", + "vitest": "^2.1.8" }, "optionalDependencies": { - "@rollup/rollup-linux-x64-musl": "4.40.0", - "@testing-library/jest-dom": "^6.6.3", - "@testing-library/react": "^16.2.0", - "jsdom": "^26.0.0", - "vitest": "^2.1.8" + "@rollup/rollup-linux-x64-musl": "4.40.0" }, "overrides": { "rollup": "4.40.0"