@gobstones/gobstones-scripts
Version:
Scripts to abstract away build configuration of Gobstones Project's libraries and modules.
33 lines • 876 B
TypeScript
/**
* This type represents the options that you can pass to the copy task.
*/
export interface TaskCopyOptions {
/**
* The source file, or folder or glob pattern to copy.
*/
src: string;
/**
* The destination folder on which to copy the files to.
*/
dest: string;
/**
* The current directory from where to copy.
*/
cwd?: string;
/**
* A rename patter to apply to the files.
*/
rename?: string;
}
/**
* Returns the string for the bash command to run
* a copy command, copying a file or directory to another location.
*
* @param options - The options applied when running the move.
*
* @example copy({src :'./dist/index.js', dist: './dist/index.es.js'})
*
* @returns The bash command string.
*/
export declare const copy: (options: TaskCopyOptions) => string;
//# sourceMappingURL=copy.d.ts.map