@deboxsoft/cpx

Copy files matching glob patterns while watching for changes.

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Copy file globs, watching for changes.

Commands

cpx

Examples

copy files to a folder and watch for changes$ cpx 'src/**/*.js' dist --watch
copy multiple file types to output directory$ cpx 'src/**/*.{js,css,html}' build
copy files with glob pattern one time without watching$ cpx 'assets/**/*' public
copy nested files preserving directory structure$ cpx 'lib/**/*.ts' dist --watch
copy files and run command when changes are detected$ cpx 'src/**/*.js' dist --watch --command 'npm run build'