diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 000000000..ebd65c783 --- /dev/null +++ b/frontend/.dockerignore @@ -0,0 +1,24 @@ +# Prevent host dependencies and build output from leaking into Docker context +node_modules +.next + +# Tests/coverage and caches +coverage +.cache + +.env* +!.env.example + +# Logs and OS junk +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +*.log +.DS_Store + +# IDE +.vscode +.idea + + diff --git a/frontend/package.json b/frontend/package.json index f7bb88267..bc3c082e3 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -35,7 +35,9 @@ "jsonwebtoken": "^9.0.2", "jspdf": "^3.0.1", "libsodium-wrappers-sumo": "^0.7.13", + "@types/libsodium-wrappers-sumo": "^0.7.8", "lodash": "^4.17.21", + "@types/lodash": "^4.17.1", "next": "^14.2.25", "next-auth": "^4.24.11", "nextjs-toploader": "^3.8.16", @@ -44,11 +46,14 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-icons": "^5.5.0", + "@types/react-icons": "^3.0.0", "react-toastify": "^10.0.4", "reaviz": "^15.6.1", "sass": "^1.70.0", "typescript": "5.3.3", - "zxcvbn": "^4.4.2" + "zxcvbn": "^4.4.2", + "@types/zxcvbn": "^4.4.4", + "autoprefixer": "^10.4.17" }, "devDependencies": { "@graphql-codegen/cli": "5.0.0", @@ -57,13 +62,8 @@ "@types/country-flag-icons": "^1.2.2", "@types/jest": "^29.5.11", "@types/jsonwebtoken": "^9.0.5", - "@types/libsodium-wrappers-sumo": "^0.7.8", - "@types/lodash": "^4.17.1", - "@types/react-icons": "^3.0.0", - "@types/zxcvbn": "^4.4.4", "@typescript-eslint/eslint-plugin": "^6.19.1", "@typescript-eslint/parser": "^6.19.1", - "autoprefixer": "^10.4.17", "eslint-config-prettier": "^9.1.0", "eslint-plugin-jsx-a11y": "^6.8.0", "eslint-plugin-prettier": "^5.1.3", diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 8a031668d..fd0494945 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -23,8 +23,7 @@ "paths": { "@/*": ["./*"] }, - "types": ["jest"] }, "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "utils/typography.js"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "codegen.ts"] }