scaffold the app: tauri crate, vite front end, icons, ci

This commit is contained in:
pj committed 2026-09-03 17:01:50 +05:30
commit 088ec9c6e4
267 files changed
+18617

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
// @ts-expect-error process is a nodejs global
const host = process.env.TAURI_DEV_HOST;
// Ports are offset from margin's 1420/1421 and the calendar's 1430/1431, so all three apps can run
// side by side.
export default defineConfig({
plugins: [react()],
clearScreen: false,
server: {
port: 1440,
strictPort: true,
host: host || false,
hmr: host
? {
protocol: "ws",
host,
port: 1441,
}
: undefined,
watch: {
ignored: ["**/src-tauri/**"],
},
},
test: {
include: ["src/**/*.test.ts"],
environment: "node",
},
});