Some checks failed
Main Confidence / confidence (push) Failing after 45s
## Summary - introduce surface-aware compressed governance outcomes and reuse the shared truth/explanation seams for operator-first summaries - apply the compressed outcome hierarchy across baseline, evidence, review, review-pack, canonical review/evidence, and artifact-oriented operation-run surfaces - expand spec 214 fixtures and Pest coverage, and fix tenant-panel route assertions by generating explicit tenant-panel URLs in the affected Filament tests ## Validation - `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent` - focused governance compression suite from `specs/214-governance-outcome-compression/quickstart.md` passed (`68` tests, `445` assertions) - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Filament/InventoryItemResourceTest.php tests/Feature/Filament/BackupSetUiEnforcementTest.php tests/Feature/Filament/RestoreRunUiEnforcementTest.php` passed (`18` tests, `81` assertions) Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #253
77 lines
2.1 KiB
Plaintext
77 lines
2.1 KiB
Plaintext
import { Plugin, UserConfig, ConfigEnv, Rollup } from 'vite';
|
|
import { Config as FullReloadConfig } from 'vite-plugin-full-reload';
|
|
interface PluginConfig {
|
|
/**
|
|
* The path or paths of the entry points to compile.
|
|
*/
|
|
input: Rollup.InputOption;
|
|
/**
|
|
* Laravel's public directory.
|
|
*
|
|
* @default 'public'
|
|
*/
|
|
publicDirectory?: string;
|
|
/**
|
|
* The public subdirectory where compiled assets should be written.
|
|
*
|
|
* @default 'build'
|
|
*/
|
|
buildDirectory?: string;
|
|
/**
|
|
* The path to the "hot" file.
|
|
*
|
|
* @default `${publicDirectory}/hot`
|
|
*/
|
|
hotFile?: string;
|
|
/**
|
|
* The path of the SSR entry point.
|
|
*/
|
|
ssr?: Rollup.InputOption;
|
|
/**
|
|
* The directory where the SSR bundle should be written.
|
|
*
|
|
* @default 'bootstrap/ssr'
|
|
*/
|
|
ssrOutputDirectory?: string;
|
|
/**
|
|
* Configuration for performing full page refresh on blade (or other) file changes.
|
|
*
|
|
* {@link https://github.com/ElMassimo/vite-plugin-full-reload}
|
|
* @default false
|
|
*/
|
|
refresh?: boolean | string | string[] | RefreshConfig | RefreshConfig[];
|
|
/**
|
|
* Utilise the Herd or Valet TLS certificates.
|
|
*
|
|
* @default null
|
|
*/
|
|
detectTls?: string | boolean | null;
|
|
/**
|
|
* Utilise the Herd or Valet TLS certificates.
|
|
*
|
|
* @default null
|
|
* @deprecated use "detectTls" instead
|
|
*/
|
|
valetTls?: string | boolean | null;
|
|
/**
|
|
* Transform the code while serving.
|
|
*/
|
|
transformOnServe?: (code: string, url: DevServerUrl) => string;
|
|
}
|
|
interface RefreshConfig {
|
|
paths: string[];
|
|
config?: FullReloadConfig;
|
|
}
|
|
interface LaravelPlugin extends Plugin {
|
|
config: (config: UserConfig, env: ConfigEnv) => UserConfig;
|
|
}
|
|
type DevServerUrl = `${'http' | 'https'}://${string}:${number}`;
|
|
export declare const refreshPaths: string[];
|
|
/**
|
|
* Laravel plugin for Vite.
|
|
*
|
|
* @param config - A config object or relative path(s) of the scripts to be compiled.
|
|
*/
|
|
export default function laravel(config: string | string[] | PluginConfig): [LaravelPlugin, ...Plugin[]];
|
|
export {};
|