diagrams-opus-tauri/vite.config.ts
Ilya Ashikhmin 3758164635 chore: scaffold Tauri v2 + React + Vite project and add implementation plan
- Scaffold Vite React-TS frontend and Tauri v2 shell
- Install JointJS (@joint/core), Zustand, Vitest + Testing Library
- Configure Vite (fixed port 1420) and Vitest (jsdom, coverage)
- Add docs/plan with milestone checklist and JointJS rationale

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-02 23:07:28 +02:00

29 lines
742 B
TypeScript

/// <reference types="vitest/config" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// Tauri expects a fixed port; fail if unavailable.
export default defineConfig({
plugins: [react()],
clearScreen: false,
server: {
port: 1420,
strictPort: true,
watch: {
// Don't watch the Rust backend from the frontend dev server.
ignored: ["**/src-tauri/**"],
},
},
test: {
globals: true,
environment: "jsdom",
setupFiles: ["./src/test/setup.ts"],
include: ["src/**/*.{test,spec}.{ts,tsx}"],
coverage: {
provider: "v8",
include: ["src/**/*.{ts,tsx}"],
exclude: ["src/**/*.{test,spec}.{ts,tsx}", "src/test/**", "src/main.tsx"],
},
},
});