You can clone with
No one assigned
If src is set with a non existing/readable file (or with an array containing at least one non existing/readable file) then the task does not fail nor warns about it.
I'd strongly prefer it to fail, or at least it would be useful a new option "checkSrcFile" (false by default). If set to true then the concat task would fail if any of the files in src does not exist.
This would be useful. I'd normally expect a build to fail or warn if a component is missing but we should use an option so we don't break existing functionality.
Set nonull to true and it will warn on missing files. See the source here and the test here.
It works (as setting `nonull=true' warns missing or unreadable files in console) but this feature is no documented at all. Could you please documment it in the README?
Also, shouldn't nonull be in options?
It's not a concat task option. Please see http://gruntjs.com/configuring-tasks#files
I'll make a note in the docs here that you need to set nonull in order to receive warnings about missing files. Thanks!
Add docs for needing nonull to warn on missing files. Ref GH-15.
Thanks for updating the docs.
I know this issue is closed but I have a particular need to have grunt abort if source files are missing. I'm running grunt from TeamCity and need it to either fail, or output a specific message warning format. Aborting would be a more generic solution - no one wants to see TeamCity messages in this plugin.
I've got a quick solution on a fork at https://github.com/Huddle/grunt-contrib-concat/tree/feature/fail-on-missing-file but the problem I have is writing a nodeunit test for it. The problem is that the abort kills the nodeunit task as well. I've tried spawning the concat for that fixure but have no idea how to get that to report back to the nodeunit parent process. If I can get the test in place I'll raise a pull request but don't have the time right now to get into it. Any pointers would be welcome.
Add nonull=true in grunt-contrib-concat to warn about possible mising…