- 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>
29 lines
742 B
TypeScript
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"],
|
|
},
|
|
},
|
|
});
|