fuzzyworld

fuzzyworld-tools / files / vite / index.d.ts

index.d.ts

526 B · history · blame

1import type { Plugin } from 'vite';
2
3export interface FuzzyworldAppConfig {
4 app: string;
5 title?: string;
6 description?: string;
7 repo?: string;
8 prebuild?: string[];
9 checks?: string[];
10 build?: string;
11 out?: string;
12}
13
14/** Reads the "fuzzyworld" section of the nearest package.json at or above `root` (default: cwd). */
15export function readAppConfig(root?: string): FuzzyworldAppConfig;
16
17/** Sets `base` to `/<app>/` for builds, from package.json `fuzzyworld.app`. */
18export default function fuzzyworld(): Plugin;