GithubHelp home page GithubHelp logo

grunt-merge-copy's People

Contributors

gomezd avatar mquintal avatar stefanullinger avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

gomezd dploeger

grunt-merge-copy's Issues

Second task causes an error "Warning: mergeCopy is not a function Use --force to continue."

I am trying two simple tasks. I have both directory a and b created with files in them and the two directories are in the root parallel to my Gruntfile.

If I just call grunt a or grunt b, it works beautifully, when I call the default task I get the error:

Gruntfile.js

module.exports = function (grunt) {

    grunt.initConfig({

        'merge-copy': {

            a: {
                options: {
                    destination: 'c',
                    directories: ['a', 'b']
                }
            },
            b: {
                options: {
                    destination: 'd',
                    directories: ['c', 'b']
                }
            }
        }



    });
    grunt.loadNpmTasks('grunt-merge-copy');

    grunt.registerTask('default', [

            'merge-copy:a',
            'merge-copy:b'
        ]
    );

};

Terminal Output

grunt -vvv
Initializing
Command-line options: --verbose

Reading "Gruntfile.js" Gruntfile...OK

Registering Gruntfile tasks.
Initializing config...OK

Registering "grunt-merge-copy" local Npm module tasks.
Reading /Users/me/deployers/node_modules/grunt-merge-copy/package.json...OK
Parsing /Users/me/deployers/node_modules/grunt-merge-copy/package.json...OK
Loading "merge-copy.js" tasks...OK
+ merge-copy
Loading "Gruntfile.js" tasks...OK
+ default

No tasks specified, running default tasks.
Running tasks: default

Running "default" task

Running "merge-copy:a" (merge-copy) task
Verifying property merge-copy.a exists in config...OK
File: [no files]
Options: destination="c", directories=["a","b"]
Reading a/a.txt...OK
Writing c/a.txt...OK
Reading b/b.txt...OK
Writing c/b.txt...OK

Running "merge-copy:b" (merge-copy) task
Verifying property merge-copy.b exists in config...OK
File: [no files]
Options: destination="d", directories=["c","b"]
Warning: mergeCopy is not a function Use --force to continue.

Aborted due to warnings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.