st-bundle
Version:
CLI for watching and bundling SpringType projects.
29 lines (28 loc) • 724 B
TypeScript
export interface IWriter {
}
export interface IWriterProps {
output?: string;
isProduction?: boolean;
root?: string;
}
export interface IWriterResponse {
size: number;
localPath: string;
absPath: string;
relBrowserPath: string;
write: (content?: string) => void;
}
export interface IWriterActions {
outputDirectory: string;
template: string;
write: (target: string, content: string) => Promise<{
target: string;
}>;
generate: (name: string, contents: any, noHash?: boolean) => IWriterResponse;
}
/**
* Writes data to the file system
* Fully detached from the context
* @param props
*/
export declare function createWriter(props: IWriterProps): IWriterActions;