fuzzyworld-tools / files / vite / index.d.ts
index.d.ts
| 1 | import type { Plugin } from 'vite'; |
| 2 | |
| 3 | export 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). */ |
| 15 | export function readAppConfig(root?: string): FuzzyworldAppConfig; |
| 16 | |
| 17 | /** Sets `base` to `/<app>/` for builds, from package.json `fuzzyworld.app`. */ |
| 18 | export default function fuzzyworld(): Plugin; |