UNPKG

@knapsack/app

Version:

Build Design Systems with Knapsack

31 lines 1.09 kB
import { type PathAbsolute } from '@knapsack/file-utils'; import { type KnapsackBrain } from '../types/brain'; import { type KnapsackConfig } from '../types/knapsack-config'; /** * Take config and then start up the whole system! */ export declare function bootstrap(config: KnapsackConfig<PathAbsolute>, /** * path that config file paths are relative from */ configPathBase?: PathAbsolute): KnapsackBrain; export declare function bootstrapFromConfig({ configPathBase, config: userConfig, configFilePath, }: { config: KnapsackConfig; configPathBase: PathAbsolute; configFilePath: PathAbsolute; }): KnapsackBrain; /** * Take config file path and then start up the whole system! */ export declare function bootstrapFromConfigFile( /** * path to `knapsack.config.js` */ configPath: string): KnapsackBrain; export declare function findConfigAndBootstrap(): KnapsackBrain; export declare function bootstrapForCli(): KnapsackBrain; /** * Get the Brain created from a previous bootstrap */ export declare function getBrain(): KnapsackBrain; //# sourceMappingURL=bootstrap.d.ts.map