grunt-contrib-copy icon indicating copy to clipboard operation
grunt-contrib-copy copied to clipboard

Should warn if src is not found?

Open stevemao opened this issue 9 years ago • 6 comments

stevemao avatar May 21 '15 06:05 stevemao

I'm also have an empty log :-( Only:

Running "copy:main" (copy) task

Done, without errors.

Config is very simple:

    "copy": {
      "main": {
        "files": {
          "public/public/js": ["node_modules/react/dis/JSXTransformer.js", "node_modules/react/dis/react-with-addons.min.js"]
        }
      }
    }

murashki avatar May 24 '15 17:05 murashki

Yeah, I was expecting something like

Running "copy:main" (copy) task
Warning: No src files found.
Done, without errors.

It doesn't have to fail though. Just some warning messages.

stevemao avatar May 24 '15 22:05 stevemao

I would like to be able to specify it to fail if the src doesn't exist. For us, that means that something else in our process went wrong and I want our build to fail.

TheSavior avatar Nov 25 '15 19:11 TheSavior

Optional handling for missing sources: ignore (current behaviour) warn fail

masi avatar Dec 04 '15 14:12 masi

Is this something grunt-contrib-copy is interested in implementing? If so, I might give it a try.

AurelioDeRosa avatar Feb 28 '16 20:02 AurelioDeRosa

@AurelioDeRosa I would think so. I think grunt is lack of some kind of guideline on how plugins should handle situations like this.

stevemao avatar Feb 29 '16 02:02 stevemao