Add an end-to-end integration harness that runs the webmail against a real Stalwart mail server in Docker and drives it with Playwright, focused on the mail/folder synchronisation behaviour (unread/total counters, folder-list sync, account-scoped Unified Mailbox) that the unified-mailbox work touches. - integration/ stack: Stalwart (declarative bootstrap: alice/bob/carol, submission + IMAP listeners, permissive CORS) + webmail (dev mode, so the browser's plaintext cross-origin JMAP calls aren't blocked by the prod CSP). - Helpers: dependency-free SMTP submit client, JMAP client for seeding / inspecting server state, and page helpers (login, add/switch account, locale-independent folder-counter reads). - Specs: login, single-account sync (receive/read/move/delete/folder-create/ burst) and multi-account (per-account isolation + cross-account Unified Inbox aggregation + background-account delivery). 12 tests, all green. - Add focused data-testid hooks to the mail UI (folder rows + counters, email list items, account switcher, composer) for stable selectors. - Exclude examples/ and integration/ from tsconfig/eslint/.dockerignore.
110 lines
3.1 KiB
JSON
110 lines
3.1 KiB
JSON
{
|
|
"name": "bulwark-webmail",
|
|
"version": "1.7.7",
|
|
"description": "Bulwark Webmail - a modern webmail client built for Stalwart Mail Server",
|
|
"author": "Bulwark Webmail <bulwark@rbm.systems>",
|
|
"license": "AGPL-3.0-only",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/bulwarkmail/webmail.git"
|
|
},
|
|
"homepage": "https://github.com/bulwarkmail/webmail",
|
|
"bugs": {
|
|
"url": "https://github.com/bulwarkmail/webmail/issues"
|
|
},
|
|
"keywords": [
|
|
"jmap",
|
|
"webmail",
|
|
"stalwart",
|
|
"email",
|
|
"nextjs",
|
|
"react",
|
|
"typescript"
|
|
],
|
|
"scripts": {
|
|
"dev": "next dev --turbopack",
|
|
"build": "next build --turbopack",
|
|
"start": "next start",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"test:translations": "vitest run --no-isolate lib/__tests__/translations.test.ts",
|
|
"test:integration": "bash integration/run-tests.sh",
|
|
"prepare": "husky",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-virtual": "^3.13.24",
|
|
"@tiptap/extension-color": "^3.22.4",
|
|
"@tiptap/extension-image": "^3.22.4",
|
|
"@tiptap/extension-link": "^3.22.4",
|
|
"@tiptap/extension-placeholder": "^3.22.4",
|
|
"@tiptap/extension-table": "^3.22.4",
|
|
"@tiptap/extension-table-cell": "^3.22.4",
|
|
"@tiptap/extension-table-header": "^3.22.4",
|
|
"@tiptap/extension-table-row": "^3.22.4",
|
|
"@tiptap/extension-text-align": "^3.22.4",
|
|
"@tiptap/extension-text-style": "^3.22.4",
|
|
"@tiptap/extension-underline": "^3.22.4",
|
|
"@tiptap/pm": "^3.22.4",
|
|
"@tiptap/react": "^3.22.4",
|
|
"@tiptap/starter-kit": "^3.22.4",
|
|
"asn1js": "^3.0.10",
|
|
"clsx": "^2.1.1",
|
|
"date-fns": "^4.1.0",
|
|
"dompurify": "^3.4.1",
|
|
"jalaali-js": "^2.0.0",
|
|
"jszip": "^3.10.1",
|
|
"lucide-react": "^1.8.0",
|
|
"next": "^16.2.6",
|
|
"next-intl": "^4.9.1",
|
|
"otpauth": "^9.5.0",
|
|
"pdfjs-dist": "^6.0.227",
|
|
"pkijs": "^3.4.0",
|
|
"postal-mime": "^2.7.4",
|
|
"pvtsutils": "^1.3.6",
|
|
"qrcode": "^1.5.4",
|
|
"react": "^19.2.5",
|
|
"react-dom": "^19.2.5",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.4.0",
|
|
"webcrypto-liner": "^1.4.3",
|
|
"zustand": "^5.0.12"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.4",
|
|
"@playwright/test": "^1.59.1",
|
|
"@tailwindcss/postcss": "^4.2.4",
|
|
"@testing-library/dom": "^10.4.1",
|
|
"@testing-library/jest-dom": "^6.9.1",
|
|
"@testing-library/react": "^16.3.1",
|
|
"@types/node": "^25.6.0",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@types/react": "^19.2.7",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
"@typescript-eslint/parser": "^8.59.0",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"@vitest/ui": "^4.1.5",
|
|
"esbuild": "^0.28.0",
|
|
"eslint": "^9.39.4",
|
|
"eslint-plugin-react": "^7.37.5",
|
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
"fake-indexeddb": "^6.2.5",
|
|
"globals": "^17.5.0",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^28.1.0",
|
|
"tailwindcss": "^4.2.4",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.1.5"
|
|
},
|
|
"overrides": {
|
|
"elliptic": {
|
|
".": "^6.6.1",
|
|
"webcrypto-liner": "$elliptic"
|
|
},
|
|
"flatted": "^3.4.2",
|
|
"picomatch": "^4.0.4",
|
|
"undici": "^7.24.0"
|
|
}
|
|
}
|