UNPKG

@roots/bud

Version:

Configurable, extensible build tools for modern single and multi-page web applications

62 lines (61 loc) 1.24 kB
import type { Cli } from '@roots/bud/cli/app'; import type { Context } from '@roots/bud-framework/context'; /** * Command finder class */ export declare class Finder { context: Partial<Context>; application: Cli; /** * Command paths */ paths: Array<string>; /** * Class constructor */ constructor(context: Partial<Context>, application: Cli); /** * Is cacheable */ get cacheable(): boolean; /** * Clear cache */ cacheClear(): Promise<void>; /** * Cache path */ get cachePath(): string; /** * Read cache */ cacheRead(): Promise<any>; /** * Write cache */ cacheWrite(): Promise<void>; /** * Get registration module paths */ getModules(): Promise<Array<any>>; /** * Get paths */ getPaths(paths: Array<string>): string[]; /** * Get array of project dependencies */ getSignifiers(): Array<string>; /** * Import commands */ importCommands(): Promise<any>; /** * Initialize */ init(): Promise<this>; /** * Resolve signifiers against import.meta.url */ resolve(paths: Array<string>): Promise<string[]>; }