- React + Vite + TypeScript + Tailwind + shadcn/ui - AI crop engine (Google Gemini 2.5 Flash) + local edge-detection engine - Pixel size outputs with configurable dimensions per ratio - Import/export config (backward compatible with old Python SmartCrop configs) - Crop editor with fixed-frame zoom/pan - ZIP export with multi-size scaling - Montserrat font, #FFC407 gold theme Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
395 B
TypeScript
16 lines
395 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
setupFiles: ["./src/test/setup.ts"],
|
|
include: ["src/**/*.{test,spec}.{ts,tsx}"],
|
|
},
|
|
resolve: {
|
|
alias: { "@": path.resolve(__dirname, "./src") },
|
|
},
|
|
});
|