twm-weapp
Version:
15 lines (14 loc) • 494 B
TypeScript
import Twm from '../TwmWatcher';
import { ContextResource } from '../resource';
import { TwmMiddleware } from '.';
export declare class GlobbyPathPlugin implements TwmMiddleware {
apply(twm: Twm): void;
/**
* 创建文件对象
*/
createFileResourceMap(globbyPath: string | string[], context: ContextResource): Promise<void>;
/**
* 获取扫描目录集合
*/
getGlobbyPaths(globbyPath: string | string[], context: ContextResource): Promise<string[]>;
}