Webpack plugin to copy, archive (.zip), move, delete files and directories before and after builds
—
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Pending
The risk profile of this skill
Move individual files or entire directories from source to destination locations with automatic path resolution and cross-platform compatibility.
Main move action function that processes move tasks.
/**
* Execute move tasks with the provided options
* @param tasks Array of move tasks to execute
* @param taskOptions Task execution options including logger and error handling
*/
function moveAction(tasks: MoveTask[], taskOptions: TaskOptions): Promise<void>;
export default moveAction;Configuration interface for move operations with source and destination paths.
/**
* Configuration for move operations
*/
interface MoveAction {
/** Source file or directory path */
source: string;
/** Destination file or directory path */
destination: string;
}Internal task structure used by the plugin during move execution.
/**
* Internal task structure for move operations
*/
interface MoveTask {
source: string;
absoluteSource: string;
destination: string;
absoluteDestination: string;
}Usage Examples:
// Basic file move
{
move: [
{ source: './temp/config.json', destination: './dist/config.json' }
]
}
// Directory move
{
move: [
{ source: './build/assets', destination: './dist/assets' }
]
}
// Multiple move operations
{
move: [
{ source: './temp/bundle.js', destination: './dist/app.js' },
{ source: './temp/styles.css', destination: './dist/styles.css' },
{ source: './temp/images', destination: './dist/assets/images' }
]
}
// Move with rename
{
move: [
{ source: './src/main.js', destination: './dist/bundle.js' },
{ source: './docs', destination: './dist/documentation' }
]
}Move operations are atomic where possible:
Move operations handle various error conditions:
throwOnError setting