A combination copy and concatenation task designed for doing a careful merge of directories.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-copycat --save-dev
In your project's Gruntfile, add a section named
copycat to the data object passed into
This function will be called for every file. If it returns true, the task will concatenate the file instead of copying it.
This example takes three directories and copies them to test/target/, with dir3 having the highest priority.
If the file has the .css extension, duplicate files within each directory will not be overwritten in test/target/, but will instead be concatenated.
- Initial Commit
- Tests and change to merge option functionality
- Updated Readme