UNPKG

@enspirit/emb

Version:

A replacement for our Makefile-for-monorepos

20 lines (19 loc) 827 B
import { ComponentConfig, ComponentFlavorConfig } from '../config/schema.js'; import { ComponentFlavors, Monorepo, Resources, Tasks } from './index.js'; export declare class Component implements ComponentConfig { readonly name: string; readonly config: ComponentConfig; protected monorepo: Monorepo; readonly _rootDir?: string; readonly tasks: Tasks; readonly resources: Resources; readonly flavors: ComponentFlavors; constructor(name: string, config: ComponentConfig, monorepo: Monorepo); get rootDir(): string; flavor(name: string, mustExist?: boolean): ComponentFlavorConfig; cloneWith(config: Partial<ComponentConfig>): ComponentConfig; toJSON(): ComponentConfig; withFlavor(name: string): Component; join(path: string): string; relative(path: string): string; }