UNPKG

beesbuild

Version:

构建工具链

24 lines (23 loc) 925 B
import type { Bundle } from './types'; import type { BuildConfigEntries } from '@beesbuild/utils'; import type { OutputOptions, RollupOptions, RollupWatchOptions } from 'rollup'; import type { BuildContext } from '../types'; export declare function getRollupOptions(ctx: BuildContext): RollupOptions; export declare function rollupBuild(ctx: BuildContext): Promise<{ watchOptions: RollupWatchOptions; build: () => Promise<void>; copy: () => Promise<PromiseSettledResult<void>[]>; watch: () => Promise<import("rollup").RollupWatcher | undefined>; } | undefined>; /** * 批量复制包 * @param bundle * @param options */ export declare const copyBundles: (bundle: Bundle, options: BuildConfigEntries) => Promise<PromiseSettledResult<void>[]>; /** * 批量写包 * @param bundle * @param options */ export declare function writeBundles(bundle: Partial<Bundle>, options: OutputOptions[]): Promise<void>;