grunt-contrib-copy-only-newer

0.1.5 • Public • Published

grunt-contrib-copy-only-newer

Description

This module offers a function that allows configuring the grunt-contrib-copy task.

Usage

module.exports = function(grunt) {
    var onlyNewer = require('grunt-contrib-copy-only-newer')
                        .onlyNewerBuilder(grunt);

    // configuration for the plugins.
    grunt.initConfig({
        copy: {
            dist : {
                files: [
                    {
                        expand: true,
                        cwd: 'src/',
                        src: ['**'],
                        dest: 'dest/',
                        filter: onlyNewer("copy:dist") }
                ]
            }
        }
    });

    // following grunt configuration.
};

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.5
    1
    • latest

Version History

Package Sidebar

Install

npm i grunt-contrib-copy-only-newer

Weekly Downloads

1

Version

0.1.5

License

none

Last publish

Collaborators

  • bmustiata