@insightphp/insight
Version:
Laravel package for building control panels.
18 lines (15 loc) • 606 B
text/typescript
import { Insight } from "./insight";
import type { InsightApp } from "./insight";
import { registerComponents, registerPages } from "@insightphp/inertia-view";
export interface ConfigureInsight {
//
}
/**
* Creates new Insight application.
*/
export function bootInsight(config: Partial<ConfigureInsight> = {}): InsightApp {
registerPages(import.meta.glob('./Pages/**/*.vue'), 'insight')
registerComponents(import.meta.glob('./View/Components/**/*.vue', { eager: true }), 'insight')
registerComponents(import.meta.glob('./View/Layouts/**/*.vue', { eager: true }), 'insight')
return Insight
}