@zilero/gulp-folder-clone
v1.0.4
Published
A Gulp plugin that can be used to clone a folder.
Downloads
10
Readme
📂 Powerful Gulp plugin for cloning folders and files with transformation support.
Installation • Options • Example
✨ Features
- 📁 Simple folder and file cloning
- 🔄 Custom file transformation support
- 📝 TypeScript support
- 🚀 Stream-based processing
- 💡 Progress logging
- 🛠️ Highly configurable
🚀 Installation
npm install @zilero/gulp-folder-clone --save-dev
# or
yarn add @zilero/gulp-folder-clone --dev
# or
pnpm add @zilero/gulp-folder-clone --save-dev⚙️ Options
pluginOptions
- Type:
object - Required:
false
pluginOptions.onBeforeCopy
- Type:
(file: Vinyl) => Promise<Vinyl> | Vinyl - Required:
false - Transform file before copying
📝 Example
gulp.task('clone-with-transform', () => {
return gulp.src('src/images/**/*')
.pipe(GulpFolderClone({
logFinish: true,
onBeforeCopy: (file) => {
// Custom transformation
return file;
}
}))
.pipe(gulp.dest('dist/images'));
});🤝 Contributing
If you would like to contribute to the project, please create a pull request or leave feedback. We are always open to new ideas and improvements!
🐛 Issues
Found a bug? Want to request a feature? Please create an issue.
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
Made with ❤️ by Zilero
