Compares source & destination files before calling grunt-contrib-copy.
Currently compatible with firstname.lastname@example.org.
Tests & much of the Gruntfile taken from
grunt-contrib-copy. Extensive tests of
grunt-diff-copy's actual functionality are planned.
Developed with grunt-newer integration in mind,
diffCopy will only write to a destination file if its contents actually differ from the source. By filtering, "last modified" times are preserved on unchanged files, allowing
grunt-newer to do its thing.
grunt diffCopy newer:myTask
diffCopy task delegates to
grunt-contrib-copy, and requires no other configuration. Just specify
diffCopy instead of
copy when running tasks.
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-contrib-copy --save-dev npm install grunt-diff-copy --save-dev