@cirrusct/copyfiles

Library to batch copy files based on flexible configuration

Usage no npm install needed!

<script type="module">
  import cirrusctCopyfiles from 'https://cdn.skypack.dev/@cirrusct/copyfiles';
</script>

README

copyfiles

Copies existing individuaal files and directories from one location to another in the file system based on configuration. Based on, (and steals most of the code from) the copy-webpack-plugin, but this implementation works outside of Webpack and copies directly to the file system (instead of Webpack compilation).

In addition to performing copy based on configuration, supports building a list of files (including source and destination paths) based on configuration, so that higher level services can perform any transformation prior to copying.