-
Notifications
You must be signed in to change notification settings - Fork 3
/
vite.config.ts
45 lines (43 loc) · 1.13 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { sveltekit } from "@sveltejs/kit/vite";
import { defineConfig } from "vitest/config";
import { kitRoutes } from "vite-plugin-kit-routes";
import topLevelAwait from "vite-plugin-top-level-await";
import type { KIT_ROUTES } from "$lib/ROUTES";
import * as LINKS from "./src/lib/configs/links";
export default defineConfig({
plugins: [
topLevelAwait(),
sveltekit(),
kitRoutes<KIT_ROUTES>({
post_update_run: "npm exec prettier ./src/lib/ROUTES.ts -- -w",
LINKS: {
// socials
discord: LINKS.DISCORD,
facebook: LINKS.FACEBOOK,
github: LINKS.GITHUB,
instagram: LINKS.INSTAGRAM,
tiktok: LINKS.TIKTOK,
twitter: LINKS.TWITTER,
// tools
svelte: LINKS.SVELTE,
tailwind: LINKS.TAILWIND,
drizzle: LINKS.DRIZZLE,
lucia: LINKS.LUCIA
},
PAGES: {
"/auth/login": {
explicit_search_params: {
redirectTo: { type: "string" }
}
}
}
})
],
test: {
coverage: {
enabled: true,
reporter: ["html"]
},
include: ["src/**/*.{test,spec}.{js,ts}"]
}
});